Skip to content

Commit 1f4e8de

Browse files
[ADD] l10n_jp_summary_invoice_order_partner
1 parent 94329d1 commit 1f4e8de

14 files changed

Lines changed: 672 additions & 0 deletions

File tree

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
===================================
2+
Japan Summary Invoice Order Partner
3+
===================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:cda469d4f57d8a01ed1bf6cbf8cca8a27f7252a0d6b33c83d1a0defe5b0d7e86
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Alpha
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--japan-lightgray.png?logo=github
20+
:target: https://github.com/OCA/l10n-japan/tree/16.0/l10n_jp_summary_invoice_order_partner
21+
:alt: OCA/l10n-japan
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/l10n-japan-16-0/l10n-japan-16-0-l10n_jp_summary_invoice_order_partner
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-japan&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module displays the sale order partner and the sale order shipping address per invoice
32+
in the summary invoice.
33+
34+
.. IMPORTANT::
35+
This is an alpha version, the data model and design can change at any time without warning.
36+
Only for development or testing purpose, do not use in production.
37+
`More details on development status <https://odoo-community.org/page/development-status>`_
38+
39+
**Table of contents**
40+
41+
.. contents::
42+
:local:
43+
44+
Configuration
45+
=============
46+
47+
Go to *Invoicing/Accounting > Configuration > Settings* and update the following
48+
settings as necessary:
49+
50+
- **Show Order Partner**: If selected, the sales order partner will be shown for
51+
each invoice in the summary invoice.
52+
- **Show Order Shipping Partner**: If selected, the sales order shipping partner
53+
will be shown for each invoice in the summary invoice.
54+
55+
Known issues / Roadmap
56+
======================
57+
58+
This module cannot display the sale order partner and the sale order shipping address for
59+
each invoice line, nor at the summary invoice level.
60+
61+
Bug Tracker
62+
===========
63+
64+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-japan/issues>`_.
65+
In case of trouble, please check there if your issue has already been reported.
66+
If you spotted it first, help us to smash it by providing a detailed and welcomed
67+
`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**>`_.
68+
69+
Do not contact contributors directly about support or help with technical issues.
70+
71+
Credits
72+
=======
73+
74+
Authors
75+
~~~~~~~
76+
77+
* Quartile
78+
79+
Maintainers
80+
~~~~~~~~~~~
81+
82+
This module is maintained by the OCA.
83+
84+
.. image:: https://odoo-community.org/logo.png
85+
:alt: Odoo Community Association
86+
:target: https://odoo-community.org
87+
88+
OCA, or the Odoo Community Association, is a nonprofit organization whose
89+
mission is to support the collaborative development of Odoo features and
90+
promote its widespread use.
91+
92+
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.
93+
94+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2025 Quartile (https://www.quartile.co)
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
{
4+
"name": "Japan Summary Invoice Order Partner",
5+
"version": "16.0.1.0.0",
6+
"category": "Japanese Localization",
7+
"author": "Quartile, Odoo Community Association (OCA)",
8+
"website": "https://github.com/OCA/l10n-japan",
9+
"license": "AGPL-3",
10+
"depends": ["account_move_order_partner", "l10n_jp_summary_invoice"],
11+
"data": [
12+
"reports/report_summary_invoice_templates.xml",
13+
"views/res_config_settings_views.xml",
14+
],
15+
"development_status": "Alpha",
16+
"installable": True,
17+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import res_company
2+
from . import res_config_settings
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2025 Quartile (https://www.quartile.co)
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class ResCompany(models.Model):
8+
_inherit = "res.company"
9+
10+
show_order_partner = fields.Boolean(
11+
help="If enabled, the sales order partner will be displayed in the summary "
12+
"invoice report lines.",
13+
)
14+
show_order_shipping_partner = fields.Boolean(
15+
help="If enabled, the sales order shipping partner will be displayed in the summary "
16+
"invoice report lines.",
17+
)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2025 Quartile (https://www.quartile.co)
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class ResConfigSettings(models.TransientModel):
8+
_inherit = "res.config.settings"
9+
10+
show_order_partner = fields.Boolean(
11+
related="company_id.show_order_partner", readonly=False
12+
)
13+
show_order_shipping_partner = fields.Boolean(
14+
related="company_id.show_order_shipping_partner", readonly=False
15+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Go to *Invoicing/Accounting > Configuration > Settings* and update the following
2+
settings as necessary:
3+
4+
- **Show Order Partner**: If selected, the sales order partner will be shown for
5+
each invoice in the summary invoice.
6+
- **Show Order Shipping Partner**: If selected, the sales order shipping partner
7+
will be shown for each invoice in the summary invoice.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This module displays the sale order partner and the sale order shipping address per invoice
2+
in the summary invoice.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This module cannot display the sale order partner and the sale order shipping address for
2+
each invoice line, nor at the summary invoice level.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<odoo>
2+
<template
3+
id="bill_line_section_layout_inherit"
4+
inherit_id="l10n_jp_summary_invoice.bill_line_section_layout"
5+
>
6+
<xpath expr="//tr[td/span[@t-field='invoice.invoice_date']]" position="after">
7+
8+
<t t-if="o.company_id.show_order_partner and invoice.order_partner_id">
9+
<tr>
10+
<td t-att-colspan="line_columns">
11+
<strong>Sold-to:</strong>
12+
<span t-field="invoice.order_partner_id" />
13+
</td>
14+
</tr>
15+
</t>
16+
<t
17+
t-if="o.company_id.show_order_shipping_partner and invoice.partner_shipping_id"
18+
>
19+
<tr>
20+
<td t-att-colspan="line_columns">
21+
<strong>Shipping Address:</strong>
22+
<span t-field="invoice.partner_shipping_id" />
23+
</td>
24+
</tr>
25+
</t>
26+
</xpath>
27+
</template>
28+
</odoo>

0 commit comments

Comments
 (0)