I have a model with clickable selection field
py
state = fields.Selection([('new', 'New'), ('in_progress', 'In Progress'), ('done', 'Done')], default='new')
xml
<field name="state" widget="statusbar" clickable="True" />
function
@api.onchange('state')
def onchange_state(self):
print self
notes
it printes like this
<odoo.models.NewId object at 0x7f624b7b7b90>,
questions
1)is it possible to get the id of the record based on this clickable selection field in onchange event?