diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2025-12-18 09:28:59 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2025-12-18 09:28:59 +0700 |
| commit | 48e81bf679958286b15812ed5c8982b25e4e3843 (patch) | |
| tree | 81485d3a9c447ef204a1ba372c5f533cf16452aa | |
| parent | a8de47d71da75c9351da76ac87ba6046d5b152c3 (diff) | |
add customer name in commission internal line
| -rw-r--r-- | indoteknik_custom/models/commission_internal.py | 3 | ||||
| -rw-r--r-- | indoteknik_custom/views/commission_internal.xml | 1 |
2 files changed, 3 insertions, 1 deletions
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 @@ <field name="res_name" optional="hide"/> <field name="res_id" optional="hide"/> <field name="name"/> + <field name="customer"/> <field name="salesperson"/> <field name="totalamt"/> <field name="uang_masuk_line_id" optional="hide"/> |
