Skip to content

[18.0][IMP] base_dns_infrastructure: more complete commercial information - #25

Open
flotho wants to merge 1 commit into
OCA:18.0from
flotho:IMP-customer-informations
Open

flotho wants to merge 1 commit into
OCA:18.0from
flotho:IMP-customer-informations

Conversation

@flotho

@flotho flotho commented Nov 20, 2026

Copy link
Copy Markdown
Member

No description provided.

@OCA-git-bot OCA-git-bot added mod:base_dns_infrastructure Module base_dns_infrastructure series:18.0 labels Nov 20, 2026
@flotho flotho self-assigned this Nov 20, 2026
@flotho

flotho commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

ping @bosd ,

As you gently reviewed another PR form this repo, what do you think of this one ?

@flotho flotho changed the title [IMP] base_dns_infrastructure: more complete commercial information [18.0][IMP] base_dns_infrastructure: more complete commercial information Nov 20, 2026
@bosd

bosd commented Nov 21, 2026

Copy link
Copy Markdown

Thanks @flotho, having the commercial and registrar contacts on the zone is useful. A few remarks:

Functional

  1. owner_partner_id changes meaning. The label goes from "Owner" to "Partner to be invoiced", but the field is still the inverse of res.partner.domain_zone_ids, the "Customers" filter in the search panel, and the demo owner. Existing data recorded the owner, not the invoice address. Could we keep "Owner" and add a separate invoice_partner_id?
  2. Same field name, different meaning. On dns.record, owner_partner_id means "who owns the record", while on the zone it now means "to be invoiced". It would also be convenient if the record's partners defaulted from the zone, e.g. with a stored compute and readonly=False, so they don't have to be entered twice.
  3. Registrant contact. Registrars usually work with four contacts: registrant, admin, tech and billing. The registrant, the legal holder of the domain, is missing and is probably the most important one.

Technical

  1. Version bump. New columns are added, so the manifest version should be bumped to 18.0.1.1.0.
  2. Widget. Please use widget="res_partner_many2one" on the partner fields. For the invoice partner, context="{'show_address': 1}" would help; for the registrar contacts, context="{'show_email': 1}".
  3. Indexing. index=True on owner_partner_id, since the search panel and the one2many on res.partner both search on it.
  4. Deletion. ondelete="restrict" on the invoice partner, so a domain can't silently lose its billing partner.
  5. Tracking. renew_date is tracked; the new partner fields could be too.

Nits

  1. Labels. They read like help texts. Shorter strings ("End User", "Registrar Admin Contact", …) with the explanation in help= would read better. Also:
    • trailing space in "…from the registrar "
    • trailing period in "End user of the domain."
    • "who own" should be "who owns"
  2. Naming. other_partner_id is a bit vague; maybe end_user_partner_id?
  3. Wording. "Informations" should be "Information" (the existing group has it too).
  4. README. A short note in readme/USAGE.md describing the contact roles would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:base_dns_infrastructure Module base_dns_infrastructure series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants