Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][FIX] compute nfe40_infRespTec in order to work with spec_import #2612

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion l10n_br_nfe/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,19 @@ def _compute_nfe40_additional_data(self):

nfe40_infRespTec = fields.Many2one(
comodel_name="res.partner",
related="company_id.technical_support_id",
compute="_compute_resptec_data",
)

##########################
# NF-e tag: infRespTec
# Compute Methods
##########################

@api.depends("company_id")
def _compute_resptec_data(self):
for doc in self:
doc.nfe40_infRespTec = doc.company_id.technical_support_id

##########################
# NF-e tag: autXML
# Compute Methods
Expand Down
Loading