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

Hi guys.. i have a question with inheritance view, i've just got what is inheritance view for the function. But i have next question, why must default view, such as: res.partner, must have more than one inheritance view, such as : res.partner.emails.info.inherit

<?xml version="1.0"?>
<xpath expr="//field[@name='active']" position="after">
                    <field name="opt_out"/>
                </xpath>

and res.partner.opt_out.form

<?xml version="1.0"?>
<xpath expr="//sheet" position="after">
                    <div class="oe_chatter">
                        <field name="message_follower_ids" widget="mail_followers"/>
                        <field name="message_ids" widget="mail_thread" options="{&quot;thread_level&quot;: 1}"/>
                    </div>
                </xpath>

, and many more. why must separated into different file? why just no united it? and then, when i finished making new inheritance view in xml, how to update it? so that it can be inserted to database and directly applied in parent view.. really need your help guys.. thank's in advance.

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

If you inherite a view, you have two ways to update you code:

  1. Go into the installed modules, go to you module and update it
  2. Run openerp by command line and use the parameter --update=your_module_name
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
What's the context? Đã xử lý
9
thg 3 24
118861
1
thg 6 20
12105
2
thg 3 16
10413
1
thg 3 15
3752
2
thg 3 15
9957