mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
Add allow_none_list_price.diff | #060143
This commit is contained in:
parent
6f8c770b0d
commit
70cf6088e8
13
allow_none_list_price.diff
Normal file
13
allow_none_list_price.diff
Normal 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
2
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
|
Loading…
Reference in a new issue