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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/4/15, 4:00 PM|
|Seen: 989 times|
|Last updated: 3/27/15, 6:40 PM|