From e5dca3e65049353f8e3edb8bfbd5f944647ba6c9 Mon Sep 17 00:00:00 2001 From: Aungkokolin1997 Date: Tue, 27 Aug 2024 10:20:05 +0000 Subject: [PATCH] adj --- purchase_order_migration/models/purchase_order_migration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/purchase_order_migration/models/purchase_order_migration.py b/purchase_order_migration/models/purchase_order_migration.py index bcb632b2..8176d9e7 100644 --- a/purchase_order_migration/models/purchase_order_migration.py +++ b/purchase_order_migration/models/purchase_order_migration.py @@ -71,6 +71,7 @@ def _run_purchase_order_data_migration(self): "shop_id", "purchase_by_id", "allow_convert", + "invoice_status", # 'sale_order_id', # To check need to migrate or not ] instance, uid_v11, models_v11 = self._data_migration_authentication() @@ -133,6 +134,7 @@ def _process_purchase_order_migration(self, purchase): "state": state, } ) + order.invoice_status = purchase["invoice_status"] def create_purchase_order_line(self, order, state): required_fields = [