Odoo Help


nodestroy=true in xml ?

on 10/14/14, 6:46 AM 2,074 views


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>
    <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

On 2/13/17, 4:56 AM

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

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/14/14, 6:46 AM
Seen: 2074 times
Last updated: 2/13/17, 4:56 AM