Skip to content

[7200][ADD] account_invoice_mailing_partner, l10n_jp_summary_invoice_mailing_partner - #38

Draft
kanda999 wants to merge 1 commit into
19.0from
add-invoice-mailing-partner
Draft

[7200][ADD] account_invoice_mailing_partner, l10n_jp_summary_invoice_mailing_partner#38
kanda999 wants to merge 1 commit into
19.0from
add-invoice-mailing-partner

Conversation

@kanda999

@kanda999 kanda999 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

https://www.quartile.co/web#id=7200&cids=3&menu_id=506&action=1457&model=project.task&view_type=form

Separate the invoice mailing address from the billing partner, so that the
printed invoice and the summary invoice can be addressed to a contact that is
not the billing partner (a head office collecting the invoices of its branches,
an outsourced accounting firm, a specific department of the customer).

account_invoice_mailing_partner (generic layer, depends on account):

  • adds invoice_mailing_partner_id to contacts, where it acts as the default
    for the documents of that customer, and to invoices, where the default can be
    overridden per document;
  • the dependency of the computed field is intentionally not dotted, so that
    changing the default on a contact does not retroactively update the invoices
    already issued;
  • addresses the standard invoice report to the mailing address, leaving the
    customer tax ID on the billing partner.

l10n_jp_summary_invoice_mailing_partner (depends on the above and on
l10n_jp_summary_invoice):

  • adds the same field to billings, defaulted from the partner;
  • gathers in a billing only the invoices sharing its mailing address, and
    raises when the billing lines disagree with it, mirroring the existing
    handling of the remit-to bank;
  • overrides ir.actions.report._get_report_partner() so that every report
    rendered with the alternative layout prints the mailing address, without
    touching any QWeb template.

…g_partner

Some customers require the printed invoice, and the summary invoice in
particular, to be addressed to a contact that is not the billing partner, such
as a head office collecting the invoices of its branches or an outsourced
accounting firm.

Separate the mailing address from the billing partner, so that only the
recipient address printed on the document is affected while the invoice is
still issued to, and accounted for, the billing partner. Invoices are gathered
in a billing only when they share its mailing address, so that a customer whose
invoices go to different destinations gets one summary invoice per destination.
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.

1 participant