summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sale_order.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-06-28 13:37:44 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-06-28 13:37:44 +0700
commit0346d579b0db5969bf3a4e475cf8abb1b788cdd2 (patch)
tree0cb22f9ac1f3e7c649a6d9703e5bb3b1eb9f3f85 /indoteknik_custom/models/sale_order.py
parent53e2b4ba69c7d0ea7a401ea6cc810dbcbf0fe46a (diff)
multi create uang muka penjualan
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
-rwxr-xr-xindoteknik_custom/models/sale_order.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index efcbf606..ce54bc74 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -99,6 +99,13 @@ class SaleOrder(models.Model):
compute_fullfillment = fields.Boolean(string='Compute Fullfillment', compute="_compute_fullfillment")
note_ekspedisi = fields.Char(string="Note Ekspedisi")
+ def open_form_multi_create_uang_muka(self):
+ action = self.env['ir.actions.act_window']._for_xml_id('indoteknik_custom.action_sale_order_multi_uangmuka')
+ action['context'] = {
+ 'so_ids': [x.id for x in self]
+ }
+ return action
+
def _compute_fullfillment(self):
for rec in self:
rec.fullfillment_line.unlink()