تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4666 أدوات العرض

Hi everyone!

Instead of opening a view form when clicking on a tree view line, is it possible to open an action window (an editable popup) so the user can edit a few field without adding an action in action button or creating a button in tree view line?


Thank you for your help.

الصورة الرمزية
إهمال
أفضل إجابة

Hi

We can define the tree view as follow:

<tree create="false" delete="false" action="action_open_wizard" type="object">

Then create a view and mention the id of thet view in the view_id of ir.actions.act_window

Then we create another record in ir.actions.act_window with id action_open_wizard.

Then define the action_open_wizard like:

<record id="action_open_wizard" model="ir.actions.act_window">

 <field name="name"><Name></field>

<field name="res_model"><model_name></field>

<field name="view_mode"><view_mode(tree, for)></field>

<field name="view_id" ref=<view that need to be opened>/></record>

Hope it helps

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 23
3079
2
مارس 23
15026
1
مايو 22
3279
1
مارس 15
4942
1
مايو 24
2586