Using Eval with parent fields

Hi,
When using expressions with Eval('_parent_xxx') in view_attributes or in field states, the referenced field must be present in the view.
Otherwise, the view engine will not load its value and the expression won’t work.

For example, if you want to use the customer’s language (party_lang) from the sale:
parent_sale.party_lang
You need to add it at the form view too:
party_lang_at_sale_form

If i’m right that this is the current behaviour, I would expect that you can add a depend to load it without needing to add it to the view.

Thanks beforehand.

Ideally it will be better to use a Function field so it can be added as depend to the field using it.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.