|
@@ -14,5 +14,5 @@ class AccountEdiFormat(models.Model):
|
|
|
def _l10n_mx_edi_get_40_values(self, move):
|
|
def _l10n_mx_edi_get_40_values(self, move):
|
|
|
res = super(AccountEdiFormat, self)._l10n_mx_edi_get_40_values(move)
|
|
res = super(AccountEdiFormat, self)._l10n_mx_edi_get_40_values(move)
|
|
|
if move.company_id.x_commercial_partner_id:
|
|
if move.company_id.x_commercial_partner_id:
|
|
|
- res["supplier_name"] = str(move.company_id.x_commercial_partner_id.name).strip()
|
|
|
|
|
|
|
+ res["supplier_name"] = self._l10n_mx_edi_clean_to_legal_name(str(move.company_id.x_commercial_partner_id.name).strip())
|
|
|
return res
|
|
return res
|