跳至內容
選單
此問題已被標幟
3177 瀏覽次數

Hello Guys;

Can anyone help me know why do i get this error when i try to inherit a view to be able to add a button under a tree.

Here is my code:

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

<field name="name">test.cnss.form.inherit</field>

<field name="model">test.cnss</field>

<field name="inherit_id" ref="test_cnss.test_cnss_form"/>

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

<data>

<xpath

expr="//field[@name='test_cnss_period_ids']/tree/field[@name='state']"

position="after">

<button name="generate_cnss_txt" type="object" string="Generate CNSS"/>

</xpath>

</data>

</field>

</record>

Then i got this error:

-> return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

Help please..

Best Regards.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 23
4324
3
11月 18
4407
0
7月 18
2499
2
1月 17
3283
1
1月 16
6724