partner_type_base
⧉ View on GitHubPurpose
This module provides a base implementation to improve the customization of partner address types in Odoo by introducing computed fields and form modifications for better partner type handling.
Features
- res.partner: Adds computed fields to determine if address fields should be readonly based on partner type and parent relationship.
- res.partner: Adds computed fields to identify individual partners and control name splitting behavior.
- res.partner: Adds computed fields to control parent-child relationships, allowing companies to be parents and non-companies to be children.
- res.partner: Modifies partner forms to conditionally show or hide the parent_id field based on can_be_child property.
- res.partner: Applies domain restrictions on parent_id selection to only allow partners that can be parents.
- res.partner: Makes individual and title fields conditionally required or visible based on is_individual property.
- res.partner: Hides function field for non-individual partners in child partner forms.
- res.partner: Makes name field required for both individual and company child partners.
- res.partner: Controls visibility of address labels and divs based on is_address_readonly property.