Daily updates from Odoo
Thursday, November 14, 2024
1 change · master
Code cleanup and technical improvements
This change restores the previous internal model naming approach after a related typing initiative was canceled. It helps keep the system aligned with established Odoo conventions without introducing functional changes for end users.
Original PR description
Following internal discussions, the python typing and inheritance task is canceled. The use of the class name instead of '_name' was done to allow notations such as `partner_id = fields.Many2one[base.ResParter](string='Partner')`. Since this notation is canceled, we put `_name` back (although the class name is sufficient). Partial revert: https://github.com/odoo/enterprise/pull/69762 https://github.com/odoo/odoo/pull/178200