تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
245 أدوات العرض

Please i have tried this , but it doesnt work:


<openerp>

<data>

<record id="view_contracts_form_inherit" model="ir.ui.view">

<field name="name">analytic.analytic.account.form.inherit</field>

<field name="model">account.analytic.account</field>

<field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>

<field name="arch" type="xml">

<!--Adds a new page (tab) to the view after the tab Information -->

<xpath expr="//page[@string='Contract Information']" position="after">

<page name="Sample" string="Services">

</page>

</xpath>

</field>

</record>

</data>

</openerp>

Please  help

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

I think you have to set proper dependency in your custom module. It will resolve your issue. 

الصورة الرمزية
إهمال
الكاتب

thanks for the answer but i didnt understand what do you mean with "setting proper dependency"???

In your custom module inside __openerp__.py file you have to set 'depends': [ 'xxx', 'yyy' ] module. In this list you have to set proper module to get the model "account.analytic.account". I think now it is clear.

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 25
2833
1
يوليو 25
1152
1
أغسطس 25
1152
0
مايو 25
1571
2
أبريل 25
3766