I am trying to write a domain for model A, based on model A’s one2many relation with model B. Model B has both (1) a boolean attribute
current, and (2) a many2one relation with employee. The domain should include instances of A where there exists a related model B that is both
current, and related to the Transaction employee.
I have it partially working (as to the employee), and am asking how to add the
The partially working code is:
[(‘modelBs.employee’, ‘=’, Transaction().context.get(‘employee’)]