summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/debug_manager.js
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2018-01-05 16:02:22 +0100
committerMartin Trigaux <mat@odoo.com>2018-01-09 18:15:47 +0100
commit7e894aca0b3a0c79121214d059a850f4628d75bc (patch)
tree592f0e3bf3ec65359799ba49e25d311a520a6fd9 /addons/web/static/src/js/widgets/debug_manager.js
parenta7c2a22310d52caf96d589f12319f8ac7488d821 (diff)
[FIX] models: do not keep the old source in case of copy override
Current behaviour when duplicating a record: apply copy override in the user language (e.g. "%s (copy)") copy the previous term in all the other languages (including) So if product was named: cheeses (en) kaas (nl) fromage (fr) Duplicating the product, while in French, will result into: cheeses (en) kaas (nl) fromage (copie) (fr) This is a problem if there is a unicity constrain on the field, it will be raised (there is already a product named 'cheese') After this PR: Duplicating the product, while in French, will result into: fromage (copie) (en) kaas (nl) fromage (copie) (fr) This applies **only** if there is an override of copy This is detected by comparing the old and new value for the user language Fixes #7010 Closes #22052
Diffstat (limited to 'addons/web/static/src/js/widgets/debug_manager.js')
0 files changed, 0 insertions, 0 deletions