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

error in context evaluation?

By
Pablo Manuel Rizzo
on 11/1/13, 12:01 PM 752 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"/>
        </xpath>
    </field>
</record>

Which gives this error in Oerp v7:

OpenERP Error en el cliente

Error: SyntaxError: Unknown node [[=]]

http://fmsb.naltu.com:18069/web/static/lib/py.js/lib/py.js:1430

Looks like related to this:

https://code.launchpad.net/~openerp-dev/openerp-web/trunk-evaluator-evaldomainandcontext-assertions-xmo/+merge/95359

Any idea on how to fix it? Thanks

0
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}"/>

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

0 follower(s)

Stats

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