Hello,
Is it possible to update a record by installing a module?
i mean i just want to update the record once the module installed
here's my function:
def _default_pos_receivable_account(self):
for record in self:
account_default_pos_receivable_account_id = self.env['account.account'].search([('code', '=', '772600')],
limit=1)
self.write({'account_default_pos_receivable_account_id': account_default_pos_receivable_account_id})
return record
but when i install it nothing happens, is there any other steps that i should do?
Thanks