Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9925ad0
[ADD] report_alternative_layout
AungKoKoLin1997 Oct 24, 2024
d2c42d6
[UPD] Update report_alternative_layout.pot
Feb 21, 2025
1cbe209
[BOT] post-merge updates
OCA-git-bot Feb 21, 2025
d2238a1
[FIX] report_alternative_layout: Change depends from base to web
nobuQuartile Mar 10, 2025
cec93ba
[UPD] Update report_alternative_layout.pot
Mar 10, 2025
ae810ba
[BOT] post-merge updates
OCA-git-bot Mar 10, 2025
a958b5e
[IMP] report_alternative_layout: improve remit_to_bank
AungKoKoLin1997 Mar 18, 2025
98ace28
[BOT] post-merge updates
OCA-git-bot Mar 25, 2025
7820d22
[16.0][IMP] report_alternative_layout: Adding useful options
kanda999 Jun 2, 2025
ad6a62d
[UPD] Update report_alternative_layout.pot
Jun 4, 2025
89f225f
[BOT] post-merge updates
OCA-git-bot Jun 4, 2025
8495522
Update translation files
weblate Jun 4, 2025
6ccfe5c
[FIX] report_alternative_layout: hide group unless alternative layout…
kanda999 Jun 5, 2025
c1153c6
[UPD] Update report_alternative_layout.pot
Jun 6, 2025
3d6b518
[BOT] post-merge updates
OCA-git-bot Jun 6, 2025
202475d
Update translation files
weblate Jun 6, 2025
699ee74
[IMP] report_alternative_layout: pre-commit auto fixes
AungKoKoLin1997 Jun 6, 2025
0387af3
[MIG] report_alternative_layout: Migration to 18.0
AungKoKoLin1997 Jun 6, 2025
777355d
[UPD] Update report_alternative_layout.pot
Jun 11, 2025
46a94b5
[BOT] post-merge updates
OCA-git-bot Jun 11, 2025
c593503
Translated using Weblate (Japanese)
Sayaka-qrtl Aug 8, 2025
4ac6eaf
Translated using Weblate (Japanese)
Sayaka-qrtl Aug 8, 2025
21dd9c3
[IMP] report_alternative_layout: pre-commit auto fixes
AungKoKoLin1997 Aug 14, 2025
e18e4c0
[MIG] report_alternative_layout: Migration to 17.0
AungKoKoLin1997 Aug 14, 2025
58f12e1
[FIX] report_alternative_layout: fix displaying information_block twi…
AungKoKoLin1997 Sep 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions report_alternative_layout/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
=========================
Report Alternative Layout
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:cbef2dafed1da5fbd492ec03ea8b80bc049e0eb6334b1a60e22b1bdbd6307ec6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--japan-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-japan/tree/17.0/report_alternative_layout
:alt: OCA/l10n-japan
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-japan-17-0/l10n-japan-17-0-report_alternative_layout
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-japan&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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).

**Table of contents**

.. contents::
:local:

Configuration
=============

Go to *Settings > Technical > Reporting > Paper Format*, and open a
paper format of your choice, and update the following fields as
necessary. - Apply Alternative Layout: If selected, the alternative
layout will be applied to the reports using this paper format. - Show
Address In Header: If selected, the partner's address will be shown in
the report header on every page (only applies to the alternative
layout).

Go to *Settings > Technical > Reporting > Reports*, and open a report of
your choice, and update the following fields as necessary.

- Paper Format: Select a paper format with 'Apply Alternative Layout'
enabled if you want to use the alternative layout.
- Show Commercial Partner: If selected, the commercial partner of the
document partner will show in the report output (instead of the
document partner).
- Show Remit-to Bank: If selected, the remite-to bank infomation will
be shown in the printed report.
- Show Document Number: If selected, the document number will be
displayed in the report header, at the top-right corner.
- Date Field: If entered, the date of the document will be displayed in
the report header, at the top-right corner.
- Date Field Label: The label to display for the date field in the
report, if specified. If not set, the field's name will be used
instead.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-japan/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-japan/issues/new?body=module:%20report_alternative_layout%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Quartile

