[IMP] l10n_ar: add available document types 80 and 83

This pull request replaces https://github.com/odoo/odoo/pull/156598

Description of the issue/feature this PR addresses: It is necessary to be able to select document types "80 INFORME DIARIO DE CIERRE (ZETA) - CONTROLADORES FISCALES" and "83 TIQUE" in an invoice if the journal of the invoice has "Online Invoice" set on field "AFIP POS System".

Current behavior before PR:
User is not able to select document types "80 INFORME DIARIO DE CIERRE (ZETA) - CONTROLADORES FISCALES" and "83 TIQUE" in an invoice if the journal of the invoice has "Online Invoice" set on the field "AFIP POS System".

Desired behavior after PR is merged:
User is able to select document types "80 INFORME DIARIO DE CIERRE (ZETA) - CONTROLADORES FISCALES" and "83 TIQUE" in an invoice if the journal of the invoice has "Online Invoice" set on the field "AFIP POS System".

Task Adhoc side: 34790
Task latam: 1167

closes odoo/odoo#156830

X-original-commit: 9fcfaf65bd657e3fc07ff04c8b6b0371e801f2c8
Signed-off-by: Josse Colpaert <jco@odoo.com>
This commit is contained in:
Pablo Montenegro
2024-03-07 11:40:25 +00:00
parent d5f68976b6
commit 696389439d
2 changed files with 5 additions and 2 deletions
@@ -53,7 +53,7 @@ dc_cfcp,510,71,TAX CREDIT FOR EMPLOYER CONTRIBUTIONS,,,,,base.ar,
dc_f1116,520,73,FORM 1116 RT,,,,,base.ar,
dc_cptag,530,74,WAYBILL FOR MOTOR TRANSPORT FOR GRAINS,,,,,base.ar,
dc_cptfg,540,75,WAYBILL FOR RAIL TRANSPORT FOR GRAINS,,,,,base.ar,
dc_zeta,550,80,DAILY CLOSING REPORT (ZETA) - FISCAL CONTROLLERS,,,,,base.ar,
dc_zeta,550,80,DAILY CLOSING REPORT (ZETA) - FISCAL CONTROLLERS,,ZETA,invoice,CI-Z,base.ar,zero
dc_a_t,560,81,TICKET INVOICE A,A,INVOICE TICKET,invoice,TF-A,base.ar,not_zero
dc_b_t,570,82,TICKET - INVOICE B,B,INVOICE TICKET,invoice,TF-B,base.ar,zero
dc_t,580,83,TICKET,,TICKET,invoice,TI-X,base.ar,zero
1 id sequence code name l10n_ar_letter report_name internal_type doc_code_prefix country_id/id purchase_aliquots
53 dc_f1116 520 73 FORM 1116 RT base.ar
54 dc_cptag 530 74 WAYBILL FOR MOTOR TRANSPORT FOR GRAINS base.ar
55 dc_cptfg 540 75 WAYBILL FOR RAIL TRANSPORT FOR GRAINS base.ar
56 dc_zeta 550 80 DAILY CLOSING REPORT (ZETA) - FISCAL CONTROLLERS ZETA invoice CI-Z base.ar zero
57 dc_a_t 560 81 TICKET INVOICE A A INVOICE TICKET invoice TF-A base.ar not_zero
58 dc_b_t 570 82 TICKET - INVOICE B B INVOICE TICKET invoice TF-B base.ar zero
59 dc_t 580 83 TICKET TICKET invoice TI-X base.ar zero
+4 -1
View File
@@ -103,6 +103,7 @@ class AccountJournal(models.Model):
receipt_m_code = ['54']
receipt_codes = ['4', '9', '15']
expo_codes = ['19', '20', '21']
zeta_codes = ['80', '83']
codes_issuer_is_supplier = [
'23', '24', '25', '26', '27', '28', '33', '43', '45', '46', '48', '58', '60', '61', '150', '151', '157',
'158', '161', '162', '164', '166', '167', '171', '172', '180', '182', '186', '188', '332']
@@ -117,9 +118,11 @@ class AccountJournal(models.Model):
elif afip_pos_system == 'II_IM':
# pre-printed invoice
codes = usual_codes + receipt_codes + expo_codes + invoice_m_code + receipt_m_code
elif afip_pos_system in ['RAW_MAW', 'RLI_RLM']:
elif afip_pos_system == 'RAW_MAW':
# electronic/online invoice
codes = usual_codes + receipt_codes + invoice_m_code + receipt_m_code + mipyme_codes
elif afip_pos_system == 'RLI_RLM':
codes = usual_codes + receipt_codes + invoice_m_code + receipt_m_code + mipyme_codes + zeta_codes
elif afip_pos_system in ['CPERCEL', 'CPEWS']:
# invoice with detail
codes = usual_codes + invoice_m_code