From 48e81bf679958286b15812ed5c8982b25e4e3843 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 18 Dec 2025 09:28:59 +0700 Subject: add customer name in commission internal line --- indoteknik_custom/models/commission_internal.py | 3 ++- indoteknik_custom/views/commission_internal.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/indoteknik_custom/models/commission_internal.py b/indoteknik_custom/models/commission_internal.py index cd6da380..4de5c723 100644 --- a/indoteknik_custom/models/commission_internal.py +++ b/indoteknik_custom/models/commission_internal.py @@ -259,6 +259,7 @@ class CommissionInternal(models.Model): 'res_name': data['res_name'], 'res_id': data['res_id'], 'name': data['name'], + 'customer': data['customer'], 'salesperson': data['salesperson'], 'totalamt': data['amount_total'], 'uang_masuk_line_id': data['uang_masuk_line_id'], @@ -271,7 +272,6 @@ class CommissionInternal(models.Model): 'helper1': data['helper1'], 'helper2': data['helper2'] }]) - print(1) # this button / method works for train data in July 2025 def calculate_commission_internal_from_keyword(self): @@ -390,3 +390,4 @@ class CommissionInternalResult(models.Model): helper3 = fields.Char(string='Helper3') helper4 = fields.Char(string='Helper4') helper5 = fields.Char(string='Helper5') + customer = fields.Char(string='Customer') diff --git a/indoteknik_custom/views/commission_internal.xml b/indoteknik_custom/views/commission_internal.xml index 2f3db5b0..d84eb4b8 100644 --- a/indoteknik_custom/views/commission_internal.xml +++ b/indoteknik_custom/views/commission_internal.xml @@ -108,6 +108,7 @@ + -- cgit v1.2.3