From 0be4c668f28e72f85d67250744fc93dae9574b51 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Thu, 16 Sep 2021 11:05:52 +0200 Subject: [PATCH] [ADD] sale_order_report_without_price: Add module --- sale_order_report_without_price/README.rst | 81 ++++ sale_order_report_without_price/__init__.py | 0 .../__manifest__.py | 15 + .../readme/CONTRIBUTORS.rst | 3 + .../readme/DESCRIPTION.rst | 1 + .../readme/USAGE.rst | 2 + .../report/sale_report.xml | 21 + .../report/sale_report_templates.xml | 32 ++ .../static/description/index.html | 428 ++++++++++++++++++ .../addons/sale_order_report_without_price | 1 + .../sale_order_report_without_price/setup.py | 6 + 11 files changed, 590 insertions(+) create mode 100644 sale_order_report_without_price/README.rst create mode 100644 sale_order_report_without_price/__init__.py create mode 100644 sale_order_report_without_price/__manifest__.py create mode 100644 sale_order_report_without_price/readme/CONTRIBUTORS.rst create mode 100644 sale_order_report_without_price/readme/DESCRIPTION.rst create mode 100644 sale_order_report_without_price/readme/USAGE.rst create mode 100644 sale_order_report_without_price/report/sale_report.xml create mode 100644 sale_order_report_without_price/report/sale_report_templates.xml create mode 100644 sale_order_report_without_price/static/description/index.html create mode 120000 setup/sale_order_report_without_price/odoo/addons/sale_order_report_without_price create mode 100644 setup/sale_order_report_without_price/setup.py diff --git a/sale_order_report_without_price/README.rst b/sale_order_report_without_price/README.rst new file mode 100644 index 00000000000..14ffe1b4c41 --- /dev/null +++ b/sale_order_report_without_price/README.rst @@ -0,0 +1,81 @@ +=============================== +Sale Order Report Without Price +=============================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/sale-workflow/tree/14.0/sale_order_report_without_price + :alt: OCA/sale-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_report_without_price + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/167/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds a new print option to print quotations and orders without prices. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Activation is automatic. +In quotations/orders click on the print icon and select the option without prices. + +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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Akretion + +Contributors +~~~~~~~~~~~~ + +* `Akretion `_: + + * Florian Mounier + +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/sale-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_order_report_without_price/__init__.py b/sale_order_report_without_price/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/sale_order_report_without_price/__manifest__.py b/sale_order_report_without_price/__manifest__.py new file mode 100644 index 00000000000..63f13126c11 --- /dev/null +++ b/sale_order_report_without_price/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2021 Akretion - Florian Mounier +{ + "name": "Sale Order Report Without Price", + "summary": "Allow you to generate quotation and order reports without price.", + "version": "14.0.1.0.0", + "author": "Akretion, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/sale-workflow", + "category": "Sales", + "depends": ["sale"], + "data": [ + "report/sale_report.xml", + "report/sale_report_templates.xml", + ], + "license": "LGPL-3", +} diff --git a/sale_order_report_without_price/readme/CONTRIBUTORS.rst b/sale_order_report_without_price/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..a4d0ad92299 --- /dev/null +++ b/sale_order_report_without_price/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `Akretion `_: + + * Florian Mounier diff --git a/sale_order_report_without_price/readme/DESCRIPTION.rst b/sale_order_report_without_price/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..1b2963fa68b --- /dev/null +++ b/sale_order_report_without_price/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module adds a new print option to print quotations and orders without prices. diff --git a/sale_order_report_without_price/readme/USAGE.rst b/sale_order_report_without_price/readme/USAGE.rst new file mode 100644 index 00000000000..5b8efb87f5e --- /dev/null +++ b/sale_order_report_without_price/readme/USAGE.rst @@ -0,0 +1,2 @@ +Activation is automatic. +In quotations/orders click on the print icon and select the option without prices. diff --git a/sale_order_report_without_price/report/sale_report.xml b/sale_order_report_without_price/report/sale_report.xml new file mode 100644 index 00000000000..e6a632c1cb6 --- /dev/null +++ b/sale_order_report_without_price/report/sale_report.xml @@ -0,0 +1,21 @@ + + + + + Quotation / Order Without Price + sale.order + qweb-pdf + sale_order_report_without_price.report_saleorder_without_price + sale_order_report_without_price.report_saleorder_without_price + (object.state in ('draft', 'sent') and 'Quotation - %s without price' % (object.name)) or 'Order - %s without price' % (object.name) + + report + + + diff --git a/sale_order_report_without_price/report/sale_report_templates.xml b/sale_order_report_without_price/report/sale_report_templates.xml new file mode 100644 index 00000000000..d9a16d1631e --- /dev/null +++ b/sale_order_report_without_price/report/sale_report_templates.xml @@ -0,0 +1,32 @@ + + + + + + diff --git a/sale_order_report_without_price/static/description/index.html b/sale_order_report_without_price/static/description/index.html new file mode 100644 index 00000000000..cde41c1e10b --- /dev/null +++ b/sale_order_report_without_price/static/description/index.html @@ -0,0 +1,428 @@ + + + + + + +Sale Order Report Without Price + + + +
+

Sale Order Report Without Price

+ + +

Beta License: LGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runbot

+

This module adds a new print option to print quotations and orders without prices.

+

Table of contents

+ +
+

Usage

+

Activation is automatic. +In quotations/orders click on the print icon and select the option without prices.

+
+
+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
+
+
+

Contributors

+ +
+
+

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

+

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

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