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

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.

アバター
破棄
最善の回答

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
アバター
破棄
関連投稿 返信 ビュー 活動
9
3月 24
118902
1
6月 20
12115
2
3月 16
10422
1
3月 15
3766
2
3月 15
9996