I’m working on the offered.package model, which includes a field:
pythonCopierModifierjoint = fields.Selection([...], 'Joint')
with a default value set via:
pythonCopierModifierdef default_joint(self): return False
Here’s the issue I’m encountering:
- I open an existing record from the database.
- I manually check the
jointfield (set it toTrue) and save the record. - Then, I click the “+” button to add a new record.
Despite the default value being False, the new record has the joint field set to True — as if it’s inheriting the value from the previous record, possibly due to some caching mechanism in the client.
Is this expected behavior?
How can I ensure the joint field is properly initialized to False every time I add a new record?
Thanks in advance for your help.