summaryrefslogtreecommitdiff
path: root/doc/reference/javascript.rst
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-03-04 15:40:38 +0100
committerNicolas Martinelli <nim@odoo.com>2016-03-07 10:08:17 +0100
commit018b53bc156c5251d67b5c49abe1309a0129e7ca (patch)
tree2a0a904c9de2c2b310f61ea4db96f476bbef5ec5 /doc/reference/javascript.rst
parent7d3d9272bfd45830eb489089cd47648d39d3c745 (diff)
[FIX] product: do not add same attribute on product
Adding an attribute with only one value does not recreate the product, but write this attribute on every product instead. However, the current filter is not correct: it checks if the given attribute value is not already in the list of attribute values of the product. The appropriate check is to verify that the attribute itself is not already in the list of attributes of the product. Indeed, there is a constraint to prevent the same attribute to have two different values on the same product. BTW, it's a new api function (`mapped`) inside an old api module. Not the cleanest way to do it, but simpler to write. opw-671114
Diffstat (limited to 'doc/reference/javascript.rst')
0 files changed, 0 insertions, 0 deletions