From 2e1d7f85191f3f299395d0fa4b2d47730f4d8dda Mon Sep 17 00:00:00 2001 From: Ankita Raval Date: Wed, 13 Feb 2019 11:41:22 +0000 Subject: [PATCH] [ADD] stock: Add a field note on SN/LN. -Add a field note to allow users to record detailed information about a lot/serial number. Related Task Id : 1938650 closes odoo/odoo#31089 Signed-off-by: Simon Lejeune (sle) --- addons/stock/models/stock_production_lot.py | 1 + addons/stock/views/stock_production_lot_views.xml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/addons/stock/models/stock_production_lot.py b/addons/stock/models/stock_production_lot.py index 462b79765ca..b5636776ae3 100644 --- a/addons/stock/models/stock_production_lot.py +++ b/addons/stock/models/stock_production_lot.py @@ -22,6 +22,7 @@ class ProductionLot(models.Model): related='product_id.uom_id', store=True, readonly=False) quant_ids = fields.One2many('stock.quant', 'lot_id', 'Quants', readonly=True) product_qty = fields.Float('Quantity', compute='_product_qty') + note = fields.Html(string='Description') _sql_constraints = [ ('name_ref_uniq', 'unique (name, product_id)', 'The combination of serial number and product must be unique !'), diff --git a/addons/stock/views/stock_production_lot_views.xml b/addons/stock/views/stock_production_lot_views.xml index a523ce0ff4b..2d813e23a1d 100644 --- a/addons/stock/views/stock_production_lot_views.xml +++ b/addons/stock/views/stock_production_lot_views.xml @@ -34,6 +34,11 @@ + + + + +