summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/commission_internal.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/commission_internal.py b/indoteknik_custom/models/commission_internal.py
index ce9c564d..840700c6 100644
--- a/indoteknik_custom/models/commission_internal.py
+++ b/indoteknik_custom/models/commission_internal.py
@@ -181,6 +181,8 @@ class CommissionInternal(models.Model):
if self.commission_internal_result:
raise UserError('Hapus semua isi table result jika ingin di create result ulang')
+ self.message_post(body=("Commission Internal Result generated by %s at %s.") % (self.env.user.name, fields.Datetime.now()))
+
exception = ['ONGKOS KIRIM SO/20']
query = [
('commission_internal_id.id', '=', self.id),
@@ -275,7 +277,6 @@ class CommissionInternal(models.Model):
'helper1': data['helper1'],
'helper2': data['helper2']
}])
- self.message_post(body=("Commission Internal Result generated by %s at %s.") % (self.env.user.name, fields.Datetime.now()))
# this button / method works for train data in July 2025
def calculate_commission_internal_from_keyword(self):