Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
===================================
Japan Summary Invoice Order Partner
===================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |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/18.0/l10n_jp_summary_invoice_order_partner
: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-18-0/l10n-japan-18-0-l10n_jp_summary_invoice_order_partner
: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=18.0
:alt: Try me on Runboat

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

This module displays the sale order partner and the sale order shipping
address per invoice in the summary invoice.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

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

Go to *Invoicing/Accounting > Configuration > Settings* and update the
following settings as necessary:

- **Show Order Partner**: If selected, the sales order partner will be
shown for each invoice in the summary invoice.
- **Show Order Shipping Partner**: If selected, the sales order
shipping partner will be shown for each invoice in the summary
invoice.

Known issues / Roadmap
======================

This module cannot display the sale order partner and the sale order
shipping address for each invoice line, nor at the summary invoice
level.

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:%20l10n_jp_summary_invoice_order_partner%0Aversion:%2018.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

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.

.. |maintainer-yostashiro| image:: https://github.com/yostashiro.png?size=40px
:target: https://github.com/yostashiro
:alt: yostashiro
.. |maintainer-aungkokolin1997| image:: https://github.com/aungkokolin1997.png?size=40px
:target: https://github.com/aungkokolin1997
:alt: aungkokolin1997

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-yostashiro| |maintainer-aungkokolin1997|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2025 Quartile (https://www.quartile.co)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Japan Summary Invoice Order Partner",
"version": "18.0.1.0.0",
"category": "Japanese Localization",
"author": "Quartile, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-japan",
"license": "AGPL-3",
"depends": ["account_move_order_partner", "l10n_jp_summary_invoice"],
"data": [
"reports/report_summary_invoice_templates.xml",
"views/res_config_settings_views.xml",
],
"development_status": "Alpha",
"maintainers": ["yostashiro", "aungkokolin1997"],
"installable": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import res_company
from . import res_config_settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2025 Quartile (https://www.quartile.co)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ResCompany(models.Model):
_inherit = "res.company"

show_order_partner = fields.Boolean(
help="If enabled, the sales order partner will be displayed in the summary "
"invoice report lines.",
)
show_order_shipping_partner = fields.Boolean(
help="If enabled, the sales order shipping partner will be displayed "
"in the summary invoice report lines.",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2025 Quartile (https://www.quartile.co)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

show_order_partner = fields.Boolean(
related="company_id.show_order_partner", readonly=False
)
show_order_shipping_partner = fields.Boolean(
related="company_id.show_order_shipping_partner", readonly=False
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Go to *Invoicing/Accounting \> Configuration \> Settings* and update the
following settings as necessary:

- **Show Order Partner**: If selected, the sales order partner will
be shown for each invoice in the summary invoice.
- **Show Order Shipping Partner**: If selected, the sales order
shipping partner will be shown for each invoice in the summary
invoice.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module displays the sale order partner and the sale order shipping
address per invoice in the summary invoice.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module cannot display the sale order partner and the sale order
shipping address for each invoice line, nor at the summary invoice
level.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<odoo>
<template
id="bill_line_section_layout_inherit"
inherit_id="l10n_jp_summary_invoice.bill_line_section_layout"
>
<xpath
expr="//td[@name='td_invoice_name']//span[@t-field='invoice.name']"
position="after"
>
<t t-if="o.company_id.show_order_partner and invoice.order_partner_id">
<br />
<strong>Sold-to:</strong>
<span t-field="invoice.order_partner_id" />
</t>
<t
t-if="o.company_id.show_order_shipping_partner and invoice.partner_shipping_id"
>
<br />
<strong>Shipping Address:</strong>
<span t-field="invoice.partner_shipping_id" />
</t>
</xpath>
</template>
</odoo>
Loading
Loading