From 6913009015a3fbaa85ce1ad8b625b17028660eb7 Mon Sep 17 00:00:00 2001 From: Akim Juillerat Date: Wed, 19 Jan 2022 18:35:54 +0100 Subject: [PATCH] Update account_invoice_section_picking/models/account_move_line.py Co-authored-by: ajaniszewska-dev <59824990+ajaniszewska-dev@users.noreply.github.com> --- account_invoice_section_picking/models/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_invoice_section_picking/models/account_move_line.py b/account_invoice_section_picking/models/account_move_line.py index c65b081610a..80f174b2fff 100644 --- a/account_invoice_section_picking/models/account_move_line.py +++ b/account_invoice_section_picking/models/account_move_line.py @@ -23,7 +23,7 @@ def _get_section_group(self): last_invoice_line = self.search( [ ("sale_line_ids", "in", self.sale_line_ids.ids), - ("state", "!=", "cancel"), + ("parent_state", "!=", "cancel"), ("id", "!=", self.id), ], order="create_date",