Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3676 Zobrazení

hi ,

i add new menu item in my module but i get error , i dont know how to solve it

this is my code xml :

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

<field name="name">Gestion des Sequences</field>           

<field name="res_model">ir.sequence</field>           

<field name="view_type">form</field>    

        <field name="view_mode">tree,form</field>      

      <field name="domain">[('code','in',['FE','RF' 'OI', 'OP', 'OR', 'OD'])]</field>   

     </record>       
        <menuitem id="menu_sequences" parent="menu_configuration" name="Sequences" action="action_sequences" sequence="60" />

the Error that i get  :

Odoo Erreur (côté interface)
Error: Expected "]", got "(string)"
http://localhost:8069/web/static/lib/py.js/lib/py.js:361

Avatar
Zrušit
Nejlepší odpověď

[ ( 'code','in', ['FE','RF' 'OI', 'OP', 'OR', 'OD'] ) ]

                                    ^ missed comma?

Avatar
Zrušit
Autor

thanks it's working now

Related Posts Odpovědi Zobrazení Aktivita
0
led 25
1263
1
bře 25
652
1
zář 23
2446
2
srp 22
7652
8
čvn 20
21654