From 9a063aaaaa562ce0c74ba8ffda4e557fb199792e Mon Sep 17 00:00:00 2001 From: Carmen Bianca Bakker Date: Mon, 2 May 2022 11:33:11 +0200 Subject: [PATCH 01/13] [ADD] pos_auto_invoice Signed-off-by: Carmen Bianca Bakker --- pos_auto_invoice/README.rst | 59 +++ pos_auto_invoice/__init__.py | 0 pos_auto_invoice/__manifest__.py | 23 + pos_auto_invoice/readme/CONTRIBUTORS.rst | 3 + pos_auto_invoice/readme/DESCRIPTION.rst | 1 + .../static/description/index.html | 417 ++++++++++++++++++ pos_auto_invoice/static/src/js/models.js | 13 + pos_auto_invoice/templates/assets.xml | 11 + .../odoo/addons/pos_auto_invoice | 1 + setup/pos_auto_invoice/setup.py | 6 + 10 files changed, 534 insertions(+) create mode 100644 pos_auto_invoice/README.rst create mode 100644 pos_auto_invoice/__init__.py create mode 100644 pos_auto_invoice/__manifest__.py create mode 100644 pos_auto_invoice/readme/CONTRIBUTORS.rst create mode 100644 pos_auto_invoice/readme/DESCRIPTION.rst create mode 100644 pos_auto_invoice/static/description/index.html create mode 100644 pos_auto_invoice/static/src/js/models.js create mode 100644 pos_auto_invoice/templates/assets.xml create mode 120000 setup/pos_auto_invoice/odoo/addons/pos_auto_invoice create mode 100644 setup/pos_auto_invoice/setup.py diff --git a/pos_auto_invoice/README.rst b/pos_auto_invoice/README.rst new file mode 100644 index 0000000000..0626f17347 --- /dev/null +++ b/pos_auto_invoice/README.rst @@ -0,0 +1,59 @@ +=================================== +Point of Sale Automatically Invoice +=================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-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-coopiteasy%2Faddons-lightgray.png?logo=github + :target: https://github.com/coopiteasy/addons/tree/12.0/pos_auto_invoice + :alt: coopiteasy/addons + +|badge1| |badge2| |badge3| + +In the POS, set orders as to-invoice by default. + +**Table of contents** + +.. contents:: + :local: + +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 +~~~~~~~ + +* Coop IT Easy SCRLfs + +Contributors +~~~~~~~~~~~~ + +* `Coop IT Easy SCRLfs `_: + + * Carmen Bianca Bakker + +Maintainers +~~~~~~~~~~~ + +This module is part of the `coopiteasy/addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/pos_auto_invoice/__init__.py b/pos_auto_invoice/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/pos_auto_invoice/__manifest__.py b/pos_auto_invoice/__manifest__.py new file mode 100644 index 0000000000..1dcd974110 --- /dev/null +++ b/pos_auto_invoice/__manifest__.py @@ -0,0 +1,23 @@ +# Copyright 2022 Coop IT Easy SCRLfs +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Point of Sale Automatically Invoice", + "summary": """ + In the POS, set orders as to-invoice by default.""", + "version": "12.0.1.0.0", + "category": "Point of Sale", + "website": "https://coopiteasy.be", + "author": "Coop IT Easy SCRLfs", + "license": "AGPL-3", + "application": False, + "depends": [ + "point_of_sale", + ], + "excludes": [], + "data": [ + "templates/assets.xml", + ], + "demo": [], + "qweb": [], +} diff --git a/pos_auto_invoice/readme/CONTRIBUTORS.rst b/pos_auto_invoice/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..9f39efbc52 --- /dev/null +++ b/pos_auto_invoice/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `Coop IT Easy SCRLfs `_: + + * Carmen Bianca Bakker diff --git a/pos_auto_invoice/readme/DESCRIPTION.rst b/pos_auto_invoice/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..d3aba973c5 --- /dev/null +++ b/pos_auto_invoice/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +In the POS, set orders as to-invoice by default. diff --git a/pos_auto_invoice/static/description/index.html b/pos_auto_invoice/static/description/index.html new file mode 100644 index 0000000000..bd0963fde8 --- /dev/null +++ b/pos_auto_invoice/static/description/index.html @@ -0,0 +1,417 @@ + + + + + + +Point of Sale Automatically Invoice + + + +
+

Point of Sale Automatically Invoice

+ + +

Beta License: AGPL-3 coopiteasy/addons

+

In the POS, set orders as to-invoice by default.

+

Table of contents

+ +
+

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

+
    +
  • Coop IT Easy SCRLfs
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the coopiteasy/addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/pos_auto_invoice/static/src/js/models.js b/pos_auto_invoice/static/src/js/models.js new file mode 100644 index 0000000000..10345d861c --- /dev/null +++ b/pos_auto_invoice/static/src/js/models.js @@ -0,0 +1,13 @@ +odoo.define("pos_auto_invoice.models", function (require) { + "use strict"; + + var models = require("point_of_sale.models"); + + var OrderSuper = models.Order; + models.Order = models.Order.extend({ + initialize: function (attributes, options) { + OrderSuper.prototype.initialize.apply(this, arguments); + this.to_invoice = true; + }, + }); +}); diff --git a/pos_auto_invoice/templates/assets.xml b/pos_auto_invoice/templates/assets.xml new file mode 100644 index 0000000000..e55c82fd29 --- /dev/null +++ b/pos_auto_invoice/templates/assets.xml @@ -0,0 +1,11 @@ + + +