summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-07-31 10:38:10 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-07-31 10:38:10 +0700
commit01b2fc531d349418ea4b53170688b909c7ea6e8c (patch)
treef050c3090ec63a2dcc3950b1f5f47c9d3db599e0 /indoteknik_custom
parent102d8c691a231aa7a15a522deb44b4eb2b0f4e31 (diff)
add margin validation
Diffstat (limited to 'indoteknik_custom')
-rwxr-xr-xindoteknik_custom/models/sale_order.py4
-rw-r--r--indoteknik_custom/views/mail_template_efaktur.xml2
2 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 3f23f65d..376ae20a 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -661,10 +661,10 @@ class SaleOrder(models.Model):
return False
def _requires_approval_margin_leader(self):
- return self.total_percent_margin <= 15 and not self.env.user.is_leader
+ return self.total_percent_margin <= 13 and not self.env.user.is_leader
def _requires_approval_margin_manager(self):
- return self.total_percent_margin <= 22 and not self.env.user.is_leader and not self.env.user.is_sales_manager
+ return self.total_percent_margin <= 20 and not self.env.user.is_leader and not self.env.user.is_sales_manager
def _create_approval_notification(self, approval_role):
title = 'Warning'
diff --git a/indoteknik_custom/views/mail_template_efaktur.xml b/indoteknik_custom/views/mail_template_efaktur.xml
index d0e7b39a..b0637691 100644
--- a/indoteknik_custom/views/mail_template_efaktur.xml
+++ b/indoteknik_custom/views/mail_template_efaktur.xml
@@ -7,7 +7,7 @@
<field name="subject">Faktur Pajak Invoice ${object.name}</field>
<field name="email_from">pajak@indoteknik.co.id</field>
<field name="reply_to">pajak@indoteknik.co.id</field>
- <field name="email_cc">sales@indoteknik.com</field>
+ <field name="email_cc">sales@indoteknik.com,pajak@indoteknik.co.id</field>
<field name="email_to">${object.partner_id.email|safe}</field>
<field name="body_html" type="html">
<p>Dengan Hormat Bpk/Ibu ${object.partner_id.name},</p>