跳至內容
選單
此問題已被標幟
3722 瀏覽次數

Holla

I want to set default checked checkbox when I create a new object, I just apply wath's in res.partner module ( customer checkbox and supplier checkbox), My action's code is :

<record id="action_mymodule_form" model="ir.actions.act_window">
            <field name="name">My module</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">my.module</field>
            <field name="view_type">form</field>
            <field name="domain">[('myfield','=',1)]</field>
            <field name="context">{'default_myfield':1, 'search_default_myfield':1}</field>
            <field name="filter" eval="True"/>
        </record>

But it seems not working !

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
7月 23
67674
4
3月 15
7387
1
3月 15
6631
0
3月 15
3784
1
3月 15
5576