summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order_multi_uangmuka2.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-06-15 10:23:20 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-06-15 10:23:20 +0700
commit080bdd7d1283509e55a0af2459c8e12b7519c0eb (patch)
treebc0fbe2b27f67e2f1a767a8cac9a94e295a36353 /indoteknik_custom/models/purchase_order_multi_uangmuka2.py
parentac997ef851c9e1ce6d061a68951051f0b916b534 (diff)
change request uang muka purchase order
Diffstat (limited to 'indoteknik_custom/models/purchase_order_multi_uangmuka2.py')
-rw-r--r--indoteknik_custom/models/purchase_order_multi_uangmuka2.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order_multi_uangmuka2.py b/indoteknik_custom/models/purchase_order_multi_uangmuka2.py
new file mode 100644
index 00000000..56539c5f
--- /dev/null
+++ b/indoteknik_custom/models/purchase_order_multi_uangmuka2.py
@@ -0,0 +1,18 @@
+from odoo import fields, models, _, api
+from odoo.exceptions import UserError
+from datetime import datetime
+from odoo.http import request
+
+import logging, math
+
+_logger = logging.getLogger(__name__)
+
+
+class PurchaseOrderMultiUangmuka2(models.TransientModel):
+ _name = 'purchase.order.multi_uangmuka2'
+
+ def redirect_to_po(self):
+ po_ids = self._context['order_ids']
+ purchase = self.env['purchase.order'].browse(po_ids)
+ purchase.is_create_uangmuka = False
+ return purchase.open_form_multi_create_uang_muka2() \ No newline at end of file