Error with Many2One field with select widget in odoo 12

In odoo v12, when defined a field as Many2One, then in the view you should not apply the selection widget on the field, because in the moment there are no records in the related table the widget will fail to work (as it receives a False value instead of an object). Throws error message like this one:

TypeError: this.values[i] is undefined

The resolution is to remove the widget from the field/view, will work perfectly fine without it.

April-21-2020
odoo, odoo 12

Leave a comment

Comments (if any)

Don't know what will come here, let's wait and see... But in the first instance it will be a login box (for myself):

Login