Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4628 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>

 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 24
1886
4
thg 11 23
6016
0
thg 10 23
1759
0
thg 12 22
2647
2
thg 12 23
19379