[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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user