From acc284c5881675780faecd89ab5aaa85fd017914 Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Wed, 11 Jun 2025 13:07:51 +0700 Subject: (andri) fix bug name invoice yang berdampak pada dunningrun line --- indoteknik_custom/models/account_move.py | 28 ++++++++++++++-------------- 1 file 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: -- cgit v1.2.3