Hi!
When building a custom module in odoo.sh I get the following error:
AssertionError: nombre is a required field ({'invisible': [('company_type', '=', 'company')], 'required': [('company_type', '=', 'person')]})
The field definition is:
nombre = fields.Char(string="Primer Nombre")
It is a simple field so I don't understand what the error means, could you please help me?
Thank you
Greetings
try deleting existing records in the table and see, whether the error is still there
The error occurs when a build is generated in development, that is, with an empty database that from what I see later, demo data is generated.
Hello,
Thanks Ray for your reply. Finally leave the field like this:
name = fields.Char (string = "First Name", default = "")
And the error disappeared.
Greetings