Skip to content

Commit

Permalink
[IMP] l10n_br_fiscal: operation: also copy lines and taxes
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoParadeda authored and rvalyi committed Jan 15, 2025
1 parent e152d1a commit e0796c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_br_fiscal/models/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class Operation(models.Model):
string="Operation Line",
readonly=True,
states={"draft": [("readonly", False)]},
copy=True,
)

comment_ids = fields.Many2many(
Expand Down
1 change: 1 addition & 0 deletions l10n_br_fiscal/models/operation_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e0796c8

Please sign in to comment.