Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4615 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Apr 24
1883
4
Nov 23
6003
0
Okt 23
1756
0
Des 22
2644
2
Des 23
19368