Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

ODOO9: Inheritance view to add a button in a tree

By
Drees Far
on 4/11/16, 5:22 AM 311 views

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/11/16, 5:22 AM
Seen: 311 times
Last updated: 4/11/16, 5:22 AM