CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I want to allow a record in one2many tree view and allow to delete a record in one2many tree view based on its state.
For example: if state!='draft', disable the delete icon.
It is for account.invoice.line model.
I try to override the fields_view_get method, but It does not work.
I try to override the ir.rule, but the result is the same and the delete icon always displays.
About This Community
Odoo Training Center
|Asked: 3/4/15, 4:00 PM|
|Seen: 1413 times|
|Last updated: 3/27/15, 6:40 PM|