Frankofe,
Depending on what Version ya using,, you should be checking ya source code
Addons / Products / product.py and maybe product_demo.xml for examples
Your old V5 csv, might need to be edited a little
Column Constraints below is for V6.0.2
Code:
'default_code' : fields.char('Reference', size=64),
'name': fields.char('Name', size=128, required=True, translate=True, select=True),
################################################################
I Think, the problem is here, I might be wrong? but try leaving this out.
From what I understand, this needs to be imported before importing your product
-----------------------------------
Code:
'categ_id': fields.many2one('product.category','Category', required=True, change_default=True, domain="[('type','=','normal')]" ,help="Select category"),
################################################################
Code:
'procure_method': fields.selection([('make_to_stock','Make to Stock'),('make_to_order','Make to Order')], 'Procurement Method', required=True),
'supply_method': fields.selection([('produce','Produce'),('buy','Buy')], 'Supply method', required=True),
'purchase_ok': fields.boolean('Can be Purchased'),
'sale_ok': fields.boolean('Can be Sold'),
'type': fields.selection([('product','Stockable Product'),('consu', 'Consumable'),('service','Service')], 'Product Type', required=True),
################################################################
I Think, the problem is here, I might be wrong? but try leaving this out.
From what I understand, this needs to be imported before importing your product
-----------------------------------
Code:
'seller_ids': fields.one2many('product.supplierinfo', 'product_id', 'Partners'),
################################################################
I Think, the problem is here, I might be wrong? but try leaving this out.
But u should be able to have ( Normal Taxes or Tax Exempt ) in your field, but could be wrong
-----------------------------------
From accounts
Code:
'taxes_id': fields.many2many('account.tax', 'product_taxes_rel',
'prod_id', 'tax_id', 'Customer Taxes',
domain=[('parent_id','=',False),('type_tax_use','in',['sale','all'])]),
################################################################
FYI - I dont use csv for importing data coz of all the issues with realation linking..
See how ya go leaving out ( categ_id/seller_ids / taxes_id ) out of csv 4 a test.
& if anyone out there know how to import one2many/many2many via csv, let him know.
Vitridex
