summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2016-09-09 11:32:58 +0200
committerPierre Masereel <pim@odoo.com>2016-09-09 14:27:56 +0200
commit9deb7eb981cae74070a1d9287f308257f306e139 (patch)
tree14a42df254a38c3744a053d58a86b5148b75b344 /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
parent059ad64cea6758099f49b51ec2f9281174d12e0a (diff)
[FIX] product: error during migration
When we create a 'product.product', the 'lst_price' entered is not saved. This is due to the 'inverse' function of the field named '_set_product_price' which is shared with 'price' and 'lst_price' and uses 'price' to set the value, even if its called by 'lst_price' field. Before the migration in new API, it was possible to have the same inverse fucntion for different fields because the value was passed as param to the function. In the new API, we cannot because we have to get the value from the field. To fix this error, we had to duplicate function '_set_product_price' in 'set_product_lst_price' to have on function by field, and use the value correspondig to the field. Introducied in rev: https://github.com/odoo/odoo/commit/1aa5bc0fdfa402ac7cccbc3a7203ec5050f6339b
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions