Hello everybody!!
My friends i am using the hr.payslip model and i want to call the function compute_sheet().
Here is what i have tried:
@api.onchange('field1')
def onchange_solde(self):
for payslip in self :
if self.field1 == True :
self.compute_sheet()
But the problem here is my self contains this: <odoo.models.NewId object at 0x7f7769d212d0>
How can i solve this please.
Thanks a lot in advance.
Best reagrds.
no one can anwser plz