summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-01-22 07:30:48 +0000
committerNans Lefebvre <len@odoo.com>2019-01-22 07:36:40 +0000
commit102467ae235f86c68bb6dd295a220b4668863756 (patch)
treefafdd2fa437156bb0a6d7b20579688a73a362a5a /addons/web/static/src/js/views/basic/basic_controller.js
parent16b873c7714a4b81187dfb379e24d6bcc3c37d39 (diff)
[FIX] sale: add force_save on product_uom in views
Create a sale order. Confirm it. Add a new line. Change the UoM on this line. The onchange is applied, modifying the unit price. Save: the saved product UoM is the default one. So for example if the user changes the UoM from day to hours, he will sell one day for the price of one hour. This is because the field product_uom is set to read_only if the state of the sale order is confirmed ('sale') (as well as if the state is 'done' or 'cancel') However it is still possible to change it when adding a new line. opw 1923534 closes odoo/odoo#30420
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions