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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1413
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up