Skip to content

Commit

Permalink
Added check to see if first invoice generation from sub proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
Prazn committed Aug 22, 2024
1 parent c4d595f commit 43c2dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sponsorship_compassion/models/contract_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _should_skip_invoice_generation(self, invoicing_date, contract=None):

existing_invoices = self.env["account.move"].search_count(search_filter)

is_sub_proposal = contract.parent_id.child_id
is_sub_proposal = contract.parent_id.child_id and not contract.invoice_line_ids

# If invoices come from sub proposal, ignore group suspension to also generate
# already paid invoices
Expand Down

0 comments on commit 43c2dd5

Please sign in to comment.