You can use in your action-view a domain filter: <domain>self.clientPartner = :partner</domain> <context name=":partner" expr="__self__.clientPartner">
in the domain you have to specify the JPQL query with var (prefix by :). Var will be assigned by “context”. So if you assign a “Projet” model to your action and link this action using a panel-dashlet inside a projet form the __self__ value will be equals to the current project and the :partner in the domain will be replaced by the value of the projet partner.
If I understand, your goal is to display inside a project view a list of orders of the customer.
Inside the domain node, the JPQL will target the SaleOrder object & fields, inside the context the project object & fields. So let’s try this:
Just note that the “:clientPartner” inside the domain is a var that is populated using the context. A var has no “:” in context (just its name), has “:” in the domain to mark it as a var.