odoo/odoo#188166

Created by Julien Schwanen (scju)
Merged at 4e8fd837e94e6a894755884a7db3e247847d48d5

Statuses:

label
odoo-dev:18.0-opw-4217228-l10n_cl_taxpayer_type-scju
head
b12fbccc8b30991abf390280a1ccad1a9e5cea35
merged
10 months ago by Accounting, Antoine Dupuis (andu)
odoo/odoo
16.0 #188166
17.0 #190625
saas-17.2 #190637
saas-17.4 #190644
18.0 #190649
saas-18.2
saas-18.3
saas-18.4
19.0
master #190652

[FIX] l10n_cl: document type for "2nd category"

When creating a supplier invoice for a provider of type "2nd category voucher issuer," the system incorrectly defaults the document type to 56 (Electronic Debit Note) instead of 71 (Electronic Fee Receipt). This results in additional manual corrections and risks errors if the document type is not updated before confirmation.

This fix ensures the system automatically selects document type 71 for providers of this category, streamlining the process and reducing error potential.

opw-4217228


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr