[FIX] stock: remove grouping with non stored category field

exception is raised on grouping by non stored category field in stock quant model.

 "Field stock.quant.product_categ_id is not a stored field, only stored fields (regular or many2many) are valid for the 'groupby' parameter"

 Issue:  https://github.com/odoo/odoo/issues/107933

closes odoo/odoo#109207

X-original-commit: 4e280643aa6fdd8cf964f0e18e1ed6cd97d26cda
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
niyasraphy
2023-01-06 12:29:41 +01:00
parent 2e8dcad061
commit 807415ef3d
-1
View File
@@ -46,7 +46,6 @@
</group>
<group expand='0' string='Group by...'>
<filter string='Product' name="productgroup" context="{'group_by': 'product_id'}"/>
<filter string='Product Category' name="productcategorygroup" context="{'group_by': 'product_categ_id'}"/>
<filter string='Location' name="locationgroup" domain="[]" context="{'group_by': 'location_id'}"/>
<filter string='Storage Category' name="storagecategorygroup" domain="[]" context="{'group_by': 'storage_category_id'}"/>
<filter string='Owner' name="owner" context="{'group_by': 'owner_id'}" groups="stock.group_tracking_owner"/>