Skip to content

Commit

Permalink
Merge PR #3588 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by mileo
  • Loading branch information
OCA-git-bot committed Jan 18, 2025
2 parents 0a20787 + b799590 commit 2e59de3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions l10n_br_contract/models/contract_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ def _prepare_recurring_invoices_values(self, date_ref=False):
if isinstance(inv_line[2], list):
continue

contract_line_id = self.env["contract.line"].browse(
inv_line[2].get("contract_line_id")
)
if not contract_line_id.create_invoice_visibility:
continue

operation_line_id = self.env["l10n_br_fiscal.operation.line"].browse(
inv_line[2].get("fiscal_operation_line_id")
)
Expand Down

0 comments on commit 2e59de3

Please sign in to comment.