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.