Fail to import CSV file of object with _inherits attribute (e.g. product)

Bug #932797 reported by Francois Degrave
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Hi!

I try to import a CSV file containing a product. Here it is:

"id","categ_id/id","default_code","name","type","standard_price","company_id/id","purchase_ok","sale_ok"
"myproduct","61201810","PR61201810","Conférenciers visiteurs","service",1,"FUNDP",True,True

If I do that, I get several errors. The first one is that "name" is not recognized as the field "name". And the second one is that it complains about the lack of "product_tmpl_id/id" field.

Of course, the latter should not be explicitly defined, since "product" has an _inherits attribute to "product_template", using this "product_tmpl_id" field as foreign key. In fact, a product_template instance should be automatically created when a product is imported.

I think the error with the "name" also comes from the fact that "product" uses an "_inherits" attribute and that the field "name" is not explicitly defined in it but in "product_template".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.