[FIX] product: when duplicating a product, keep the language in the context
authorMartin Trigaux <mat@openerp.com>
Thu, 8 May 2014 13:49:37 +0000 (15:49 +0200)
committerMartin Trigaux <mat@openerp.com>
Thu, 8 May 2014 13:49:37 +0000 (15:49 +0200)
commit8f43b749f40bb4923283407a24487474b567e1c9
tree3d95327e45a7c8ec02f758e37dc69396812a77bb
parentc636fb9dd9be1a70ac9da63b218078c9cff6c704
[FIX] product: when duplicating a product, keep the language in the context

At the time of the context_wo_lang patch (7.0 revision 6577), the orm did not keep the language in copy_data, this patch intended to be more consistent.
Since server revision 5146 7.0, the new behaviour is to use the translated version in copy_data. Removign this change will be more consistent with the orm.

The expected behaviour is now the following:
In user lang: translated product name + translated '(copy)'
In other lang: same as original product

lp bug: https://launchpad.net/bugs/1159913 fixed

bzr revid: mat@openerp.com-20140508134937-7cbja3vsv311z5j4
addons/product/product.py