summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/refund_sale_order.py10
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