I want to remove specific line record
@api.onchange('minus_value')
def on_change_minus_value(self):
obj = self.customer_statement_wizard_line_ids.filtered(lambda x: x.amount_total < 0)
obj.unlink()
only this line work but its delete all line......
self.customer_statement_wizard_line_ids = [(5, 0, 0)]
Not working
commands = [(2, line_id.id, False) for line_id in obj]