While developing odoo apps, sometimes it neened to have some minor changes in odoo core. I add them here it might be usefull for other developers.
addons/survey/views/survey_templates_statistics.xml#L64
odoo/survey_templates_statistics.xml
Line 64 in afb2862
https://github.com/odoo-app-dev/odoo/blob/main/js/notification.js
state = field.Selection([('a', 'Firest'),('b', 'Second')])
- record.state => a
- dict(record._fields["state"].selection).get(record.state) => First
- dict(record._fields["state"]._description_selection(record.env)).get(record.state) => First ( translatable in website + Explicit exports)
new
def create(self, vals):
res = super(<class name>, self).create(vals)
print('Record ID: ', res.id)
return res