summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-08-16 14:08:38 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-08-16 14:08:38 +0700
commitf6134301ab185bd22a4ef54d9e6ecbeda3c0e890 (patch)
tree83edd08173944fef1c7f98d64417e55f02f78756
parent10db08f6db326d236efc8a4e3d9d91fbff931ed8 (diff)
Fix approve new due function on due extension
-rw-r--r--indoteknik_custom/models/account_move_due_extension.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/indoteknik_custom/models/account_move_due_extension.py b/indoteknik_custom/models/account_move_due_extension.py
index 3824fb30..b7a3cd9a 100644
--- a/indoteknik_custom/models/account_move_due_extension.py
+++ b/indoteknik_custom/models/account_move_due_extension.py
@@ -82,13 +82,13 @@ class DueExtension(models.Model):
line.invoice_id.new_due_date = new_due
line.invoice_id.due_extension = day_extension
- if self.order_id._notification_margin_leader():
+ if self.order_id.order._requires_approval_margin_leader():
self.order_id.approval_status = 'pengajuan2'
- return self.order_id._notification_has_margin_leader()
+ return self._create_approval_notification('Pimpinan')
- if self.order_id._notification_margin_manager():
+ if self.order_id._requires_approval_margin_manager():
self.order_id.approval_status = 'pengajuan1'
- return self.order_id._notification_has_margin_manager()
+ return self._create_approval_notification('Sales Manager')
sales = self.env['sale.order'].browse(self.order_id.id)