Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

menu item odoo

By
B.hind
on 10/4/16, 7:09 AM 174 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

0
Artem
On 10/4/16, 7:46 AM

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

                                    ^ missed comma?

thanks it's working now

B.hind
on 10/4/16, 8:30 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/4/16, 7:09 AM
Seen: 174 times
Last updated: 10/4/16, 8:30 AM