diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-11-03 14:13:39 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-11-06 13:05:37 +0100 |
| commit | 08ab28a66cf14707d86e1b3b045b8c1d5e7a3414 (patch) | |
| tree | 0ec84ec5e92e7cfc2bbff99a05b0bf8084994357 /doc/reference/javascript.rst | |
| parent | 6c1c1f6e9e03322771169b920d3c14c5e33111e9 (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 'doc/reference/javascript.rst')
0 files changed, 0 insertions, 0 deletions
