[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>
This commit is contained in:
committed by
Jignesh Rathod
parent
d60e6a1ab7
commit
2e1d7f8519
@@ -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 !'),
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user