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 00000000..17de1a22 --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/README.rst @@ -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 `_ + +**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 `_. +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_order_partner/__init__.py b/l10n_jp_summary_invoice_order_partner/__init__.py new file mode 100644 index 00000000..0650744f --- /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 00000000..0f19ebc3 --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/__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 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, +} 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 00000000..0b150f71 --- /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 00000000..979bda12 --- /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 00000000..0b6844d1 --- /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/readme/CONFIGURE.rst b/l10n_jp_summary_invoice_order_partner/readme/CONFIGURE.rst new file mode 100644 index 00000000..d8233522 --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/readme/CONFIGURE.rst @@ -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. diff --git a/l10n_jp_summary_invoice_order_partner/readme/DESCRIPTION.rst b/l10n_jp_summary_invoice_order_partner/readme/DESCRIPTION.rst new file mode 100644 index 00000000..0af0e547 --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/readme/DESCRIPTION.rst @@ -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/readme/ROADMAP.rst b/l10n_jp_summary_invoice_order_partner/readme/ROADMAP.rst new file mode 100644 index 00000000..2d15eadd --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/readme/ROADMAP.rst @@ -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. 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 00000000..3e7fc581 --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/reports/report_summary_invoice_templates.xml @@ -0,0 +1,28 @@ + + + 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 00000000..8a12e1ad --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/static/description/index.html @@ -0,0 +1,441 @@ + + + + + +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.
  • +
+
+
+

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. +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_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 00000000..62e5e94a --- /dev/null +++ b/l10n_jp_summary_invoice_order_partner/views/res_config_settings_views.xml @@ -0,0 +1,39 @@ + + + res.config.settings.view.form.inherit.order_partner + res.config.settings + + + +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
diff --git a/setup/l10n_jp_summary_invoice_order_partner/odoo/addons/l10n_jp_summary_invoice_order_partner b/setup/l10n_jp_summary_invoice_order_partner/odoo/addons/l10n_jp_summary_invoice_order_partner new file mode 120000 index 00000000..37c36f4b --- /dev/null +++ b/setup/l10n_jp_summary_invoice_order_partner/odoo/addons/l10n_jp_summary_invoice_order_partner @@ -0,0 +1 @@ +../../../../l10n_jp_summary_invoice_order_partner \ No newline at end of file diff --git a/setup/l10n_jp_summary_invoice_order_partner/setup.py b/setup/l10n_jp_summary_invoice_order_partner/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/l10n_jp_summary_invoice_order_partner/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)