How to change Opportunities view sorting and add default filter?

Hello @marty

  1. In the grid header, put -opportunitySeq in the orderBy parameter

<grid name="opportunity-grid" title="Opportunities" model="com.axelor.apps.crm.db.Opportunity" orderBy="-opportunitySeq">

  1. In the opportunity-filters view, add the following filter:

     <filter title="My team not closed">
     <domain>self.opportunityStatus not in (5,6)</domain>
     </filter>
    

Save and refresh only changed views, you can apply the filter as follows:

Warning 1 : It’s a short-term fix.
This modification will persist as long as the production application version is not modified.
In the case of a new version of the software delivered in production, the current modification will be lost.
To integrate this modification in the next release, a developer must integrate it into the relevant xml file of the application sources.

Warning 2 :

Hope this helps you.
Regards

2 « J'aime »