Odoo Help


error in context evaluation?

Pablo Manuel Rizzo
on 11/1/13, 12:01 PM 1,099 views

We have this piece of code:

<record id="hr_timesheet_line_tree" model="ir.ui.view">
    <field name="name">hr.analytic.timesheet.tree</field>
    <field name="model">hr.analytic.timesheet</field>
    <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
    <field name="type">tree</field>
    <field name="arch" type="xml">
        <xpath expr="/tree/field[@name='account_id']" position="after">
            <field name="activity" context="account_id=account_id"/>

Which gives this error in Oerp v7:

OpenERP Error en el cliente

Error: SyntaxError: Unknown node [[=]]


Looks like related to this:


Any idea on how to fix it? Thanks

raul paz
On 6/9/14, 6:39 PM

The context systax was not ok, must be a dict, like this:

<field name="activity" context="{'account_id':account_id}"/>

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 11/1/13, 12:01 PM
Seen: 1099 times
Last updated: 3/16/15, 8:10 AM