Add allow_none_list_price.diff | #060143

This commit is contained in:
Jared Esparza 2022-11-02 16:09:10 +01:00
parent 6f8c770b0d
commit 70cf6088e8
2 changed files with 15 additions and 0 deletions

View file

@ -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

2
series
View file

@ -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