diff options
| author | Ankita Raval <anr@odoo.com> | 2019-02-13 11:41:22 +0000 |
|---|---|---|
| committer | Jignesh Rathod <jir@openerp.com> | 2019-02-19 09:35:40 +0000 |
| commit | 2e1d7f85191f3f299395d0fa4b2d47730f4d8dda (patch) | |
| tree | dadc4ebb8b3c759ad27add263a97a54450ad1541 | |
| parent | d60e6a1ab75e3722c393d10ef6d5c7d309cb0b84 (diff) | |
[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) <sle@openerp.com>
| -rw-r--r-- | addons/stock/models/stock_production_lot.py | 1 | ||||
| -rw-r--r-- | addons/stock/views/stock_production_lot_views.xml | 5 |
2 files changed, 6 insertions, 0 deletions
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 @@ <field name="ref"/> </group> </group> + <notebook> + <page string="Description"> + <field name="note"/> + </page> + </notebook> </sheet> <div class="oe_chatter"> <field name="message_follower_ids" widget="mail_followers"/> |
