diff --git a/l10n_jp_summary_invoice_order_partner/README.rst b/l10n_jp_summary_invoice_order_partner/README.rst new file mode 100644 index 0000000..2eb1a94 --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/README.rst @@ -0,0 +1,100 @@ +=================================== +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 `_ + +**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. + +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. + +.. |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 `__: + +|maintainer-yostashiro| |maintainer-aungkokolin1997| + +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_order_partner/__init__.py b/l10n_jp_summary_invoice_order_partner/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_jp_summary_invoice_order_partner/__manifest__.py b/l10n_jp_summary_invoice_order_partner/__manifest__.py new file mode 100644 index 0000000..31fd0f2 --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/__manifest__.py @@ -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, +} diff --git a/l10n_jp_summary_invoice_order_partner/models/__init__.py b/l10n_jp_summary_invoice_order_partner/models/__init__.py new file mode 100644 index 0000000..0b150f7 --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/models/__init__.py @@ -0,0 +1,2 @@ +from . import res_company +from . import res_config_settings diff --git a/l10n_jp_summary_invoice_order_partner/models/res_company.py b/l10n_jp_summary_invoice_order_partner/models/res_company.py new file mode 100644 index 0000000..03d3d0d --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/models/res_company.py @@ -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.", + ) diff --git a/l10n_jp_summary_invoice_order_partner/models/res_config_settings.py b/l10n_jp_summary_invoice_order_partner/models/res_config_settings.py new file mode 100644 index 0000000..0b6844d --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/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_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 + ) diff --git a/l10n_jp_summary_invoice_order_partner/pyproject.toml b/l10n_jp_summary_invoice_order_partner/pyproject.toml new file mode 100644 index 0000000..4231d0c --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/l10n_jp_summary_invoice_order_partner/readme/CONFIGURE.md b/l10n_jp_summary_invoice_order_partner/readme/CONFIGURE.md new file mode 100644 index 0000000..baaa0fc --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/readme/CONFIGURE.md @@ -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. diff --git a/l10n_jp_summary_invoice_order_partner/readme/DESCRIPTION.md b/l10n_jp_summary_invoice_order_partner/readme/DESCRIPTION.md new file mode 100644 index 0000000..e5f661c --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module displays the sale order partner and the sale order shipping +address per invoice in the summary invoice. diff --git a/l10n_jp_summary_invoice_order_partner/reports/report_summary_invoice_templates.xml b/l10n_jp_summary_invoice_order_partner/reports/report_summary_invoice_templates.xml new file mode 100644 index 0000000..e7ccb29 --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/reports/report_summary_invoice_templates.xml @@ -0,0 +1,24 @@ + + + diff --git a/l10n_jp_summary_invoice_order_partner/static/description/index.html b/l10n_jp_summary_invoice_order_partner/static/description/index.html new file mode 100644 index 0000000..99f2622 --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/static/description/index.html @@ -0,0 +1,438 @@ + + + + + +Japan Summary Invoice Order Partner + + + +
+

Japan Summary Invoice Order Partner

+ + +

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

+

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

+
+

Table of contents

+ +
+

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

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.

+

Current maintainers:

+

yostashiro aungkokolin1997

+

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_order_partner/views/res_config_settings_views.xml b/l10n_jp_summary_invoice_order_partner/views/res_config_settings_views.xml new file mode 100644 index 0000000..33f150a --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/views/res_config_settings_views.xml @@ -0,0 +1,26 @@ + + + res.config.settings.view.form.inherit.order_partner + res.config.settings + + + + + + + + + + + + +