From c8451880743f0a44368a8c82f5790267cf0cf27a Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Sat, 16 Nov 2024 12:30:37 -0300 Subject: [PATCH] [FIX] l10n_br_stock_account: Update line Fiscal OP --- l10n_br_stock_account/models/stock_picking.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/l10n_br_stock_account/models/stock_picking.py b/l10n_br_stock_account/models/stock_picking.py index 00d7aff3b6ef..a8235991160e 100644 --- a/l10n_br_stock_account/models/stock_picking.py +++ b/l10n_br_stock_account/models/stock_picking.py @@ -160,6 +160,9 @@ def _onchange_invoice_state(self): fiscal_operation = record._get_default_fiscal_operation() if fiscal_operation: record.fiscal_operation_id = fiscal_operation + for line in record.move_lines: + line.fiscal_operation_id = fiscal_operation + line._onchange_product_id_fiscal() def set_to_be_invoiced(self): """