Skip to content
Snippets Groups Projects
Commit 8275b6ef authored by Nans Lefebvre's avatar Nans Lefebvre
Browse files

[FIX] sale, sale_expense, sale_stock: make the False expense_policy selection behaves as 'no'

The sale.order model has an expense_policy selection field, with values in 'no',
'cost', 'sales_price'.
However that value can also be set to False.

The code that handles that field expected the value to always be set to a value.
We explicitly treat False as if it was 'no' (the default value for that field).

opw 1915508

closes odoo/odoo#30336
parent 4c5de1c3
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment