Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
208 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

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

Awatar
Odrzuć
Autor

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.

Powiązane posty Odpowiedzi Widoki Czynność
2
sie 25
2617
1
lip 25
1015
1
sie 25
1151
0
maj 25
1473
2
kwi 25
3621