← Back to team overview

openerp-community team mailing list archive

Context evaluation doesn't work on 6.1 Web Client

 

Hi everybody,

I have some context like this on a one2many field :

<field name="one2many_ids" context="{'some_useful_key' :
an_other_many2one_field_in_the_view}"/>

But, when using the new Web Client, I got a KeyError :
"an_other_many2one_field_in_the_view" is not defined. I've got the same
error in the GTK, but it's not blocking. I guess that on one2many fields,
there is 2 context evaluation, one to get tree_view_ref/form_view_ref,
and an other when the use clicks on "new" for example.

But in the first evaluation, other's view fields are not available as
evaluation context, that's why I got the error.

How could I fix that ? I need this value in the context for "new" events
and defaults values.

Thanks for your help,