Report Alternative Layout

report_alternative_layout
REPOSITORY
REPOSITORYOCA/l10n-japan
GIT
GIThttps://github.com/OCA/l10n-japan.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-japan/tree/19.0/report_alternative_layout
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYReporting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Quartile
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Quartile
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Aungkokolin1997, sanami
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-japan
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:51
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
このモジュールは、QWeb 帳票向けに代替レイアウトを追加し、既存の外部レイアウトに
対して以下の変更を行います。

- 取引先の住所を左側に、その後に会社住所を右側に表示します。
- 帳票ヘッダーに帳票番号と日付を表示します。
- 取引先住所の代わりに、商業取引先(親)の住所を使用できます。

現在、これらの調整は標準の外部レイアウト
(`external_layout_standard`) にのみ対応しています。

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
external_layout external_layout ir.ui.view qweb Inherits web.external_layout
external_layout_standard external_layout_standard ir.ui.view qweb Inherits web.external_layout_standard
paperformat_view_form paperformat_view_form report.paperformat xpath Inherits base.paperformat_view_form
report_custom_address_layout report_custom_address_layout ir.ui.view qweb New
view_act_report_form ir.actions.report ir.actions.report xpath Inherits base.act_report_xml_view
Models touched (2)

New fields (6)
  • apply_alternative_layout Boolean
    related='paperformat_id.apply_alternative_layout'
  • date_field_id Many2one → ir.model.fields
    domain="[('model','=', model), ('ttype', 'in', ('date', 'datetime'))]" help='If set, the report will show the value of this field in the header as the date of the document.' string='Date Field to Show in Header' args: 'ir.model.fields'
  • date_field_label Char
    help="Label for the date field in the report header. If not set, the field's description will be used." translate=True
  • show_commercial_partner Boolean
    help='If selected, the commercial partner of the document partner will show in the report output (instead of the document partner).'
  • show_document_number Boolean
    help='If selected, the document number will show in the report header.' args: 'Show Document Number in Header'
  • show_remit_to_bank Boolean
    help='If selected, remit-to bank account will show in the report output.' args: 'Show Remit-to Bank'
Public methods (0)

No public methods.

New fields (2)
  • apply_alternative_layout Boolean
    help='If selected, the alternative layout will be applied in the printed report.'
  • show_address_in_header Boolean
    compute='_compute_show_address_in_header' help='If selected, the report header will be shown on every page of the report output.' readonly=False store=True
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-japan
GIT
GIThttps://github.com/OCA/l10n-japan.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-japan/tree/18.0/report_alternative_layout
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYReporting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Quartile
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Quartile
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Aungkokolin1997
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-japan
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module introduces an alternative layout for QWeb reports with the
following adjustments to existing external layouts:

- Displays the partner's address on the left side first, followed by the
  company's address on the right side.
- Displays the document's number and date in the header.
- Uses the commercial partner's address in place of the partner's
  address.

Currently, these adjustments are only supported for the standard
external layout (external_layout_standard).

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
external_layout external_layout ir.ui.view qweb Inherits web.external_layout
external_layout_standard external_layout_standard ir.ui.view qweb Inherits web.external_layout_standard
paperformat_view_form paperformat_view_form report.paperformat xpath Inherits base.paperformat_view_form
report_custom_address_layout report_custom_address_layout ir.ui.view qweb New
view_act_report_form ir.actions.report ir.actions.report xpath Inherits base.act_report_xml_view
Models touched (2)

New fields (6)
  • apply_alternative_layout Boolean
    related='paperformat_id.apply_alternative_layout'
  • date_field_id Many2one → ir.model.fields
    domain="[('model','=', model), ('ttype', 'in', ('date', 'datetime'))]" help='If set, the report will show the value of this field in the header as the date of the document.' string='Date Field to Show in Header' args: 'ir.model.fields'
  • date_field_label Char
    help="Label for the date field in the report header. If not set, the field's description will be used." translate=True
  • show_commercial_partner Boolean
    help='If selected, the commercial partner of the document partner will show in the report output (instead of the document partner).'
  • show_document_number Boolean
    help='If selected, the document number will show in the report header.' args: 'Show Document Number in Header'
  • show_remit_to_bank Boolean
    help='If selected, remit-to bank account will show in the report output.' args: 'Show Remit-to Bank'
Public methods (0)

No public methods.

New fields (2)
  • apply_alternative_layout Boolean
    help='If selected, the alternative layout will be applied in the printed report.'
  • show_address_in_header Boolean
    compute='_compute_show_address_in_header' help='If selected, the report header will be shown on every page of the report output.' readonly=False store=True
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-japan
GIT
GIThttps://github.com/OCA/l10n-japan.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-japan/tree/16.0/report_alternative_layout
VERSION
VERSION 1.3.0
CATEGORY
CATEGORYReporting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Quartile
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Quartile
COMMITTERS
COMMITTERSYoshi Tashiro, Weblate, OCA-git-bot, oca-ci, kanda999, Aungkokolin1997, nobuQuartile
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-japan
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:54:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
external_layout external_layout ir.ui.view qweb Inherits web.external_layout
external_layout_standard external_layout_standard ir.ui.view qweb Inherits web.external_layout_standard
paperformat_view_form paperformat_view_form report.paperformat xpath Inherits base.paperformat_view_form
report_custom_address_layout report_custom_address_layout ir.ui.view qweb New
view_act_report_form ir.actions.report ir.actions.report xpath Inherits base.act_report_xml_view
Models touched (2)

New fields (6)
  • apply_alternative_layout Boolean
    related='paperformat_id.apply_alternative_layout'
  • date_field_id Many2one → ir.model.fields
    domain="[('model','=', model), ('ttype', 'in', ('date', 'datetime'))]" help='If set, the report will show the value of this field in the header as the date of the document.' string='Date Field to Show in Header' args: 'ir.model.fields'
  • date_field_label Char
    help="Label for the date field in the report header. If not set, the field's description will be used." translate=True
  • show_commercial_partner Boolean
    help='If selected, the commercial partner of the document partner will show in the report output (instead of the document partner).'
  • show_document_number Boolean
    help='If selected, the document number will show in the report header.' args: 'Show Document Number in Header'
  • show_remit_to_bank Boolean
    help='If selected, remit-to bank account will show in the report output.' args: 'Show Remit-to Bank'
Public methods (0)

No public methods.

New fields (2)
  • apply_alternative_layout Boolean
    help='If selected, the alternative layout will be applied in the printed report.'
  • show_address_in_header Boolean
    compute='_compute_show_address_in_header' help='If selected, the report header will be shown on every page of the report output.' readonly=False store=True
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/l10n-japan
PULL REQUEST
PULL REQUEST[17.0][MIG] report_alternative_layout: Migration to 17.0 (#74)