Im building a training module.
i have a list of selected employees that i have to add result of each one in the same model
here is the code
<group string="Employees" groups="slnee_hr_training.group_ade"> <field name="employee_ids" nolabel="1"/> </group> <group string="Results" groups="slnee_hr_training.group_ade" attrs="{'invisible':[('state','!=','done')]}"> <field name="hr_training_results" nolabel="1"> <tree editable="True"> <field name="employee_id" required="True" domain="[('id', 'in', 'parent.employee_ids')]"/> <field name="result" required="True"/> <field name="document_id" attrs="{'invisible':[('result','=','fail')]}"/> </tree> </field> </group>
the error when trying to add a result is ValueError: Invalid domain term (u'id', u'in', u'parent.employee_ids')
thanks.