diff --git a/l10n_jp_summary_invoice/README.rst b/l10n_jp_summary_invoice/README.rst index bc617fb8..77f3ac9d 100644 --- a/l10n_jp_summary_invoice/README.rst +++ b/l10n_jp_summary_invoice/README.rst @@ -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 ===================== @@ -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 @@ -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 diff --git a/l10n_jp_summary_invoice/models/res_company.py b/l10n_jp_summary_invoice/models/res_company.py index 061e82e8..d250b16b 100644 --- a/l10n_jp_summary_invoice/models/res_company.py +++ b/l10n_jp_summary_invoice/models/res_company.py @@ -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 " diff --git a/l10n_jp_summary_invoice/models/res_config_settings.py b/l10n_jp_summary_invoice/models/res_config_settings.py index d68bc268..02f5490d 100644 --- a/l10n_jp_summary_invoice/models/res_config_settings.py +++ b/l10n_jp_summary_invoice/models/res_config_settings.py @@ -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 ) diff --git a/l10n_jp_summary_invoice/readme/CONFIGURE.rst b/l10n_jp_summary_invoice/readme/CONFIGURE.rst index 68d55ef9..2c9028e0 100644 --- a/l10n_jp_summary_invoice/readme/CONFIGURE.rst +++ b/l10n_jp_summary_invoice/readme/CONFIGURE.rst @@ -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 diff --git a/l10n_jp_summary_invoice/reports/report_summary_invoice_templates.xml b/l10n_jp_summary_invoice/reports/report_summary_invoice_templates.xml index c8514105..5318f284 100644 --- a/l10n_jp_summary_invoice/reports/report_summary_invoice_templates.xml +++ b/l10n_jp_summary_invoice/reports/report_summary_invoice_templates.xml @@ -5,28 +5,10 @@ t-value="o.billing_line_ids.move_id.invoice_line_ids" /> - - - + - - @@ -53,18 +35,11 @@ - - - diff --git a/l10n_jp_summary_invoice/static/description/index.html b/l10n_jp_summary_invoice/static/description/index.html index ba538f65..d8170205 100644 --- a/l10n_jp_summary_invoice/static/description/index.html +++ b/l10n_jp_summary_invoice/static/description/index.html @@ -3,16 +3,15 @@ -README.rst +Japan Summary Invoice -
+
+

Japan Summary Invoice

- - -Odoo Community Association - -
-

Japan Summary Invoice

-

Alpha License: AGPL-3 OCA/l10n-japan Translate me on Weblate Try me on Runboat

+

Alpha License: AGPL-3 OCA/l10n-japan Translate me on Weblate Try me on Runboat

This module adds a summary invoice report print functionality based on the account_billing module.

The printed summary invoice is intended to serve as the Qualified Tax Invoice (適格請求書), @@ -401,14 +395,12 @@

Japan Summary Invoice

-

Configuration

+

Configuration

Go to Invoicing/Accounting > Configuration > Settings and update the following 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 @@ -416,7 +408,7 @@

    Configuration

-

Usage

+

Usage

  1. Create a billing for customer invoices using the functionality of the account_billing module, and make adjustments as necessary.
      @@ -434,7 +426,7 @@

      Usage

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub 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 @@ -442,15 +434,15 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Quartile
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

- -Odoo Community Association - +Odoo Community Association

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.

@@ -473,6 +463,5 @@

Maintainers

