Skip to content

Commit

Permalink
Merge pull request #751 from ursais/17.0_fix_addenda_mabe
Browse files Browse the repository at this point in the history
[FIX] [17.0] l10n_mx_edi_addenda_mabe: Fix plant codes
  • Loading branch information
SMaciasOSI authored Aug 1, 2024
2 parents 35cfb96 + e033949 commit 38fdd2d
Show file tree
Hide file tree
Showing 2 changed files with 157 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
t-att-codigoImpuesto="record.audi_tax_code"
t-att-cantidad="move_line.quantity"
t-att-posicion="i"
t-att-montoLinea="move_line.price_unit * move_line.quantity"
t-att-montoLinea="round(move_line.price_unit * move_line.quantity)"
t-att-unidadMedida="move_line.product_uom_id.name"
>
<t t-set="i" t-value="i+1" />
Expand Down
203 changes: 156 additions & 47 deletions l10n_mx_edi_addenda_mabe/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,161 @@ class ResPartner(models.Model):

mabe_plant_code = fields.Selection(
selection=[
("D026", "Mabe Internacional"),
("D121", "CDR SAN LUIS POTOSI"),
("D128", "EXPORTACION CEAM"),
("D161", "CDR AF SAN LUIS POTOSI"),
("D165", "CDR TLAQUEPAQUE"),
("A002", "MABE SA CENTRAL"),
("A003", "TI"),
("A004", "CSC FINANZAS"),
("A006", "CORPORATIVO TYP"),
("R001", "Mabe Celaya"),
("S001", "Mabe San Luis"),
("T102", "ADR MEXICO DF"),
("T103", "MODULO MEXICO METRO NORTE"),
("T104", "MODULO ACAPULCO"),
("T105", "MODULO PUEBLA"),
("T106", "MODULO MEXICO METRO ORIENTE"),
("T107", "MODULO QUERETARO"),
("T108", "MODULO VERACRUZ"),
("T109", "MODULO MERIDA"),
("T110", "MODULO VILLAHERMOSA"),
("T111", "MODULO CANCUN"),
("T112", "ADR MONTERREY"),
("T113", "MODULO MONTERREY"),
("T114", "MODULO CD JUAREZ"),
("T115", "MODULO CHIHUAHUA"),
("T116", "MODULO TORREON"),
("T117", "MODULO MEXICO METRO SUR"),
("T118", "MODULO TAMPICO"),
("T119", "MODULO MONTERREY SUR"),
("T120", "MODULO REYNOSA"),
("T121", "MODULO MATAMOROS"),
("T122", "MODULO CD VICTORIA"),
("T123", "MODULO PIEDRAS NEGRAS"),
("T124", "ADR GUADALAJARA"),
("T125", "MODULO GUADALAJARA"),
("T126", "MODULO AGUASCALIENTES"),
("T127", "MODULO SAN LUIS POTOSI"),
("T128", "MODULO MEXICALLI"),
("T129", "MODULO TIJUANA"),
("T130", "MODULO HERMOSILLO"),
("T131", "MODULO LEON"),
("T132", "MODULO CULIACAN"),
("T133", "MODULO LOS MOCHIS"),
("T134", "MODULO LA PAZ"),
("T135", "Corporativo Serviplus"),
("T136", "ADR SAN LUIS POTOSI"),
("W002", "Mabe Saltillo"),
("S001", '[S001] - ESTUFAS 30"'),
("S002", "[S002] - GO GLOBAL SLP"),
("S004", "[S004] - FARGOS SLP"),
("S005", "[S005] - IKDS"),
("S006", '[S006] - ESTUFAS 20" & 24"'),
("R001", "[R001] - PLANTA CELAYA"),
("R007", "[R007] - REFACCIONES CEL"),
("R008", "[R008] - REFRIGERADORES CEL PT QC"),
("R002", "[R002] - SLC - GO - GLOBAL"),
("W002", "[W002] - PLANTA SALTILLO"),
("W004", "[W004] - SLC GO GLOBAL SALTILLO"),
("W007", "[W007] - SLC - SIAC SALTILLO"),
("W008", "[W008] - SLC - MIRAI SALTILLO"),
("W009", "[W009] - VIRTUALCONTROLADORA"),
("W013", "[W013] - M2L SERVICES DE MÉX"),
("A055", "[A055] - CONTROLADORA HOLDING"),
("A067", "[A067] - CORPORATIVO DE MATERIALES"),
("A068", "[A068] - CSC INDUSTRIAL"),
("C003", "[C003] - COMPONENTES PLASTICOS"),
("C004", "[C004] - COMPONENTES TROQUELES"),
("C005", "[C005] - COMPRESORES SAN LUIS POTOSI"),
("C008", "[C008] - LEISER QUERETARO"),
("C009", "[C009] - COMPONENTES PLASTICOS CELAYA"),
("C013", "[C013] - SLC MPT ELECTRONICA"),
("C014", "[C014] - SLC MPT ELECTRONICA"),
("Q901", "[Q901] - CMABEID-ESTUFAS SLP"),
("Q902", "[Q902] - CMABEID- IKDS LEISER"),
("Q903", '[Q903] - CMABEID- LEISER SLP ESTUFAS 20" & 24"'),
("Q904", "[Q904] - CMABEID-REFRIG. CLYA"),
("Q905", "[Q905] - CMABEID- LEISER REGRIGERAD CEL PT QC"),
("Q906", "[Q906] - CMABEID- LEISER CLY ANDROMEDA"),
("Q907", "[Q907] - CMABEID- TARJETAS ELECTRÓNICAS QRO"),
("Q908", "[Q908] - CMABEID-LAVADORAS SALTILLO"),
("Q909", "[Q909] - CMABEID-SECADORAS SALTILLO"),
("Q910", "[Q910] - CMABEID-TRANSMISIONES SALTILLO"),
("Q911", "[Q911] - CMABEID-CENTROS DE LAVADO SALTILLO"),
("Q912", "[Q912] - CMABEID-PLASTICOS QRO"),
("Q913", "[Q913] - CMABEID-COOK TOPS QRO"),
("Q914", "[Q914] - CMABEID-TROQUELADOS QRO"),
("Q915", "[Q915] - CMABEID-COMPRESORES SLP"),
("Q916", "[Q916] - CMABEID- COMPONENTES MOTORES"),
("Q100", "[Q100] - MABE INTEGRA"),
("Q101", "[Q101] - MI-CDR HUEHUETOCA"),
("Q106", "[Q106] - MI- ESTUFAS SAN LUIS POTOSI"),
("Q109", "[Q109] - MI-ADR MEXICO"),
("Q143", "[Q143] - MI- MABE SA CENTRAL"),
("Q146", "[Q146] - MI- REFRIGERADORES CELAYA"),
("Q149", "[Q149] - MI- COMPONENTES QUERETARO"),
("Q151", "[Q151] - MI- LAVADORAS SALTILLO"),
("Q155", "[Q155] - MI- MCM AMERICAS"),
("Q157", "[Q157] - MI_CORPORATIVO DE MATERIALES"),
("Q159", "[Q159] - MI- TYP"),
("Q160", "[Q160] - MI- PYMES"),
("Q161", "[Q161] - MI-MPT"),
("Q200", "[Q200] - MABESUD"),
("Q201", "[Q201] - MS-CDR HUEHUETOCA"),
("Q206", "[Q206] - MS- ESTUFAS SAN LUIS POTOSI"),
("Q209", "[Q209] - MS-ADR MEXICO"),
("Q243", "[Q243] - MS- MABE SA CENTRAL"),
("Q245", "[Q245] - MS- REFRIGERADORES CELAYA"),
("Q248", "[Q248] - MS- COMPONENTES QUERETARO"),
("Q250", "[Q250] - MS- LAVADORAS SALTILLO"),
("Q254", "[Q254] - MS- MCM AMERICAS"),
("Q256", "[Q256] - MS_CORPORATIVO DE MATERIALES"),
("Q258", "[Q258] - MS- TYP"),
("Q259", "[Q259] - MS-MPT"),
("Q300", "[Q300] - SERVEJ"),
("Q301", "[Q301] - SV-COMERCIAL"),
("Q303", "[Q303] - SV-MABE SA CENTRAL"),
("Q306", "[Q306] - SV-ESTUFAS SLP"),
("Q309", "[Q309] - SV-REFRIGERADORES CLYA"),
("Q312", "[Q312] - SV-COMPONENTES QRO"),
("Q314", "[Q314] - SV-MCM AMERICAS"),
("Q315", "[Q315] - SV-LAVADORAS SALTILLO"),
("Q318", "[Q318] - SV-SERVIPLUS"),
("Q328", "[Q328] - SV-TYP"),
("Q329", "[Q329] - SV-PYMES"),
("Q330", "[Q330] - SV-CORPORATIVO DE MATERIALES"),
("Q332", "[Q332] - SV - MPT"),
("Q400", "[Q400] - MABE UNE"),
("Q401", "[Q401] - MABE UNE-CDR HUEHUETOCA"),
("Q406", "[Q406] - MABE UNE- ESTUFAS SAN LUIS POTOSI"),
("Q409", "[Q409] - MABE UNE- ADR MEXICO DF"),
("Q443", "[Q443] - MABE UNE- MABE SA CENTRAL"),
("Q446", "[Q446] - MABE UNE- REFRIGERADORES CELAYA"),
("Q449", "[Q449] - MABE UNE- COMPONENTES QRO PLASTICOS"),
("Q451", "[Q451] - MABE UNE- LAVADORAS SALTILLO"),
("Q455", "[Q455] - MABE UNE- MCM AMERICAS"),
("Q457", "[Q457] - MABE UNE- CORPORATIVO DE MATERIALES"),
("Q459", "[Q459] - MABE UNE- TYP"),
("Q460", "[Q460] - MABE UNE- PYMES"),
("Q461", "[Q461] - MABE UNE-MPT"),
("Q462", "[Q462] - MABE UNE-SERVIPLUS CEAM"),
("D004", "[D004] - CDR Huehuetoca"),
("D005", "[D005] - CDR Guadalajara"),
("D006", "[D006] - CDR Monterrey"),
("D007", "[D007] - Ing Militares"),
("D008", "[D008] - BIN Querétaro 1"),
("D009", "[D009] - BPI MABE SA"),
("D010", "[D010] - Virtual Celaya"),
("D011", "[D011] - Virtual SLP"),
("D012", "[D012] - BIN Monterrey"),
("D013", "[D013] - BIN Saltillo Lavadoras"),
("D014", "[D014] - Virtual Saltillo"),
("D015", "[D015] - Cross Dock Villahermosa"),
("D016", "[D016] - Cross Dock Chihuhua"),
("D019", "[D019] - Cross Dock Chihuhua"),
("D021", "[D021] - Cross Dock Mérida"),
("D022", "[D022] - Cross Dock Mexicali"),
("D023", "[D023] - Gto.Corp.Comercial"),
("D024", "[D024] - Cross Dock Culiacan"),
("D025", "[D025] - Cross Dock Veracruz"),
("D026", "[D026] - Mabe Internacional"),
("D121", "[D121] - CDR SAN LUIS POTOSI"),
("D128", "[D128] - EXPORTACION CEAM"),
("D161", "[D161] - CDR AF SAN LUIS POTOSI"),
("D165", "[D165] - CDR TLAQUEPAQUE"),
("A002", "[A002] - MABE SA CENTRAL"),
("A003", "[A003] - TI"),
("A004", "[A004] - CSC FINANZAS"),
("A006", "[A006] - CORPORATIVO TYP"),
("T102", "[T102] - ADR MEXICO DF"),
("T103", "[T103] - MODULO MEXICO METRO NORTE"),
("T104", "[T104] - MODULO ACAPULCO"),
("T105", "[T105] - MODULO PUEBLA"),
("T106", "[T106] - MODULO MEXICO METRO ORIENTE"),
("T107", "[T107] - MODULO QUERETARO"),
("T108", "[T108] - MODULO VERACRUZ"),
("T109", "[T109] - MODULO MERIDA"),
("T110", "[T110] - MODULO VILLAHERMOSA"),
("T111", "[T111] - MODULO CANCUN"),
("T112", "[T112] - ADR MONTERREY"),
("T113", "[T113] - MODULO MONTERREY"),
("T114", "[T114] - MODULO CD JUAREZ"),
("T115", "[T115] - MODULO CHIHUAHUA"),
("T116", "[T116] - MODULO TORREON"),
("T117", "[T117] - MODULO MEXICO METRO SUR"),
("T118", "[T118] - MODULO TAMPICO"),
("T119", "[T119] - MODULO MONTERREY SUR"),
("T120", "[T120] - MODULO REYNOSA"),
("T121", "[T121] - MODULO MATAMOROS"),
("T122", "[T122] - MODULO CD VICTORIA"),
("T123", "[T123] - MODULO PIEDRAS NEGRAS"),
("T124", "[T124] - ADR GUADALAJARA"),
("T125", "[T125] - MODULO GUADALAJARA"),
("T126", "[T126] - MODULO AGUASCALIENTES"),
("T127", "[T127] - MODULO SAN LUIS POTOSI"),
("T128", "[T128] - MODULO MEXICALLI"),
("T129", "[T129] - MODULO TIJUANA"),
("T130", "[T130] - MODULO HERMOSILLO"),
("T131", "[T131] - MODULO LEON"),
("T132", "[T132] - MODULO CULIACAN"),
("T133", "[T133] - MODULO LOS MOCHIS"),
("T134", "[T134] - MODULO LA PAZ"),
("T135", "[T135] - Corporativo Serviplus"),
("T136", "[T136] - ADR SAN LUIS POTOSI"),
]
)

0 comments on commit 38fdd2d

Please sign in to comment.