changeset 78fc7dad87a8 in modules/carrier:default
details: https://hg.tryton.org/modules/carrier?cmd=changeset&node=78fc7dad87a8
description:
Support empty list price on product
issue10244
review350341002
diffstat:
carrier.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 95bb2b6d9ef0 -r 78fc7dad87a8 carrier.py
--- a/carrier.py Fri Aug 27 08:48:34 2021 +0200
+++ b/carrier.py Mon Sep 13 23:29:56 2021 +0200
@@ -51,7 +51,7 @@
if list_price is not None:
company = Company(self.carrier_product._context['company'])
return list_price, company.currency.id
- return 0, None
+ return None, None
def get_purchase_price(self):
'Compute carrier purchase price with currency'
@@ -62,7 +62,7 @@
if cost_price is not None:
company = Company(self.carrier_product._context['company'])
return cost_price, company.currency.id
- return 0, None
+ return None, None
@classmethod
def create(cls, *args, **kwargs):