-
diff --git a/l10n_jp_summary_invoice/views/res_config_settings_views.xml b/l10n_jp_summary_invoice/views/res_config_settings_views.xml index 8c760d6a..896f0ad8 100644 --- a/l10n_jp_summary_invoice/views/res_config_settings_views.xml +++ b/l10n_jp_summary_invoice/views/res_config_settings_views.xml @@ -43,20 +43,6 @@ -
-
- -
-
-
-
`_ + +**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 `_. +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 `_. + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_jp_summary_invoice_sale/__init__.py b/l10n_jp_summary_invoice_sale/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/l10n_jp_summary_invoice_sale/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_jp_summary_invoice_sale/__manifest__.py b/l10n_jp_summary_invoice_sale/__manifest__.py new file mode 100644 index 00000000..d3735bc1 --- /dev/null +++ b/l10n_jp_summary_invoice_sale/__manifest__.py @@ -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, +} diff --git a/l10n_jp_summary_invoice_sale/models/__init__.py b/l10n_jp_summary_invoice_sale/models/__init__.py new file mode 100644 index 00000000..0b150f71 --- /dev/null +++ b/l10n_jp_summary_invoice_sale/models/__init__.py @@ -0,0 +1,2 @@ +from . import res_company +from . import res_config_settings diff --git a/l10n_jp_summary_invoice_sale/models/res_company.py b/l10n_jp_summary_invoice_sale/models/res_company.py new file mode 100644 index 00000000..f563894d --- /dev/null +++ b/l10n_jp_summary_invoice_sale/models/res_company.py @@ -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.", + ) diff --git a/l10n_jp_summary_invoice_sale/models/res_config_settings.py b/l10n_jp_summary_invoice_sale/models/res_config_settings.py new file mode 100644 index 00000000..795f06ff --- /dev/null +++ b/l10n_jp_summary_invoice_sale/models/res_config_settings.py @@ -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_sale_order_number = fields.Boolean( + related="company_id.show_sale_order_number", readonly=False + ) + show_sale_order_reference = fields.Boolean( + related="company_id.show_sale_order_reference", readonly=False + ) diff --git a/l10n_jp_summary_invoice_sale/readme/CONFIGURE.rst b/l10n_jp_summary_invoice_sale/readme/CONFIGURE.rst new file mode 100644 index 00000000..c3cf835e --- /dev/null +++ b/l10n_jp_summary_invoice_sale/readme/CONFIGURE.rst @@ -0,0 +1,7 @@ +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. diff --git a/l10n_jp_summary_invoice_sale/readme/DESCRIPTION.rst b/l10n_jp_summary_invoice_sale/readme/DESCRIPTION.rst new file mode 100644 index 00000000..45ed924f --- /dev/null +++ b/l10n_jp_summary_invoice_sale/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module displays the sales order number and reference in the summary invoice report. diff --git a/l10n_jp_summary_invoice_sale/reports/report_summary_invoice_templates.xml b/l10n_jp_summary_invoice_sale/reports/report_summary_invoice_templates.xml new file mode 100644 index 00000000..3bc266e7 --- /dev/null +++ b/l10n_jp_summary_invoice_sale/reports/report_summary_invoice_templates.xml @@ -0,0 +1,46 @@ + + + diff --git a/l10n_jp_summary_invoice_sale/static/description/index.html b/l10n_jp_summary_invoice_sale/static/description/index.html new file mode 100644 index 00000000..448c15d7 --- /dev/null +++ b/l10n_jp_summary_invoice_sale/static/description/index.html @@ -0,0 +1,431 @@ + + + + + +Japan Summary Invoice Sale + + + +
+

Japan Summary Invoice Sale

+ + +

Alpha License: AGPL-3 OCA/l10n-japan Translate me on Weblate Try me on Runboat

+

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

+
+

Table of contents

+ +
+

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

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Quartile
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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 project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/l10n_jp_summary_invoice_sale/views/res_config_settings_views.xml b/l10n_jp_summary_invoice_sale/views/res_config_settings_views.xml new file mode 100644 index 00000000..58dbfaf8 --- /dev/null +++ b/l10n_jp_summary_invoice_sale/views/res_config_settings_views.xml @@ -0,0 +1,40 @@ + + + + res.config.settings.view.form + res.config.settings + + +
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
diff --git a/setup/l10n_jp_summary_invoice_sale/odoo/addons/l10n_jp_summary_invoice_sale b/setup/l10n_jp_summary_invoice_sale/odoo/addons/l10n_jp_summary_invoice_sale new file mode 120000 index 00000000..1cec1679 --- /dev/null +++ b/setup/l10n_jp_summary_invoice_sale/odoo/addons/l10n_jp_summary_invoice_sale @@ -0,0 +1 @@ +../../../../l10n_jp_summary_invoice_sale \ No newline at end of file diff --git a/setup/l10n_jp_summary_invoice_sale/setup.py b/setup/l10n_jp_summary_invoice_sale/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/l10n_jp_summary_invoice_sale/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)
Order No.Reference Description Quantity Unit Price
- - - -