Skills

Model的filtered 方法

lines += self.line_ids.filtered(lambda line: line.account_id == lines[0].account_id and not line.reconciled)
ids = move.line_ids._all_reconciled_lines().filtered(lambda l: l.matched_debit_ids or l.matched_credit_ids).ids

Last updated