fix: Use get instead of dot
(cherry picked from commit 95298f04000c0299f35cdee7bce0f5f0d8c59525)
This commit is contained in:
parent
714fc08150
commit
631545aa32
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user