Olivier,
Thanks for the review.
Please don't get confused with the 'name' of ir_translation record.
Here is a clear distinction:
trans_ids = trans_obj.search(cr, uid, [('res_id','=',new_id),
('name','=','product.template,name')])
-- The new_id will be the ID of the table product_product only(disregard to
whatever is the ID of product_template).
-- Name of the record will be 'product_template,name' because we have a
convention that this name be designed as 'model which has this field in, field
name'. Here the translatable field 'name' resides into the columns of
product.template.
This would work very normal when we dont overide copy() for product_product().
But, in case of translation, its if we have overridden copy(),we should
override copy_translations() too.
Correct me if I missed anything.
I am investigating more.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw_bug-734191-ach/+merge/56116
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw_bug-734191-ach.
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp