[FIX] stock_account: hide SVL of consumable

- Create a consumable product
- Assign a FIFO product category, automated valuation
- Purchase some units
- Go to the Inventory Valuation report

The product appears in the list, while consumable should not.

We only show products linked to stockable products.

opw-2153840

X-original-commit: 8fa2440e8c055ca80bce27e33d5678745712fe53
This commit is contained in:
Nicolas Martinelli
2020-04-30 08:37:41 +00:00
parent 8d2fd05382
commit bde92f013f
@@ -65,7 +65,7 @@
<field name="res_model">stock.valuation.layer</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="stock_valuation_layer_tree"/>
<field name="domain"></field>
<field name="domain">[('product_id.type', '=', 'product')]</field>
<field name="context">{'search_default_group_by_product_id': 1}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">