Hi ,
i want to read the current id to increment it by one for updating record
i tryed :
rec = self.id +1
record = self.env['model.name'].search([('id', '=', rec)])
record.write({'field' : value })
but i got error
also how to do :
record = self.env['model.name'].search([('id', '=', self.id)])self.env['model.name'].browse(record).write({'field': 'value'})Thanks in advance
You just need to learn basics of odoo customization: https://goo.gl/8HgnCF