I have a company field where i can select my company I want. Now i would like to know how to filter my projects according to their belonging to the company.
A part of my code:
<panel name="actionPanelCopy" sidebar="true" showIf="statusSelect == 3">
<field name="$projectCopy" title="Project" type="many-to-one" onChange="action-hr-timesheet-record-empty-product" onSelect="action-hr-timesheet-attrs-domain-projectCopy" target="com.axelor.apps.project.db.Project" domain="self.imputable=true and self. AND :company project of self.companySet" form-view="project-form" grid-view="project-grid"/>
<button name="copyBtn" onClick="action-timesheet-methode-copy" title="Timesheet copy"/>
</panel>
self represent the project model, __user__ represent the logged in user, so query filtering those project whose company is in company set of logged in user