odoo/odoo#211043
Created by Marketing, Thibault Delavallee (tde)
Blocked
- Merge method
- Review
-
CI
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- ci/l10n: (runtime 21s)
- Linked pull requests
- label
- odoo-dev:master-rem-base-sayonara-company-type-yagp
- head
- b89a968596e77bb75db8cc012bb13cbe139730dd
odoo/odoo | odoo/enterprise | odoo/upgrade | odoo/upgrade-util | |
---|---|---|---|---|
master | #211043 missing r+ | #86089 missing r+ | #7724 missing r+ | #290 missing r+ |
[REM] base: company_type is dead for good
This PR removes the company_type
field, which was previously used to distinguish
between 'Person' and 'Company' contacts.
The goal is to simplify the contact form and model by eliminating this distinction, as part
of an effort to streamline and simplify the contact information structure.
Changes in l10n*
modules:
l10n_sa*
: We'll now depend on 'l10n_sa_edi_additional_identification_scheme' field to
distinguish between a person and a company instead of 'is_company'.
l10n_tr*
: Turkish electronic invoicing now uses VAT length to determine the schemeID:
- 10-digit VAT → company (VKN)
- 11-digit VAT → individual (TCKN)
l10n_es*
: determine if a Spanish VAT number represents a legal entity based on
CIF structure: 1 letter + 8 digits (e.g., A12345678)
→ legal entity
l10n_ar*
: determine a partner is a legal entity based on the AFIP identification type
and CUIT prefix.
Logic:
- AFIP code = '80' (CUIT)
- CUIT prefix in ('30', '33', '34', '51', '55') → considered a company
l10n_hu*
: determine if a partner is a company based on VAT structure:
- VAT starts with 'HU' and is 10 digits, or
- Matches the Hungarian EU format: 8 digits - [2/4/5] - 2 digits
l10n_*
: general : removed is_company
/ company_type
from demo/tests
This change is in line with the broader initiative to remove legacy fields and make the model
more straightforward as possible.
It had a good run — well, not really — but it's dead for good now.
Removed fields:
base : is_company
, company_type
, commercial_company_name
, company_name
crm : commercial_partner_id
survey : certifications_company_count
website_slides : slide_channel_company_count