summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/relational_fields.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-11-03 14:13:39 +0100
committerNicolas Martinelli <nim@odoo.com>2017-11-06 13:05:37 +0100
commit08ab28a66cf14707d86e1b3b045b8c1d5e7a3414 (patch)
tree0ec84ec5e92e7cfc2bbff99a05b0bf8084994357 /addons/web/static/src/js/fields/relational_fields.js
parent6c1c1f6e9e03322771169b920d3c14c5e33111e9 (diff)
[FIX] sale_expense: fields consistency
Use case to reproduce: - Set a product to be expensed - Set the expense_policy to something else than no - Do a delivery order with a picking - Validate the picking -> Delivered quantity to 0 and impossible to create an invoice if the invoice_policy is delivered_quantity It happens due to this commit 48ea59d What does it do: - The move could be generated by an expense. - If the move has 'no' as expense policy thus we won't add it in the invoice Problem we can't guess if the move come from an expense or not (limitation). This commit add an onchange on can_be_expense is order to set the expense policy back to 'no' when the user uncheck it. Courtesy of amoyaux opw-777139
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions