diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2025-06-11 06:08:30 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2025-06-11 06:08:30 +0000 |
| commit | 697036b5e8a7fd0cae8d4faa683f233d1e49e659 (patch) | |
| tree | 971918bc24b3d0d764d4bba2bc0006e649b56ab9 | |
| parent | b8fbe54d6a6eb6d0a56afb2a45235e1bd6adca90 (diff) | |
| parent | acc284c5881675780faecd89ab5aaa85fd017914 (diff) | |
Merged in cab-po-finance (pull request #327)
(andri) fix bug name invoice yang berdampak pada dunningrun line
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 28 |
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: |
