Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4595 Widoki

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!

Awatar
Odrzuć
Najlepsza odpowiedź

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>

 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
kwi 24
1878
4
lis 23
5999
0
paź 23
1745
0
gru 22
2639
2
gru 23
19362