From 3db439bf84fb04a75bb410488c858db864702bc6 Mon Sep 17 00:00:00 2001 From: "Yoshi Tashiro (Quartile)" Date: Tue, 17 Sep 2024 10:42:21 +0900 Subject: [PATCH] [4851][ADD] purchase_report_interanal_reference (#96) Fast tracking. --- purchase_report_internal_reference/README.rst | 65 +++ .../__init__.py | 0 .../__manifest__.py | 17 + purchase_report_internal_reference/i18n/ja.po | 22 + .../readme/CONTEXT.md | 1 + .../readme/DESCRIPTION.md | 2 + .../reports/purchase_order_templates.xml | 16 + .../reports/purchase_quotation_templates.xml | 16 + .../static/description/index.html | 418 ++++++++++++++++++ .../addons/purchase_report_internal_reference | 1 + .../setup.py | 6 + 11 files changed, 564 insertions(+) create mode 100644 purchase_report_internal_reference/README.rst create mode 100644 purchase_report_internal_reference/__init__.py create mode 100644 purchase_report_internal_reference/__manifest__.py create mode 100644 purchase_report_internal_reference/i18n/ja.po create mode 100644 purchase_report_internal_reference/readme/CONTEXT.md create mode 100644 purchase_report_internal_reference/readme/DESCRIPTION.md create mode 100644 purchase_report_internal_reference/reports/purchase_order_templates.xml create mode 100644 purchase_report_internal_reference/reports/purchase_quotation_templates.xml create mode 100644 purchase_report_internal_reference/static/description/index.html create mode 120000 setup/purchase_report_internal_reference/odoo/addons/purchase_report_internal_reference create mode 100644 setup/purchase_report_internal_reference/setup.py diff --git a/purchase_report_internal_reference/README.rst b/purchase_report_internal_reference/README.rst new file mode 100644 index 00000000..12b782e2 --- /dev/null +++ b/purchase_report_internal_reference/README.rst @@ -0,0 +1,65 @@ +================================== +Purchase Report Internal Reference +================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:fd3601661554756bb0ba9243298326370168ba8c639f27196d43a354483f1bbf + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |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-qrtl%2Faxls--custom-lightgray.png?logo=github + :target: https://github.com/qrtl/axls-custom/tree/16.0/purchase_report_internal_reference + :alt: qrtl/axls-custom + +|badge1| |badge2| |badge3| + +This module adds the internal reference as a column in the table of +purchase reports. + +**Table of contents** + +.. contents:: + :local: + +Use Cases / Context +=================== + +Vendors sometimes need to know their clients' part numbers for printing +on product labels, delivery slips, and other documents. Standard Odoo +does not support this when vendor product codes are set for products. +This module adds the internal reference value as a column named Buyer +Part No. in the table of purchase reports to address this need. + +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 part of the `qrtl/axls-custom `_ project on GitHub. + +You are welcome to contribute. diff --git a/purchase_report_internal_reference/__init__.py b/purchase_report_internal_reference/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/purchase_report_internal_reference/__manifest__.py b/purchase_report_internal_reference/__manifest__.py new file mode 100644 index 00000000..abf81dde --- /dev/null +++ b/purchase_report_internal_reference/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2024 Quartile (https://www.quartile.co) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Purchase Report Internal Reference", + "version": "16.0.1.0.0", + "category": "Purchases", + "license": "AGPL-3", + "author": "Quartile", + "website": "https://www.quartile.co", + "depends": ["purchase"], + "data": [ + "reports/purchase_order_templates.xml", + "reports/purchase_quotation_templates.xml", + ], + "installable": True, +} diff --git a/purchase_report_internal_reference/i18n/ja.po b/purchase_report_internal_reference/i18n/ja.po new file mode 100644 index 00000000..e77fdc21 --- /dev/null +++ b/purchase_report_internal_reference/i18n/ja.po @@ -0,0 +1,22 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_report_internal_reference +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-07-11 09:14+0000\n" +"PO-Revision-Date: 2024-07-11 09:14+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: purchase_report_internal_reference +#: model_terms:ir.ui.view,arch_db:purchase_report_internal_reference.report_purchaseorder_document_inherit +#: model_terms:ir.ui.view,arch_db:purchase_report_internal_reference.report_purchasequotation_document_inherit +msgid "Buyer Part No." +msgstr "発注社品番" diff --git a/purchase_report_internal_reference/readme/CONTEXT.md b/purchase_report_internal_reference/readme/CONTEXT.md new file mode 100644 index 00000000..31f207d1 --- /dev/null +++ b/purchase_report_internal_reference/readme/CONTEXT.md @@ -0,0 +1 @@ +Vendors sometimes need to know their clients' part numbers for printing on product labels, delivery slips, and other documents. Standard Odoo does not support this when vendor product codes are set for products. This module adds the internal reference value as a column named Buyer Part No. in the table of purchase reports to address this need. diff --git a/purchase_report_internal_reference/readme/DESCRIPTION.md b/purchase_report_internal_reference/readme/DESCRIPTION.md new file mode 100644 index 00000000..c68f0c0d --- /dev/null +++ b/purchase_report_internal_reference/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module adds the internal reference as a column in the table of +purchase reports. diff --git a/purchase_report_internal_reference/reports/purchase_order_templates.xml b/purchase_report_internal_reference/reports/purchase_order_templates.xml new file mode 100644 index 00000000..76715919 --- /dev/null +++ b/purchase_report_internal_reference/reports/purchase_order_templates.xml @@ -0,0 +1,16 @@ + + + + diff --git a/purchase_report_internal_reference/reports/purchase_quotation_templates.xml b/purchase_report_internal_reference/reports/purchase_quotation_templates.xml new file mode 100644 index 00000000..acbe0296 --- /dev/null +++ b/purchase_report_internal_reference/reports/purchase_quotation_templates.xml @@ -0,0 +1,16 @@ + + + + diff --git a/purchase_report_internal_reference/static/description/index.html b/purchase_report_internal_reference/static/description/index.html new file mode 100644 index 00000000..60b1bf56 --- /dev/null +++ b/purchase_report_internal_reference/static/description/index.html @@ -0,0 +1,418 @@ + + + + + +Purchase Report Internal Reference + + + +
+

Purchase Report Internal Reference

+ + +

Beta License: AGPL-3 qrtl/axls-custom

+

This module adds the internal reference as a column in the table of +purchase reports.

+

Table of contents

+ +
+

Use Cases / Context

+

Vendors sometimes need to know their clients’ part numbers for printing +on product labels, delivery slips, and other documents. Standard Odoo +does not support this when vendor product codes are set for products. +This module adds the internal reference value as a column named Buyer +Part No. in the table of purchase reports to address this need.

+
+
+

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 part of the qrtl/axls-custom project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/setup/purchase_report_internal_reference/odoo/addons/purchase_report_internal_reference b/setup/purchase_report_internal_reference/odoo/addons/purchase_report_internal_reference new file mode 120000 index 00000000..b862c124 --- /dev/null +++ b/setup/purchase_report_internal_reference/odoo/addons/purchase_report_internal_reference @@ -0,0 +1 @@ +../../../../purchase_report_internal_reference \ No newline at end of file diff --git a/setup/purchase_report_internal_reference/setup.py b/setup/purchase_report_internal_reference/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/purchase_report_internal_reference/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)