Merge lp:~openerp-dev/openobject-addons/7.0-opw-607044-rgo into lp:openobject-addons/7.0
Status: | Rejected |
---|---|
Rejected by: | Martin Trigaux (OpenERP) |
Proposed branch: | lp:~openerp-dev/openobject-addons/7.0-opw-607044-rgo |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
44 lines (+18/-2) 1 file modified
product/product.py (+18/-2) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-607044-rgo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Trigaux (OpenERP) | Pending | ||
Review via email: mp+218376@code.launchpad.net |
Description of the change
Steps to reproduce the issue:
1. Create a db and load the "French(BE)" lang for the admin user
2. Open the product "[CARD] Carte graphique" in form view
3. duplicate the product "Carte graphique"
Issue1: you will have "Graphics Card (copie)" as the name for duplicated product instead of "Carte graphique (copie)"
4. change the name of the duplicated product in step "3" to eg. "Graphics Card2" and save
5. duplicate the product created in step "4"
Issue2: the new suggested name for product created in step "5" will be the same like on the first duplicate("Graphics Card (copie)") instead of "Graphics Card2 (copie)"
This is because the wrong values are set for product_template's name field in the ir.translation table when duplicating the product.
I have fixed this issue by managing this case for product object by overriding the copy_translatio
Thanks.
Unmerged revisions
- 10035. By Ravi Gohil (OpenERP)
-
[FIX] product: Duplicating product in other than en_US lang sets wrong translation for product template name, courtesy: Jay Vora (Serpent Consulting Services), referenced lp bug# 734191. (Maintenance Case: 607044)
Hello,
The expected behaviour is the following
If my user is in english when duplicating
[en] Graphic Card -> Graphic Card (copy)
[fr] Carte Graphique -> Carte Graphique
We keep the same translation in french as we want to avoid people with lots of translation to manually reenter the translation
If my user is in french when duplicating
[fr] Carte Graphique -> Carte Graphique (copie)
[en] Graphic Card -> Graphic Card
There was indeed an issue in case of product which had a different behaviour. It is now fixed in 7.0 at revision 10041.
I reject this one them.