diff --git a/pos_custom_invoice_report/README.rst b/pos_custom_invoice_report/README.rst new file mode 100644 index 000000000..b1410d529 --- /dev/null +++ b/pos_custom_invoice_report/README.rst @@ -0,0 +1,39 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-blue.png + :target: https://www.gnu.org/licenses/lgpl + :alt: License: LGPL-3 + +======================= + Custom invoice report +======================= + + + +Credits +======= + +Contributors +------------ +* `Artem Rafailov `__ + +Sponsors +-------- +* `IT-Projects LLC `__ + +Maintainers +----------- +* `IT-Projects LLC `__ + + To get a guaranteed support you are kindly requested to purchase the module at `odoo apps store `__. + + Thank you for understanding! + + `IT-Projects Team `__ + +Further information +=================== + +Usage instructions: ``__ + +Changelog: ``__ + +Tested on Odoo 12.0 7bc849c3a698665d6f2379aa2b8d870c14a6c849 diff --git a/pos_custom_invoice_report/__init__.py b/pos_custom_invoice_report/__init__.py new file mode 100644 index 000000000..de9559250 --- /dev/null +++ b/pos_custom_invoice_report/__init__.py @@ -0,0 +1 @@ +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). diff --git a/pos_custom_invoice_report/__manifest__.py b/pos_custom_invoice_report/__manifest__.py new file mode 100644 index 000000000..3d407eef1 --- /dev/null +++ b/pos_custom_invoice_report/__manifest__.py @@ -0,0 +1,35 @@ +# Copyright 2020 Artem Rafailov +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). +{ + "name": """Custom invoice report""", + "summary": """Custom invoice report""", + "category": "Point of Sale", + # "live_test_url": "http://apps.it-projects.info/shop/product/pos-invoice-pay?version=12.0", + "images": [], + "version": "12.0.1.0.0", + "application": False, + "author": "IT-Projects LLC, Artem Rafailov", + "support": "pos@it-projects.info", + "website": "it-projects.info", + "license": "LGPL-3", + # "price": 9.00, + # "currency": "EUR", + "depends": ["point_of_sale"], + "external_dependencies": {"python": [], "bin": []}, + "data": [ + "views/report_template.xml", + ], + "qweb": [], + "demo": [], + "post_load": None, + "pre_init_hook": None, + "post_init_hook": None, + "auto_install": False, + "installable": True, + "demo_title": "", + "demo_addons": [], + "demo_addons_hidden": [], + "demo_url": "", + "demo_summary": "", + "demo_images": [""], +} diff --git a/pos_custom_invoice_report/doc/changelog.rst b/pos_custom_invoice_report/doc/changelog.rst new file mode 100644 index 000000000..8a580e448 --- /dev/null +++ b/pos_custom_invoice_report/doc/changelog.rst @@ -0,0 +1,4 @@ +`1.0.0` +------- + +**Init version** diff --git a/pos_custom_invoice_report/doc/index.rst b/pos_custom_invoice_report/doc/index.rst new file mode 100644 index 000000000..332565e67 --- /dev/null +++ b/pos_custom_invoice_report/doc/index.rst @@ -0,0 +1,10 @@ +======================= + Custom invoice report +======================= + +Installation +============ + +* `Install `__ this module in a usual way + + diff --git a/pos_custom_invoice_report/static/description/icon.png b/pos_custom_invoice_report/static/description/icon.png new file mode 100644 index 000000000..8a058284e Binary files /dev/null and b/pos_custom_invoice_report/static/description/icon.png differ diff --git a/pos_custom_invoice_report/static/src/css/custom_report.css b/pos_custom_invoice_report/static/src/css/custom_report.css new file mode 100644 index 000000000..03ac30ce1 --- /dev/null +++ b/pos_custom_invoice_report/static/src/css/custom_report.css @@ -0,0 +1,90 @@ +.cell-b4{ + border:solid 1px white; +} + +.cell-b0{ + border:0; +} + +.cell-tl{ + border:solid 1px white; + border-top:0; + border-left:0; +} + +.cell-tr{ + border:solid 1px white; + border-top:0; + border-right:0; +} + +.cell-t{ + border:solid 1px white; + border-top:0; +} + +.cell-r{ + border:solid 1px white; + border-right:0; +} + +.cell-l{ + border:solid 1px white; + border-right:0; +} + +.table-container { + border:solid 1px white; + display: block; + border-radius:5px; + max-width:632px; + margin-top:4px; +} + +.table-b0 { + border:0; + border-collapse: collapse; + display: table; + width:635px; + font-size:9px; + font-weight: normal; +} + +.top-block { + height:76px; + border:solid 1px white; + float: left; + border-radius:5px; + padding-left:5px; +} + +.tr-tlr { + border:solid 1px white; + border-top:0; + border-left:0; + border-right:0; +} + +.tr-lr { + border:solid 1px white; + border-left:0; + height:160px; + border-right:0; +} + +.tr-b0 { + border:0; +} + +.table-header { + text-align: center; +} + +.checkbox-t { + height: 12px; + width: 12px; + border:solid 1px white; + display:inline-block; + border-radius:5px; +} + diff --git a/pos_custom_invoice_report/views/report_template.xml b/pos_custom_invoice_report/views/report_template.xml new file mode 100644 index 000000000..c6b7412a1 --- /dev/null +++ b/pos_custom_invoice_report/views/report_template.xml @@ -0,0 +1,265 @@ + + + + + + + + + + + + + + + A4 invoice + + A4 + 0 + 0 + Portrait + 34.5 + 28 + 11 + 7 + + 35 + 90 + + + +