Hi I am currently trying to learn Odoo watching tutorials from Youtube and building my custom module. In my custom module I have inherited 'res.partner' model and added view that inherits the CRM->Sales->Customers->Customer view. I have succesfully added my own new fields into a customer view, but if I try to replace existing field the Odoo gives error since it is expecting these fields to exist. Is there a way to replace or remove these required fields?
Odoo version: 16
Hi and thank you Savya for taking your time to help.
After adding your code and making sure it didn't break anything I tried to add the following to my custom view:
name="mobile" position="replace">
name="my_new_field"/>
But upgrading the custom module shows the following error message:
Could be that the problem is not that field 'mobile' has attribute required, but perhaps something else in the app requires the field to exist?