summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-11 13:07:51 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-11 13:07:51 +0700
commitacc284c5881675780faecd89ab5aaa85fd017914 (patch)
tree1edbe4934bba22b7edc50b7b2a8e84d39d9c9278
parentd89f6b21f0174d52b1efb7d54ec3443bbbe3fbcb (diff)
(andri) fix bug name invoice yang berdampak pada dunningrun line
-rw-r--r--indoteknik_custom/models/account_move.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 4cd2b6b3..54eaabcf 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -72,20 +72,20 @@ class AccountMove(models.Model):
bill_id = fields.Many2one('account.move', string='Vendor Bill', domain=[('move_type', '=', 'in_invoice')], help='Bill asal dari proses reklas ini')
- def name_get(self):
- result = []
- for move in self:
- if move.move_type == 'entry':
- # Jika masih draft, tampilkan 'Draft CAB'
- if move.state == 'draft':
- label = 'Draft CAB'
- else:
- label = move.name
- result.append((move.id, label))
- else:
- # Untuk invoice dan lainnya, pakai default
- result.append((move.id, move.display_name))
- return result
+ # def name_get(self):
+ # result = []
+ # for move in self:
+ # if move.move_type == 'entry':
+ # # Jika masih draft, tampilkan 'Draft CAB'
+ # if move.state == 'draft':
+ # label = 'Draft CAB'
+ # else:
+ # label = move.name
+ # result.append((move.id, label))
+ # else:
+ # # Untuk invoice dan lainnya, pakai default
+ # result.append((move.id, move.display_name))
+ # return result
def compute_length_of_payment(self):
for rec in self: