-
- Downloads
[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 48ea59d4 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
Showing
- addons/sale_expense/__init__.py 2 additions, 0 deletionsaddons/sale_expense/__init__.py
- addons/sale_expense/models/__init__.py 4 additions, 0 deletionsaddons/sale_expense/models/__init__.py
- addons/sale_expense/models/product_template.py 13 additions, 0 deletionsaddons/sale_expense/models/product_template.py
addons/sale_expense/models/__init__.py
0 → 100644
Please register or sign in to comment