diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-12 11:12:30 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-12 11:12:30 +0700 |
| commit | e035d5ce7097daf04fbe289298a5950108a54002 (patch) | |
| tree | 9be9d95785146e2669be8f00b0b59d3d192b309b /indoteknik_custom/models/purchase_order.py | |
| parent | 2c7c774119f47025d1577cfa6b8c88e3cc5a0607 (diff) | |
function multi create uangmuka pembelian on po
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 8 |
1 files changed, 7 insertions, 1 deletions
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): |
