Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4605 Vues

Hello, I am developing a new module in Odoo 8 and I have a problem. If I want to define a new view for an existing model, how can I do? If I create a .xml view without specifying inherit_id, I get an error when I am installing the module "the <form.....> cannot be located in parent view". How can I define a new model for an existing view? Or do not I can do this?

Thanks!

Avatar
Ignorer
Meilleure réponse

I define view without specifying inherit_id, in my module, like this, without problems?!

        <record id="view_partner_form_TEST" model="ir.ui.view">
            <field name="name">res.partner.form.TEST</field>
            <field name="model">res.partner</field>            
            <field name="arch" type="xml">
               <form string="TEST">
                  <field name="ref"/>
               </form>  
            </field>
        </record>

 

Avatar
Ignorer
Publications associées Réponses Vues Activité
0
avr. 24
1879
4
nov. 23
6002
0
oct. 23
1753
0
déc. 22
2643
2
déc. 23
19363