Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3751 Widoki

It's possible to define too(2) trees for a record and call one in edit mode and other in view mode.

One with attribute editable="bottom" and the other without this attribut.

The goal is to be able to open a form in view mode and edit records in treeview inline when update bouton is clicked.

Thanks to answer me. 

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Hello, thanks to your answer but it is not realy what i wanna do.

I want to have something like that : 

<record model="ir.ui.view" id="my_tree">

<field name="name">name</field>
<field name="model">model.model</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree editable="bottom" domain="[('widget.view.is_action_enabled('edit')', '=', False)]">
<field name="employee_id"/>
<field name="company_id"/>
</tree>
<tree domain="[('widget.view.is_action_enabled('edit')', '!=', False)]">
<field name="employee_id"/>
<field name="company_id"/>
</tree>
</field>
</record>

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 :)

 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
wrz 21
5421
1
paź 16
3922
1
wrz 15
10514
4
gru 23
20669
2
kwi 20
13002