fix: Use get instead of dot

This commit is contained in:
Deepesh Garg
2022-04-06 09:27:40 +05:30
parent c0ebcfb393
commit 95298f0400

View File

@@ -309,7 +309,7 @@ class calculate_taxes_and_totals(object):
def calculate_shipping_charges(self):
# Do not apply shipping rule for POS
if self.doc.is_pos:
if self.doc.get("is_pos"):
return
if hasattr(self.doc, "shipping_rule") and self.doc.shipping_rule: