summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/res_partner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py
index 00ebe674..77273610 100644
--- a/indoteknik_custom/models/res_partner.py
+++ b/indoteknik_custom/models/res_partner.py
@@ -52,7 +52,7 @@ class ResPartner(models.Model):
res = super(ResPartner, self).write(vals)
if 'property_payment_term_id' in vals:
- if not self.env.user.is_accounting:
+ if not self.env.user.is_accounting and vals['property_payment_term_id'] != 26:
raise UserError('Hanya Finance Accounting yang dapat merubah payment term')
return res