Criptomart/red-supermercados-coop#6 add stock_valuation_layer_category_groupby

This commit is contained in:
Luis 2025-12-04 18:28:18 +01:00
parent 18f98defeb
commit 19af717773
8 changed files with 167 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Add Product Category to group by options -->
<record id="view_inventory_valuation_search_category" model="ir.ui.view">
<field name="name">stock.valuation.layer.search.category</field>
<field name="model">stock.valuation.layer</field>
<field name="inherit_id" ref="stock_account.view_inventory_valuation_search" />
<field name="arch" type="xml">
<filter name="group_by_product_id" position="after">
<filter
string="Product Category"
name="group_by_categ_id"
context="{'group_by': 'categ_id'}"
/>
</filter>
</field>
</record>
</odoo>