I’m a functional guy trying to figure out how to create a new grid.
I managed to copy/change the grid for detailed lines of invoices.
I would like to filter the display to only show the invoices with status « ventilated ». I have no need to cancelled and draft invoices in my new grid.
I tried many things but nothing worked
My last try is expr= « invoice.statusSelect : 2 »
That’s my code below, what should I change please?
Hi
See the attached iages one show grid to display only archived Leave Requests
Other image show the action, see « domain » :
(self.statusSelect = 3 OR self.statusSelect = 4) and self.archived = true
Hi Vincent
The only thing looks wrong to me is the domain condition should be
self.status = 3
Or you are filtering the wrong model
Also check
invoice-line-menu-grid should be invoice-line-menu-grid2 for the action
self.invoiceLine.status → looks wrong you are using invoiceLine as model so « self » is the actual invoice line
In you action-view, the title is wrong in xml « action-customer-invoice-line-menu » instead of « action-customer-invoice-line-menu2 » that is called in the dashlet.
The domain self.invoice.statusSlect = 3 seems good.