コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4597 ビュー

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!

アバター
破棄
最善の回答

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>

 

アバター
破棄
関連投稿 返信 ビュー 活動
0
4月 24
1878
4
11月 23
6000
0
10月 23
1748
0
12月 22
2641
2
12月 23
19362