Comment 3 for bug 673696

Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

Let's me explain.

When we use product_variant_multi, we build various product from the product template. As product.product inherit product_template the name of the product is same as the product template.

The idea is to have field "name" (a function field) on product_product which build a correct name with the product template name and the product variants. (product name = product template name + product variants)

I made a lots of test and there is nothing ambigous because is you want to read :
the product_template name you just have to do self.pool.get('product.template').read(....)
and the product_product name you just have to do self.pool.get('product.product').read(....).

Making this change on the orm will only impact people who are trying to overwrite field on inherit object. For the moment there is only the module product_variant_multi in development version.

I know that it's a little dangerous to create the field "name" in product.product and the reason is because the code is not enough clean, the proof I found this bug.

Please think twice before not fixing it, because without this we will never have a powerfull ORM.

What do you think?