minor fix

This commit is contained in:
wilsongomez 2022-09-13 08:13:32 -05:00
parent 199c5abb10
commit d914d9713e
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class AgentCommissionSalesReport(Report):
commission_ = 0
for l in invoice.lines:
if l.commission_amount:
if hasattr(l, 'commission_amount') and l.commission_amount:
commission_ += (l.commission_amount)
else:
if l.unit_price and l.product and l.quantity and l.origin \