Skip to Content
Menu
This question has been flagged
1 Reply
1413 Views

I have an entity bill with an "paid" (Boolean) attribute. Is it possible to make all records in "Bill" with (paid=True) readonly ? That means that when the user clicks on an specific bill on the tree view, he cannot edit any of the "bill" fields

Avatar
Discard
Best Answer

It may be simpler to use Record Rules so that users cannot edit Bills where paid = true

You could copy the logic from Odoo's "Lunch Order" app



https://odootricks.tips/record-rules/

Avatar
Discard