partner_rank_single
⧉ View on GitHubPurpose
Enforces a single commercial role so a partner cannot be both a customer and a supplier at once.
Features
- res.partner: Adds a constraint preventing a contact from having both customer and supplier ranks simultaneously
- res.partner: Revalidates the single-rank rule after rank increments to catch violations caused by the base method’s direct SQL updates