Hi,
Apologies for the newbie question but I'm trying to add a 'group-by' option for the products list view.
Specifically - group-by seller (or supplier). Whenever I edit the searchview and add any of the seller related fields, I'm getting an error that the field is related and not database-persisted field. ("Fields in 'groupby' must be regular database-persisted fields (no function or related fields), or function fields with store=True").
This error came when I tried to add my group-by with the following line at the group-by area, right below the 'Type' default group-by (Copied the previous line and changed the "filter string" ad the "group_by" fields values):
<filter string="Seller" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'seller_ids'}"/>
My questions are:
1. How can I find which are the fields in a view (for example the product list view) can use for a group-by?
2. How can I group-by my products list by a supplier?
Thanks! Gil.
Thanks!