[IMP] stock: Add the new field 'origin' in 'stock.move.line'

Useful to know for which SO the product is reserved

Task #1872294
Closes #26380
This commit is contained in:
Prakash Prajapati
2018-11-26 10:40:41 +00:00
committed by Arnold Moyaux
parent 4e3a357cca
commit c5ce51168e
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -51,6 +51,7 @@ class StockMoveLine(models.Model):
produce_line_ids = fields.Many2many('stock.move.line', 'stock_move_line_consume_rel', 'produce_line_id', 'consume_line_id', help="Technical link to see which line was produced with this. ")
reference = fields.Char(related='move_id.reference', store=True, related_sudo=False, readonly=False)
tracking = fields.Selection(related='product_id.tracking', readonly=True)
origin = fields.Char(related='move_id.origin', string='Source')
picking_type_entire_packs = fields.Boolean(related='picking_id.picking_type_id.show_entire_packs', readonly=True)
@api.one
@@ -30,6 +30,7 @@
<group>
<field name="date"/>
<field name="reference" string="Reference"/>
<field name="origin"/>
<field name="product_id"/>
<field name="location_id" groups="stock.group_stock_multi_locations"/>
<field name="location_dest_id" groups="stock.group_stock_multi_locations"/>