[IMP] hr_commission: new method been called _invoice_paid_hook

This commit is contained in:
Percy
2022-10-27 17:32:09 +00:00
parent d3d3a02168
commit 9406b5c582

View File

@@ -31,8 +31,8 @@ class AccountMove(models.Model):
self.env['hr.commission'].invoice_validated(invoices)
return res
def action_invoice_paid(self):
res = super(AccountMove, self).action_invoice_paid()
def _invoice_paid_hook(self):
res = super(AccountMove, self)._invoice_paid_hook()
self.env['hr.commission'].invoice_paid(self)
return res