summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-06-29 11:59:06 +0200
committerNicolas Martinelli <nim@odoo.com>2017-06-30 10:52:15 +0200
commitc61ae3a3ed65b7a40b470076c5dbbd881e791f78 (patch)
tree1828c3115d18a25172b520fcedce320319d98792 /addons/web/static/src/xml/base.xml
parentd1e92c312f2fdfd63d59ea8ec27eb264750873b7 (diff)
[FIX] models: copy field with unique constrain
When a model contains a field translatable which has a unique constrain, it is impossible to copy a record. Indeed, the unicity constrain is always triggered, even if the model takes in charge the overriding of the copy method to avoid duplication. Introduced with commit ce7f31b0b0a5fba, with the goal to target only XML/HTML translations. We apply this behavior in case of a callable translate property, to target only the desired problematic use case. opw-749481
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions