[FIX] stock: hide quants for consumable

In the detailled operation view, hide the `quant_id` column for
consumable products as they have no quant

Task: 3256447
Part-of: odoo/odoo#122445
This commit is contained in:
William Henrotin
2023-05-30 13:03:19 +02:00
parent 8ca098480a
commit 4d904c0dc4
+1 -1
View File
@@ -800,7 +800,7 @@ Please change the quantity done or the rounding precision of your unit of measur
if self.product_id.tracking == "serial" and self.state == "assigned":
self.next_serial = self.env['stock.lot']._get_next_serial(self.company_id, self.product_id)
quant_mode = self.picking_type_id.code != 'incoming'
quant_mode = self.picking_type_id.code != 'incoming' or self.product_id.detailed_type != 'product'
return {
'name': _('Detailed Operations'),
'type': 'ir.actions.act_window',