From f86803fa41e9491652ca3ee666fbeb6c5ea34709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20Alan=20Ramos=20Rodri=CC=81guez?= Date: Tue, 2 Jul 2024 06:45:35 -0600 Subject: [PATCH] [DON'T MERGE] test-requirements.txt --- purchase_lot/models/purchase_order_line.py | 4 +++- purchase_lot/views/purchase_order_view.xml | 4 ++-- test-requirements.txt | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/purchase_lot/models/purchase_order_line.py b/purchase_lot/models/purchase_order_line.py index 3a9c2f6a24d..1bbc1aef8bf 100644 --- a/purchase_lot/models/purchase_order_line.py +++ b/purchase_lot/models/purchase_order_line.py @@ -8,7 +8,9 @@ class PurchaseOrderLine(models.Model): _inherit = "purchase.order.line" - lot_id = fields.Many2one("stock.lot", string="Serial Number", copy=False) + lot_id = fields.Many2one( + "stock.lot", string="Serial Number", copy=False, readonly=True + ) @api.model def _prepare_purchase_order_line_from_procurement( diff --git a/purchase_lot/views/purchase_order_view.xml b/purchase_lot/views/purchase_order_view.xml index 7879539ba5d..f7574afd5cc 100644 --- a/purchase_lot/views/purchase_order_view.xml +++ b/purchase_lot/views/purchase_order_view.xml @@ -9,7 +9,7 @@ expr="//field[@name='order_line']/tree/field[@name='name']" position="after" > - + @@ -19,7 +19,7 @@ - + diff --git a/test-requirements.txt b/test-requirements.txt index 66bc2cbae3f..d37cb49d30b 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1 +1,3 @@ odoo_test_helper +odoo-addon-stock_restrict_lot @ git+https://github.com/OCA/stock-logistics-workflow.git@refs/pull/1610/head#subdirectory=stock_restrict_lot +odoo-addon-sale_order_lot_selection @ git+https://github.com/OCA/sale-workflow.git@refs/pull/3034/head#subdirectory=sale_order_lot_selection