diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2026-01-26 02:42:29 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2026-01-26 02:42:29 +0000 |
| commit | 963d8c9cd740727869244295269d9e7cb3cbba62 (patch) | |
| tree | a0d2c1de3965977f162af406fd603ada28464500 | |
| parent | c9d09f6875dbb61656beb948a60316c6e5da77dc (diff) | |
| parent | 534bd428dd3548e9e501bd5e0e16892da7f7ff42 (diff) | |
Merged in refund_system (pull request #482)
<hafid> error block code
| -rw-r--r-- | indoteknik_custom/models/refund_sale_order.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/indoteknik_custom/models/refund_sale_order.py b/indoteknik_custom/models/refund_sale_order.py index 7615711b..646376ab 100644 --- a/indoteknik_custom/models/refund_sale_order.py +++ b/indoteknik_custom/models/refund_sale_order.py @@ -674,13 +674,11 @@ class RefundSaleOrder(models.Model): ('line_ids.account_id', '=', 450), ('line_ids.account_id', '=', 668), ] + domain += ['|'] * (len(so_names) - 1) + for name in so_names: + domain.append(('ref', 'ilike', name)) - if so_names: - domain += ['|'] * (len(so_names) - 1) - for name in so_names: - domain.append(('ref', 'ilike', name)) - - moves_ongkir = self.env['account.move'].search(domain) + moves_ongkir = self.env['account.move'].search(domain) all_moves = moves | piutangbca | piutangmdr | misc | moves2 | moves_ongkir | cabinvoice |
