Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3764 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

                                    ^ missed comma?

อวตาร
ละทิ้ง
ผู้เขียน

thanks it's working now

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ม.ค. 25
1369
1
มี.ค. 25
652
1
ก.ย. 23
2612
Favorite filter Odoo 10 แก้ไขแล้ว
2
ส.ค. 22
7748
[Odoo 8]How to use ref on domain xml แก้ไขแล้ว
8
มิ.ย. 20
21826