diff --git a/modules/stock_lot/CHANGELOG b/modules/stock_lot/CHANGELOG index 7c32526d0a..27c72a9668 100644 --- a/modules/stock_lot/CHANGELOG +++ b/modules/stock_lot/CHANGELOG @@ -1,3 +1,4 @@ +* Add locations to lot trace Version 7.0.0 - 2023-10-30 -------------------------- diff --git a/modules/stock_lot/stock.py b/modules/stock_lot/stock.py index 80ded26eec..d649482dad 100644 --- a/modules/stock_lot/stock.py +++ b/modules/stock_lot/stock.py @@ -187,6 +187,9 @@ class LotTrace(ModelSQL, ModelView): depends=['company']) lot = fields.Many2One('stock.lot', "Lot") + from_location = fields.Many2One('stock.location', "From Location") + to_location = fields.Many2One('stock.location', "To Location") + quantity = fields.Float("Quantity", digits='unit') unit = fields.Many2One('product.uom', "Unit") @@ -230,6 +233,8 @@ class LotTrace(ModelSQL, ModelView): move.write_date.as_('write_date'), move.product.as_('product'), move.lot.as_('lot'), + move.from_location.as_('from_location'), + move.to_location.as_('to_location'), move.quantity.as_('quantity'), move.unit.as_('unit'), move.company.as_('company'), diff --git a/modules/stock_lot/view/lot_trace_tree.xml b/modules/stock_lot/view/lot_trace_tree.xml index a8b89d709e..ecb2db247c 100644 --- a/modules/stock_lot/view/lot_trace_tree.xml +++ b/modules/stock_lot/view/lot_trace_tree.xml @@ -5,6 +5,8 @@ this repository contains the full copyright notices and license terms. --> + +