Fail to import CSV file of object with _inherits attribute (e.g. product)
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_
"myproduct"
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_
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".