diff options
| author | Nans Lefebvre <len@odoo.com> | 2019-01-22 07:30:48 +0000 |
|---|---|---|
| committer | Nans Lefebvre <len@odoo.com> | 2019-01-22 07:36:40 +0000 |
| commit | 102467ae235f86c68bb6dd295a220b4668863756 (patch) | |
| tree | fafdd2fa437156bb0a6d7b20579688a73a362a5a /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js | |
| parent | 16b873c7714a4b81187dfb379e24d6bcc3c37d39 (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/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions
