Hello, I need to choose each time between two trees as the view mode on one2many field in xml file :
I defined too tree in my xml file as follows :
<record model="ir.ui.view" id="my_tree">
<field name="arch" type="xml">
<tree editable="bottom" domain="[('widget.view.is_action_enabled('edit')', '=', False)]">
<tree domain="[('widget.view.is_action_enabled('edit')', '!=', False)]">
when I mentioned <tree editable="bottom"> I will add attachment through tree view itself only. it is looking fine for me. But when I have saved current record and click on row of tree view that is one of the attachment it will not redirect to file details or ir attachment form view. but if i did not mentioned editable="bottom" then it will redirect to form view for same case.
Thank you in Advance :)
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: 9/11/15, 9:50 AM|
|Seen: 521 times|
|Last updated: 9/12/15, 3:23 PM|