Hi,
In Odoo 11, in the contact (res.partner) table, I added a "locked" field (boolean), and buttons to lock or unlock the data. These buttons are visible only when the contact form is edited (with the "oe_edit_only" class). In unlocked state (self.locked == False), a specific field appears and can be modified.
This is working well.
When I save the contact (button "Save"), I would like to automatically change the locked field value to True.
Thanks in advance,
Boris