|
|
@@ -9,4 +9,10 @@ class AccountEdiFormat(models.Model):
|
|
|
res = super(AccountEdiFormat, self)._l10n_mx_edi_get_common_cfdi_values(move)
|
|
|
if move.company_id.x_commercial_partner_id:
|
|
|
res["supplier"] = move.company_id.x_commercial_partner_id
|
|
|
+ return res
|
|
|
+
|
|
|
+ def _l10n_mx_edi_get_40_values(self, move):
|
|
|
+ res = super(AccountEdiFormat, self)._l10n_mx_edi_get_40_values(move)
|
|
|
+ if move.company_id.x_commercial_partner_id:
|
|
|
+ res["supplier_name"] = str(move.company_id.x_commercial_partner_id.name).strip()
|
|
|
return res
|