Contributors
------------

- `Quartile <https://www.quartile.co>`__:

- Tatsuki Kanda
- Aung Ko Ko Lin
- Yoshi Tashiro

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/l10n-japan <https://github.com/OCA/l10n-japan/tree/17.0/report_alternative_layout>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions report_alternative_layout/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions report_alternative_layout/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2024-2025 Quartile (https://www.quartile.co)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Report Alternative Layout",
"version": "17.0.1.0.0",
"category": "Reporting",
"license": "AGPL-3",
"author": "Quartile, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-japan",
"depends": ["web"],
"data": [
"data/report_paperformat_data.xml",
"report/report_template.xml",
"views/ir_actions_report_views.xml",
"views/report_paperformat_views.xml",
],
"installable": True,
}
37 changes: 37 additions & 0 deletions report_alternative_layout/data/report_paperformat_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="report_paperformat_a4_alt" model="report.paperformat">
<field name="name">A4 alt.: no addresses in header</field>
<field name="format">A4</field>
<field name="page_height">0</field>
<field name="page_width">0</field>
<field name="orientation">Portrait</field>
<field name="margin_top">16</field>
<field name="margin_bottom">28</field>
<field name="margin_left">7</field>
<field name="margin_right">7</field>
<field name="header_line" eval="False" />
<field name="header_spacing">12</field>
<field name="dpi">100</field>
<field name="apply_alternative_layout" eval="True" />
</record>
<record
id="report_paperformat_a4_alt_adresses_in_header"
model="report.paperformat"
>
<field name="name">A4 alt.: addresses in header</field>
<field name="format">A4</field>
<field name="page_height">0</field>
<field name="page_width">0</field>
<field name="orientation">Portrait</field>
<field name="margin_top">45</field>
<field name="margin_bottom">28</field>
<field name="margin_left">7</field>
<field name="margin_right">7</field>
<field name="header_line" eval="False" />
<field name="header_spacing">40</field>
<field name="dpi">100</field>
<field name="apply_alternative_layout" eval="True" />
<field name="show_address_in_header" eval="True" />
</record>
</odoo>
136 changes: 136 additions & 0 deletions report_alternative_layout/i18n/ja.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * report_alternative_layout
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-03 10:07+0000\n"
"PO-Revision-Date: 2025-08-08 09:25+0000\n"
"Last-Translator: Sayaka-qrtl <[email protected]>\n"
"Language-Team: \n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.10.4\n"

#. module: report_alternative_layout
#: model_terms:ir.ui.view,arch_db:report_alternative_layout.external_layout_standard
msgid ":<span> </span>"
msgstr ""

#. module: report_alternative_layout
#: model_terms:ir.ui.view,arch_db:report_alternative_layout.external_layout_standard
msgid "<strong>Remit-to:</strong>"
msgstr "<strong>振込先:</strong>"

#. module: report_alternative_layout
#: model_terms:ir.ui.view,arch_db:report_alternative_layout.view_act_report_form
msgid "Alternative Layout Settings"
msgstr "代替レイアウト設定"

#. module: report_alternative_layout
#: model:ir.model.fields,field_description:report_alternative_layout.field_ir_actions_report__apply_alternative_layout
#: model:ir.model.fields,field_description:report_alternative_layout.field_report_paperformat__apply_alternative_layout
msgid "Apply Alternative Layout"
msgstr "代替レイアウトを適用"

#. module: report_alternative_layout
#: model:ir.model.fields,field_description:report_alternative_layout.field_ir_actions_report__date_field_label
msgid "Date Field Label"
msgstr "日付項目ラベル"

#. module: report_alternative_layout
#: model:ir.model.fields,field_description:report_alternative_layout.field_ir_actions_report__date_field_id
msgid "Date Field to Show in Header"
msgstr "ヘッダに表示する日付項目"

