c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #19858
[Bug 734191] Re: translation name in product.form after duplication
The issue in in product/product.py method copy.
Not clear why you use create instead of copy. If you use create, you must do:
> context_wo_lang = context.copy()
> if 'lang' in context:
> del context_wo_lang['lang']
< product = self.read(cr, uid, id, ['name'], context=context)
> product = self.read(cr, uid, id, ['name'], context=context_wo_lang)
< data = self.read(cr, uid, id, fields=fields, context=context)
> data = self.read(cr, uid, id, fields=fields, context=context_wo_lang)
and then manage the translation like done by copy_translations.
Maybe, this method should simply be rewritten to use
super(product_product, self).copy instead of self.create
** Changed in: openobject-addons
Importance: Undecided => Low
** Changed in: openobject-addons
Status: New => Confirmed
** Also affects: openobject-addons/6.0
Importance: Undecided
Status: New
** Changed in: openobject-addons/6.0
Importance: Undecided => Low
** Changed in: openobject-addons/6.0
Status: New => Confirmed
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/734191
Title:
translation name in product.form after duplication
Status in OpenERP Modules (addons):
Confirmed
Status in OpenERP Addons 6.0 series:
Confirmed
Bug description:
V6, trunk
steps to reproduce:
install any language (I tested with German de_DE)
create a new product: name = mix 1234, code = 1234
duplicate the new product through product.tree/form/duplicate
open the copy
change name in mix 2345 and code in 2345
save
open the translation for name: in language English you still find the name mix 1234
This does not happen when you're logged in with English (and German is
installed as well). Even the translation from English to German
changed to mix 2345
References