We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37b813b commit bf7572aCopy full SHA for bf7572a
l10n_br_sale/models/sale_order.py
@@ -200,6 +200,12 @@ def _prepare_invoice(self):
200
if self.fiscal_operation_id:
201
result.update(self._prepare_br_fiscal_dict())
202
203
+ # By default, the value of the partner_id field should be the same
204
+ # as the partner_invoice_id field. The _prepare_br_fiscal_dict()
205
+ # method changes the partner_id value in the super result to the
206
+ # value of the partner_id field from the sale.order model.
207
+ result["partner_id"] = self.partner_invoice_id.id
208
+
209
document_type_id = self._context.get("document_type_id")
210
211
if not document_type_id:
0 commit comments