mirror of
https://github.com/NaN-tic/trytond-commission_manager.git
synced 2023-12-14 04:03:00 +01:00
parent
6c65f9bb94
commit
d28e511b99
1 changed files with 2 additions and 3 deletions
|
@ -18,10 +18,9 @@ class InvoiceLine:
|
|||
'for manager "%s"'),
|
||||
})
|
||||
|
||||
@property
|
||||
def agent_plans_used(self):
|
||||
# Warning: we have a patch that replace property method
|
||||
# in commission module to allow inherit method
|
||||
used = super(InvoiceLine, self).agent_plans_used()
|
||||
used = super(InvoiceLine, self).agent_plans_used
|
||||
if not (self.invoice.agent and self.invoice.agent.manager):
|
||||
return used
|
||||
|
||||
|
|
Loading…
Reference in a new issue