diff options
| author | HafidBuroiroh <hafidburoiroh09@gmail.com> | 2026-01-26 09:41:52 +0700 |
|---|---|---|
| committer | HafidBuroiroh <hafidburoiroh09@gmail.com> | 2026-01-26 09:41:52 +0700 |
| commit | 534bd428dd3548e9e501bd5e0e16892da7f7ff42 (patch) | |
| tree | fbf0c696645368458f2fdd5c5ae21bda27640336 | |
| parent | c63ed469e0431f054668cf4e44318ce3c8953a83 (diff) | |
<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 |
