Add unit of measure on stock quant tree/form view

This commit is contained in:
Alexis de Lattre
2016-06-28 10:06:50 +02:00
parent 7f2589c9bf
commit 8a7a3c670f
2 changed files with 28 additions and 1 deletions

View File

@@ -103,3 +103,10 @@ class StockMove(models.Model):
name = name + ' ' + fields.Date.to_string(date_expec_dt)
res.append((line.id, name))
return res
class StockQuant(models.Model):
_inherit = 'stock.quant'
uom_id = fields.Many2one(
'product.uom', related='product_id.uom_id', readonly=True)