I m using odoo 17 and this “Error new create a new record –AttributeError: ‘_unknown’ object has no attribute ‘id’– how to solve it on odoo” error comes when i change type of fields in odoo
i have chnaged some type of fields and now i m getting this error.
i tried to solve it in odoo 17 but not getting solution
Priyanshu Yadav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
the problem occure when i changed type of some fields like
buyer = fields.Many2one(‘res.partner’, copy=False) -> buyer = fields.Many2one(‘res.user‘, copy=False)
but i made syntax mistake it should be res.users not res.user
so always pay attention on syntax
Priyanshu Yadav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.