odoo/enterprise#43009

Created by POS IoT, Joseph Caburnay (jcb)
Merged at 75bc3975e8d1b7f1c0e5083144cef0a99a4750cf

Statuses:

Linked pull requests
label
odoo-dev:saas-16.3-runbot-error-20917-jcb
head
660cc727ebc9c3309c2a29d39c075ee213c2fd3c
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

[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