From e035d5ce7097daf04fbe289298a5950108a54002 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 12 Jun 2024 11:12:30 +0700 Subject: function multi create uangmuka pembelian on po --- indoteknik_custom/models/purchase_order.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'indoteknik_custom/models/purchase_order.py') diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index 3a959391..8bef8274 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -116,6 +116,13 @@ class PurchaseOrder(models.Model): } return action + def open_form_multi_create_uang_muka(self): + action = self.env['ir.actions.act_window']._for_xml_id('indoteknik_custom.action_purchase_order_multi_uangmuka') + action['context'] = { + 'po_ids': [x.id for x in self] + } + return action + def action_multi_update_paid_status(self): for purchase in self: purchase.update({ @@ -401,7 +408,6 @@ class PurchaseOrder(models.Model): if purchasing_job_state: for purchasing_job in purchasing_job_state: purchasing_job.unlink() - def _send_po_not_sync(self): -- cgit v1.2.3