Filters
Using the Odoo studio app, we can easily create statinfo in the
current model. For that, switch to the studio app, and place the
mouse pointer near the smart button and click on the ‘+’ icon; a
popup will appear.
Add label, icons and add the related field and then confirm it. Then close the studio app and check in the customer smart buttons. The new smart button will be added there with the name as coupons, and the icon will be added.
If this customer does any order by using coupon codes, the count will be added in the button.
And click on the tab, which will lead to the corresponding record.
In the above image the corresponding record is in list view.These are the steps to add statinfo in models by using the Odoo studio app.