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
94 changes: 94 additions & 0 deletions l10n_jp_summary_invoice_order_partner/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
===================================
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/16.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-16-0/l10n-japan-16-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=16.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:%2016.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.

This module is part of the `OCA/l10n-japan <https://github.com/OCA/l10n-japan/tree/16.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.
1 change: 1 addition & 0 deletions l10n_jp_summary_invoice_order_partner/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions l10n_jp_summary_invoice_order_partner/__manifest__.py
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).
{
"name": "Japan Summary Invoice Order Partner",
"version": "16.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",
"installable": True,
}
2 changes: 2 additions & 0 deletions l10n_jp_summary_invoice_order_partner/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import res_company
from . import res_config_settings
17 changes: 17 additions & 0 deletions l10n_jp_summary_invoice_order_partner/models/res_company.py
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
)
7 changes: 7 additions & 0 deletions l10n_jp_summary_invoice_order_partner/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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.
2 changes: 2 additions & 0 deletions l10n_jp_summary_invoice_order_partner/readme/DESCRIPTION.rst
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.
2 changes: 2 additions & 0 deletions l10n_jp_summary_invoice_order_partner/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
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,28 @@
<odoo>
<template
id="bill_line_section_layout_inherit"
inherit_id="l10n_jp_summary_invoice.bill_line_section_layout"
>
<xpath expr="//tr[td/span[@t-field='invoice.invoice_date']]" position="after">

<t t-if="o.company_id.show_order_partner and invoice.order_partner_id">
<tr>
<td t-att-colspan="line_columns">
<strong>Sold-to:</strong>
<span t-field="invoice.order_partner_id" />
</td>
</tr>
</t>
<t
t-if="o.company_id.show_order_shipping_partner and invoice.partner_shipping_id"
>
<tr>
<td t-att-colspan="line_columns">
<strong>Shipping Address:</strong>
<span t-field="invoice.partner_shipping_id" />
</td>
</tr>
</t>
</xpath>
</template>
</odoo>
Loading
Loading