From 72b6d34df5606cf2be49bb66936be092b86c9d15 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 3 Apr 2024 14:30:17 +0700 Subject: Change request automatic purchase and bug fixing --- indoteknik_custom/models/automatic_purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indoteknik_custom/models/automatic_purchase.py') diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py index 4a892b05..485f7a45 100644 --- a/indoteknik_custom/models/automatic_purchase.py +++ b/indoteknik_custom/models/automatic_purchase.py @@ -187,7 +187,7 @@ class AutomaticPurchase(models.Model): # i start from zero (0) for i in range(page): new_po = self.env['purchase.order'].create([param_header]) - new_po.name = new_po.name + "/A/" + str(i + 1) + new_po.name = new_po.name + "/B/" + str(i + 1) self.env['automatic.purchase.match'].create([{ 'automatic_purchase_id': self.id, -- cgit v1.2.3