How to override @property?


(Àngel Àlvarez) #1

I need to override @property agent_plans_used from commission module.
I have tried it in different ways without success.

some clue?


(Cédric Krier) #2

Like any method but without calling:

class InvoiceLine(metaclass=PoolMeta):
   __name__ = 'account.invoice.line'

   @property
   def agent_plans_used(self):
       plan = super().agent_plans_used
       if …:
           plan = …
       return plan

(system) #3

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.