summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order.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.py
parentac997ef851c9e1ce6d061a68951051f0b916b534 (diff)
change request uang muka purchase order
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
-rwxr-xr-xindoteknik_custom/models/purchase_order.py8
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({