diff --git a/allow_none_list_price.diff b/allow_none_list_price.diff new file mode 100644 index 0000000..ef8e84d --- /dev/null +++ b/allow_none_list_price.diff @@ -0,0 +1,13 @@ +diff --git a/product.py b/product.py +index edb0f67..dcb0197 100644 +--- a/trytond/trytond/modules/sale_price_list/product.py ++++ b/trytond/trytond/modules/sale_price_list/product.py +@@ -37,7 +37,7 @@ class Product(metaclass=PoolMeta): + uom = self.sale_uom + unit_price = price_list.compute( + customer, self, unit_price, quantity, uom) +- if price_list.tax_included and taxes: ++ if price_list.tax_included and taxes and unit_price is not None: + unit_price = Tax.reverse_compute(unit_price, taxes) + return unit_price + diff --git a/series b/series index 9d6d269..599c330 100644 --- a/series +++ b/series @@ -64,3 +64,5 @@ issue11181.diff # [stock] Require unit price also for view location like for sto issue11745.diff # [stock] Moves of internal shipment are not valid when switching between transit and no transit issue11750.diff # [stock] 'create' method execution frozen or extremly slow + +allow_none_list_price.diff # [sale_price_list] allow set none as price list in a sale with tax_included=True product_price_list \ No newline at end of file