#. module: report_alternative_layout
#: model_terms:ir.ui.view,arch_db:report_alternative_layout.external_layout_standard
msgid "Document No:"
msgstr "伝票番号:"

#. module: report_alternative_layout
#: model:ir.model.fields,help:report_alternative_layout.field_ir_actions_report__show_remit_to_bank
msgid "If selected, remit-to bank account will show in the report output."
msgstr "選択すると、印刷帳票に振込先が表示されます。"

#. module: report_alternative_layout
#: model:ir.model.fields,help:report_alternative_layout.field_ir_actions_report__apply_alternative_layout
#: model:ir.model.fields,help:report_alternative_layout.field_report_paperformat__apply_alternative_layout
msgid ""
"If selected, the alternative layout will be applied in the printed report."
msgstr "選択すると、印刷帳票に代替レイアウトが適用されます。"

#. module: report_alternative_layout
#: model:ir.model.fields,help:report_alternative_layout.field_ir_actions_report__show_commercial_partner
msgid ""
"If selected, the commercial partner of the document partner will show in the "
"report output (instead of the document partner)."
msgstr "選択すると、印刷帳票に取引先ではなく、その商業取引先(親)が表示されます。"

#. module: report_alternative_layout
#: model:ir.model.fields,help:report_alternative_layout.field_ir_actions_report__show_document_number
msgid "If selected, the document number will show in the report header."
msgstr "選択すると、印刷帳票のヘッダーに伝票番号が表示されます。"

#. module: report_alternative_layout
#: model:ir.model.fields,help:report_alternative_layout.field_report_paperformat__show_address_in_header
msgid ""
"If selected, the report header will be shown on every page of the report "
"output."
msgstr "選択すると、アドレスが印刷帳票のヘッダに表示されます。"

#. module: report_alternative_layout
#: model:ir.model.fields,help:report_alternative_layout.field_ir_actions_report__date_field_id
msgid ""
"If set, the report will show the value of this field in the header as the "
"date of the document."
msgstr "設定すると、この項目の値が印刷帳票のヘッダに日付として表示されます。"

#. module: report_alternative_layout
#: model:ir.model.fields,help:report_alternative_layout.field_ir_actions_report__date_field_label
msgid ""
"Label for the date field in the report header. If not set, the field's "
"description will be used."
msgstr "印刷帳票の日付項目に表示するラベルです。設定されていない場合、日付項目がその"
"まま表示されます。"

#. module: report_alternative_layout
#: model:ir.model,name:report_alternative_layout.model_report_paperformat
msgid "Paper Format Config"
msgstr "用紙フォーマット設定"

#. module: report_alternative_layout
#: model:ir.model,name:report_alternative_layout.model_ir_actions_report
msgid "Report Action"
msgstr "レポートアクション"

#. module: report_alternative_layout
#: model:ir.model.fields,field_description:report_alternative_layout.field_report_paperformat__show_address_in_header
msgid "Show Address In Header"
msgstr "アドレスをヘッダに表示"

#. module: report_alternative_layout
#: model:ir.model.fields,field_description:report_alternative_layout.field_ir_actions_report__show_commercial_partner
msgid "Show Commercial Partner"
msgstr "商業取引先(親)を表示"

#. module: report_alternative_layout
#: model:ir.model.fields,field_description:report_alternative_layout.field_ir_actions_report__show_document_number
msgid "Show Document Number in Header"
msgstr "伝票番号をヘッダに表示"

#. module: report_alternative_layout
#: model:ir.model.fields,field_description:report_alternative_layout.field_ir_actions_report__show_remit_to_bank
msgid "Show Remit-to Bank"
msgstr "振込先を表示"

#~ msgid "Date Field"
#~ msgstr "日付項目"

#~ msgid "Show Document Number"
#~ msgstr "伝票番号を表示"
Loading