Hello Creyox Technologies,
Thanks, nice approach.
However, write method doesn't open my action to show the wizard, and I think she can't.
Any alternatives ?
class Esignature(models.Model):
_inherit = 'res.partner'
@api.multi
def write(self, vals):
rc = super(Esignature, self).write(vals)
# Resarch in modified vals in field need confirmation
for val in vals:
field_rc = self.env['ir.model.fields'].search([('model', '=', self.model.model), ('name', '=', val), ('need_confirm', '=', True)])
if field_rc: # Confirmation needed, show confirmation wizard
return {
'name': 'Open Wizard',
'type': 'ir.actions.act_window',
'res_model': 'a4.password.request',
'view_mode': 'form',
'target': 'new',
}
return rc