コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3746 ビュー

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
67718
4
3月 15
7417
1
3月 15
6681
0
3月 15
3802
1
3月 15
5598