diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-15 10:23:20 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-15 10:23:20 +0700 |
| commit | 080bdd7d1283509e55a0af2459c8e12b7519c0eb (patch) | |
| tree | bc0fbe2b27f67e2f1a767a8cac9a94e295a36353 /indoteknik_custom/models/purchase_order.py | |
| parent | ac997ef851c9e1ce6d061a68951051f0b916b534 (diff) | |
change request uang muka purchase order
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index 5d28e5a1..16fb7cf8 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -58,6 +58,7 @@ class PurchaseOrder(models.Model): approval_edit_line = fields.Boolean(string='Approval Edit Line', tracking=3) sale_order = fields.Char(string='Sale Order') matches_so = fields.Many2many('sale.order', string='Matches SO', compute='_compute_matches_so') + is_create_uangmuka = fields.Boolean(string='Uang Muka?') def _compute_matches_so(self): for po in self: @@ -132,6 +133,13 @@ class PurchaseOrder(models.Model): } return action + def open_form_multi_create_uang_muka2(self): + action = self.env['ir.actions.act_window']._for_xml_id('indoteknik_custom.action_purchase_order_multi_uangmuka') + action['context'] = { + 'po_ids': self.id + } + return action + def action_multi_update_paid_status(self): for purchase in self: purchase.update({ |
