minor fix
This commit is contained in:
parent
199c5abb10
commit
d914d9713e
2
agent.py
2
agent.py
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue