Skip to Content
Menu
This question has been flagged

How to solve this problem:

I have two list views filtered by domain value:

<record model="ir.actions.act_window" id="action_my_model_AA">
  <field name="name">My model AA</field>
  <field name="res_model">my.model</field>
  <field name="view_type">tree</field>
  <field name="domain">[('field','=','AA')]</field>
  <field name="view_id" ref="view_my_model_tree"/>
</record>


<record model="ir.actions.act_window" id="action_my_model_AA">
 <field name="name">My model BB</field>
<field name="res_model">my.model</field>
 <field name="view_type">tree</field>
<field name="domain">[('field','=','BB')]</field>
<field name="view_id" ref="view_my_model_tree"/>
</record>

and I need TWO tree_but_open actions, separately for both list (two different res_model), like this:

<act_window        id="action_aa"       
    name="Action AA"       
    res_model="other.model.aa"       
    src_model="my.model"       
    view_id="my_other_model_aa_view"
    key2="tree_but_open"/>

<act_window        id="action_bb"
    name="Action BB"       
    res_model="other.model.bb"
   src_model="my.model"
   view_id="my_other_model_bb_view"
   key2="tree_but_open"/>

now only one of them is triggered!

Avatar
Discard
Related Posts Replies Views Activity
0
Jan 17
5104
0
Oct 21
3195
3
Aug 24
359
5
Dec 23
16738
1
Nov 22
1561