Replace agent_plans_used to property

#035741
This commit is contained in:
Raimon Esteve 2018-10-17 16:40:13 +02:00
parent 6c65f9bb94
commit d28e511b99

View file

@ -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