Skip to Content
Menu
This question has been flagged
1 Reply
3041 Views

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
Discard
Best Answer

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

                                    ^ missed comma?

Avatar
Discard
Author

thanks it's working now

Related Posts Replies Views Activity
1
Apr 24
336
1
Sep 23
1026
2
Aug 22
6355
8
Jun 20
19650
1
Apr 20
53