From e0796c8d1dd898c75a2efba4fcc1a7b4b0e77885 Mon Sep 17 00:00:00 2001 From: Diego Paradeda Date: Fri, 13 Dec 2024 17:50:36 -0300 Subject: [PATCH] [IMP] l10n_br_fiscal: operation: also copy lines and taxes --- l10n_br_fiscal/models/operation.py | 1 + l10n_br_fiscal/models/operation_line.py | 1 + 2 files changed, 2 insertions(+) diff --git a/l10n_br_fiscal/models/operation.py b/l10n_br_fiscal/models/operation.py index 94e859df43c7..0344bd0789f1 100644 --- a/l10n_br_fiscal/models/operation.py +++ b/l10n_br_fiscal/models/operation.py @@ -123,6 +123,7 @@ class Operation(models.Model): string="Operation Line", readonly=True, states={"draft": [("readonly", False)]}, + copy=True, ) comment_ids = fields.Many2many( diff --git a/l10n_br_fiscal/models/operation_line.py b/l10n_br_fiscal/models/operation_line.py index e2cde39e3b8b..e2cf987de9a8 100644 --- a/l10n_br_fiscal/models/operation_line.py +++ b/l10n_br_fiscal/models/operation_line.py @@ -115,6 +115,7 @@ class OperationLine(models.Model): comodel_name="l10n_br_fiscal.tax.definition", inverse_name="fiscal_operation_line_id", string="Tax Definition", + copy=True, ) comment_ids = fields.Many2many(