summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/bootstrap-datetimepicker/src/less/bootstrap-datetimepicker.less
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2017-01-24 16:53:51 +0100
committerPierre Masereel <pim@odoo.com>2017-01-25 13:45:29 +0100
commitf23394b83a84791a38d7867560da78a02c94f604 (patch)
treea187da85559806c5f1a0aa37c09e90c599a596bb /addons/web/static/lib/bootstrap-datetimepicker/src/less/bootstrap-datetimepicker.less
parent74c6e895f62ef6763fe39eec53da96d9258e6371 (diff)
[FIX] stock: stock_inventory_line onchange product
If you make an inventory adjustement in mode 'select products manually' and you add a new line with a product having a different unit of mesure than the default one, but in the same unit of mesure category than the default one, the unit of mesure on the line doesn't change because both are in the same category. This bug is caused by an 'onchange' which is triggered when the 'product_id' or 'product_uom_id' has been changed. And so we cannot force to change the value to the product one, because we should still be able to make an inventory in 'kg', if the unit of mesure is in 'g'. So to fix this bug, we have set the 'onchange' only on the product_id to set the unit of mesure set on the product when we create a new line or change the product of a line. We removed the onchange ont the unit of mesure, because it was only checking that the unit of mesure is in the category of the product unit of mesure category, but it's always true has there is a domain set on the field unit on mesure by the onchange on product_id
Diffstat (limited to 'addons/web/static/lib/bootstrap-datetimepicker/src/less/bootstrap-datetimepicker.less')
0 files changed, 0 insertions, 0 deletions