odoo/enterprise#43019

Created by fw-bot
Merged at 86cf6faf08fb19d4792c9c7f32f2776391a338c3

Statuses:

Linked pull requests
label
odoo-dev:master-saas-16.3-runbot-error-20917-jcb-98OJ-fw
head
a657925e43a4ab67b3818e4a8a85550609fb6ef6
merged
2 years ago by Robin Heinz (rhe)
odoo/odoo odoo/enterprise
saas-16.3 #126043 #43009
17.0
18.0
saas-18.2
saas-18.3
saas-18.4
19.0
master #126117 #43019

[FW][FIX] l10n_mx_edi_pos: properly check country from company

In many pos l10n addons, we assume that country is present in the company, and this is a wrong assumption. Thanks to the runbot error that we are able to detect these mistakes in the code. In this commit, we fix the issue by checking the presence of country first before actually accession the country code.

Runbot Error: 20917

Linked PR: odoo/odoo#126043

Forward-Port-Of: #43009