This question has been flagged
1 Reply
6635 Views

Hello,

the following view contains a button that open an other window, i want that this viewdont been closed when i open the window thrue this button, so how to add nodestroy = true ?

this is the code

<record id="itk_entrepot_deplacerreception_action" model="ir.actions.act_window">
            <field name="name">Déplacer des articles</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">itk.entrepot.mvtinternes</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
               <field name="domain">[]</field>
            <field name="context">{'article_emplacement':'reception'}</field>
            <field name="view_id" ref="itk_entrepot_mvtinternes_maj"/>
            <field name="target">new</field>
        </record>
    
    <menuitem action="itk_entrepot_deplacerreception_action" id="itk_entrepot_deplacerreception_menu" parent="itk_entrepot_reception_menu" sequence="0"/>
   

i have tryed to add the following xml code but it havent any effect

<field name="nodestroy">True</field>

Any help please

Avatar
Discard
Best Answer

Setting boolean values in XML should be done with `eval`:

`<field name="nodestroy" eval="True"/>`

Avatar
Discard