Skip to content

[IMP] account,l10n_tr,l10n_tr_nilvera_einvoice: TR codes via additional_identifiers#262960

Draft
adns-odoo wants to merge 1 commit intoodoo:masterfrom
odoo-dev:master-account,l10n_tr,l10n_tr_nilvera_einvoice,l10n_tr_reports-official-info-code-adns
Draft

[IMP] account,l10n_tr,l10n_tr_nilvera_einvoice: TR codes via additional_identifiers#262960
adns-odoo wants to merge 1 commit intoodoo:masterfrom
odoo-dev:master-account,l10n_tr,l10n_tr_nilvera_einvoice,l10n_tr_reports-official-info-code-adns

Conversation

@adns-odoo
Copy link
Copy Markdown
Contributor

Description of the issue/feature this PR addresses:

Turkish official codes (Mersis Number, Trade Registry Number, Branch Number) had no dedicated field and were stored as contact tags (res.partner.category) as a workaround before Odoo's standard additional_identifiers field was available.

Current behavior before PR:

Official codes are stored as child contact tags under parent categories MERSISNO, TICARETSICILNO, and SUBENO, requiring custom lookup logic in XML generation and send validation.

Desired behavior after PR is merged:

Codes are stored in the standard additional_identifiers JSON field on res.partner under TR_MERSIS, TR_TICARET_SICIL, and TR_SUBE, consistent with how other localizations handle country-specific identifiers.

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

@robodoo
Copy link
Copy Markdown
Contributor

robodoo commented May 6, 2026

Pull request status dashboard

…al_identifiers

Turkish official codes (Mersis Number, Trade Registry Number, Branch Number)
were stored as contact tags (res.partner.category) as a workaround before
Odoo's standard additional_identifiers field was available.

Now that the field exists, using it keeps the implementation consistent
with other localizations and removes the need for custom lookup logic.

task-5175991
@adns-odoo adns-odoo force-pushed the master-account,l10n_tr,l10n_tr_nilvera_einvoice,l10n_tr_reports-official-info-code-adns branch from 9783eb7 to 67e3347 Compare May 6, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants