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
8 changes: 1 addition & 7 deletions l10n_jp_summary_invoice/README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=====================
Japan Summary Invoice
=====================
Expand All @@ -17,7 +13,7 @@ Japan Summary Invoice
.. |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/license-AGPL--3-blue.png
.. |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
Expand Down Expand Up @@ -57,8 +53,6 @@ settings as necessary:

- **Summary Invoice Remark**: The remark that shows in the header part of the summary
invoice, such as '下記の通り御請求申し上げます。'.
- **Show Sales Order Number**: If selected, the sales order number will be shown for
each line in the summary invoice.
- **Show Invoice Narration**: If selected, the narration will appear for each invoice in
the summary invoice report.
- **Show Invoice Total Amount**: If selected, the total amount per invoice will appear
Expand Down
5 changes: 0 additions & 5 deletions l10n_jp_summary_invoice/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ class ResCompany(models.Model):
default="下記の通り御請求申し上げます。",
help="Content here will be displayed in the summary invoice report.",
)
show_sale_order_number = fields.Boolean(
"Show Sales Order Number",
help="If enabled, the sales order number will be displayed in the summary "
"invoice report lines.",
)
show_invoice_narration = fields.Boolean(
default=True,
help="If enabled, the invoice narration will be displayed in the summary "
Expand Down
3 changes: 0 additions & 3 deletions l10n_jp_summary_invoice/models/res_config_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ class ResConfigSettings(models.TransientModel):
summary_invoice_remark = fields.Html(
related="company_id.summary_invoice_remark", readonly=False
)
show_sale_order_number = fields.Boolean(
related="company_id.show_sale_order_number", readonly=False
)
show_invoice_narration = fields.Boolean(
related="company_id.show_invoice_narration", readonly=False
)
Expand Down
2 changes: 0 additions & 2 deletions l10n_jp_summary_invoice/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ settings as necessary:

- **Summary Invoice Remark**: The remark that shows in the header part of the summary
invoice, such as '下記の通り御請求申し上げます。'.
- **Show Sales Order Number**: If selected, the sales order number will be shown for
each line in the summary invoice.
- **Show Invoice Narration**: If selected, the narration will appear for each invoice in
the summary invoice report.
- **Show Invoice Total Amount**: If selected, the total amount per invoice will appear
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,10 @@
t-value="o.billing_line_ids.move_id.invoice_line_ids"
/>
<t t-set="display_discount" t-value="any(invoice_lines.mapped('discount'))" />
<t t-set="show_order_number" t-value="o.company_id.show_sale_order_number" />
<t
t-set="show_reference"
t-value="any(invoice_lines.mapped('sale_line_ids.order_id.client_order_ref'))"
/>
<t
t-set="line_columns"
t-value="5 + int(display_discount) + int(show_order_number) + int(show_reference)"
/>
<t t-set="line_columns" t-value="5 + int(display_discount)" />
<table class="table table-sm o_main_table">
<thead>
<tr>
<th
t-if="show_order_number"
name="th_order_num"
class="text-start"
>Order No.</th>
<th
t-if="show_reference"
name="th_order_ref"
class="text-start"
>Reference</th>
<th name="th_description" class="text-start">Description</th>
<th name="th_quantity" class="text-end">Quantity</th>
<th name="th_unit_price" class="text-end">Unit Price</th>
Expand All @@ -53,18 +35,11 @@
</td>
</tr>
</t>
<t t-set="order" t-value="line.sale_line_ids.order_id" />
<t
t-set="taxes"
t-value="', '.join([(tax.description or tax.name) for tax in line.tax_ids])"
/>
<tr>
<td t-if="show_order_number" name="td_order_num">
<span t-esc="order.name" />
</td>
<td t-if="show_reference" name="td_order_ref">
<span t-esc="order.client_order_ref" />
</td>
<td name="td_description">
<span t-field="line.name" />
</td>
Expand Down
41 changes: 15 additions & 26 deletions l10n_jp_summary_invoice/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>README.rst</title>
<title>Japan Summary Invoice</title>
<style type="text/css">

/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -275,7 +274,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: gray; } /* line numbers */
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -301,7 +300,7 @@
span.pre {
white-space: pre }

