Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3906 Zobrazení

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 !

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
čvc 23
67940
4
bře 15
7566
1
bře 15
6837
0
bře 15
3957
1
bře 15
5728