This question has been flagged
1792 Views

Hi everyone,

I need in the cash registers to edit the write function in order when the user click on save button the journal entires will be created.

I had do it like this but I'm getting an error how can I fix it please help me and thanks.

def write(self, cr, uid, ids, vals, context):

res = super(account_cash_statement, self).write(cr, uid, ids, vals, context)

self.button_confirm_bank(cr, uid, ids, res, context)

return res

Avatar
Discard