span.problematic, pre.problematic {
span.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -360,21 +359,16 @@
</style>
</head>
<body>
<div class="document">
<div class="document" id="japan-summary-invoice">
<h1 class="title">Japan Summary Invoice</h1>


<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
</a>
<div class="section" id="japan-summary-invoice">
<h1>Japan Summary Invoice</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:45ab1e289fb94394421ac23e39ad2cefcc03f8392e8d5037e4dfe13e5054eab0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-japan/tree/16.0/l10n_jp_summary_invoice"><img alt="OCA/l10n-japan" src="https://img.shields.io/badge/github-OCA%2Fl10n--japan-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-japan-16-0/l10n-japan-16-0-l10n_jp_summary_invoice"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-japan&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-japan/tree/16.0/l10n_jp_summary_invoice"><img alt="OCA/l10n-japan" src="https://img.shields.io/badge/github-OCA%2Fl10n--japan-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-japan-16-0/l10n-japan-16-0-l10n_jp_summary_invoice"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-japan&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds a summary invoice report print functionality based on the
account_billing module.</p>
<p>The printed summary invoice is intended to serve as the Qualified Tax Invoice (適格請求書),
Expand All @@ -401,22 +395,20 @@ <h1>Japan Summary Invoice</h1>
</ul>
</div>
<div class="section" id="configuration">
<h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<p>Go to <em>Invoicing/Accounting &gt; Configuration &gt; Settings</em> and update the following
settings as necessary:</p>
<ul class="simple">
<li><strong>Summary Invoice Remark</strong>: The remark that shows in the header part of the summary
invoice, such as ‘下記の通り御請求申し上げます。’.</li>
<li><strong>Show Sales Order Number</strong>: If selected, the sales order number will be shown for
each line in the summary invoice.</li>
<li><strong>Show Invoice Narration</strong>: If selected, the narration will appear for each invoice in
the summary invoice report.</li>
<li><strong>Show Invoice Total Amount</strong>: If selected, the total amount per invoice will appear
in the summary invoice report.</li>
</ul>
</div>
<div class="section" id="usage">
<h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<ol class="arabic simple">
<li>Create a billing for customer invoices using the functionality of the account_billing
module, and make adjustments as necessary.<ul>
Expand All @@ -434,23 +426,23 @@ <h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
</ol>
</div>
<div class="section" id="bug-tracker">
<h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-japan/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/l10n-japan/issues/new?body=module:%20l10n_jp_summary_invoice%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<div class="section" id="authors">
<h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<ul class="simple">
<li>Quartile</li>
</ul>
</div>
<div class="section" id="contributors">
<h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<ul class="simple">
<li><a class="reference external" href="https://www.quartile.co">Quartile</a>:<ul>
<li>Aung Ko Ko Lin</li>
Expand All @@ -460,11 +452,9 @@ <h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
</ul>
</div>
<div class="section" id="maintainers">
<h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
Expand All @@ -473,6 +463,5 @@ <h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
</div>
</div>
</div>
</div>
</body>
</html>
14 changes: 0 additions & 14 deletions l10n_jp_summary_invoice/views/res_config_settings_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,6 @@
</div>
</div>
</div>
<div
class="col-12 col-lg-6 o_setting_box"
id="show_sale_order_number"
>
<div class="o_setting_left_pane">
<field name="show_sale_order_number" />
</div>
<div class="o_setting_right_pane">
<label for="show_sale_order_number" />
<div class="text-muted">
Show the sales order number in the summary invoice report lines
</div>
</div>
</div>
<div
class="col-12 col-lg-6 o_setting_box"
id="show_invoice_narration"
Expand Down
87 changes: 87 additions & 0 deletions l10n_jp_summary_invoice_sale/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
==========================
Japan Summary Invoice Sale
==========================

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

.. |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_sale
: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_sale
: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 sales order number and reference in the summary invoice report.

.. 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 Sales Order Number**: If enabled, the sales order number column will be shown in the summary invoice,
but it will only appear when at least one line is linked to a sales order.
- **Show Sales Order Reference**: If enabled, the sales order reference column will be shown in the summary invoice,
but it will only appear when at least one line is linked to a sales order.

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_sale%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_sale>`_ 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_sale/__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_sale/__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 Sale",
"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": ["sale", "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_sale/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
19 changes: 19 additions & 0 deletions l10n_jp_summary_invoice_sale/models/res_company.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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_sale_order_number = fields.Boolean(
"Show Sales Order Number",
help="If enabled, the sales order number will be displayed in the summary "
"invoice report lines.",
)
show_sale_order_reference = fields.Boolean(
"Show Sales Order Reference",
help="If enabled, the sales order reference will be displayed in the summary "
"invoice report lines.",
)
Loading