From 5c6936b4ccd470ea45a4967f6c9f9236b21dc848 Mon Sep 17 00:00:00 2001 From: ommo73 Date: Fri, 21 Feb 2020 12:57:23 +0500 Subject: [PATCH] :tada: init version --- pos_custom_invoice_report/README.rst | 39 +++ pos_custom_invoice_report/__init__.py | 1 + pos_custom_invoice_report/__manifest__.py | 35 +++ pos_custom_invoice_report/doc/changelog.rst | 4 + pos_custom_invoice_report/doc/index.rst | 10 + .../static/description/icon.png | Bin 0 -> 1915 bytes .../static/src/css/custom_report.css | 91 ++++++ .../views/report_template.xml | 267 ++++++++++++++++++ 8 files changed, 447 insertions(+) create mode 100644 pos_custom_invoice_report/README.rst create mode 100644 pos_custom_invoice_report/__init__.py create mode 100644 pos_custom_invoice_report/__manifest__.py create mode 100644 pos_custom_invoice_report/doc/changelog.rst create mode 100644 pos_custom_invoice_report/doc/index.rst create mode 100644 pos_custom_invoice_report/static/description/icon.png create mode 100644 pos_custom_invoice_report/static/src/css/custom_report.css create mode 100644 pos_custom_invoice_report/views/report_template.xml 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..5a32cbbb2 --- /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", 'sale', "sale_stock"], + "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 0000000000000000000000000000000000000000..8a058284ed5f19cdba59c17a7dffb27828924681 GIT binary patch literal 1915 zcmV->2ZZ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*Y!Y~>grNCb$oJn!ky{DPqjXatp5JMZL*B{pW?A&DU zkibvjTgL1x)h_gCkwGq*sjL8y6m%rF>zrqS5p)WgB_6tqX&~a#PYQu9iN&BGsYN9k z_PA>5$S*G{FcHIP?{Ukyvs9o=RajzDNVo+fc8Ge|q75t=~QPm5B~Q&I}RqNL=)qNL=)qNL=)qNL9;wU7%hDC6 zD+bFyH0~c7QwOHDyEnNhI8v6*nT$H!f-?ZqTohfUk3WK>1OJlrTW}^_Vlb-JV`3-2meev>&k6 zCc3UyC9v9i+)%4HGq_@b3#+r(GzW_;?212w8&eW}G030-SY)2f!gK1xPYL>POPXBK z>DxqKM=RWfpvi`KE%lG;6~DA_uzEdY+pY zC)NkOJGJi^X(=i&ksUVlT%)kM|LEm1De*D@q!i-0%S2x`Q_tJ?aN%TtApyRV9*x2x zNxb~d{ZmY$nq^QEEX2DTJ?_I!7r&8PddQd2fbYAwcoNcxD|90)ky@j;@G@UvKcnvU@!3!$JAww3b0$jd@wCA*FIyOU4*bI&Lpp4Joa_%GqQxS1a(JNA#2wg{3?x zmBUh&l$v2FPD-^7KEJ#qzr0xS+o}*2QiPlm(^}kFPf2MM)|!%16|A);r5;!>fs`5? zJj%VoD(g!imGZDas%V$ZnD>%iywg)s^5uU41^~Z)j6Q#e#pD10002ovPDHLkV1hpK BqagqQ literal 0 HcmV?d00001 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..108b6f814 --- /dev/null +++ b/pos_custom_invoice_report/static/src/css/custom_report.css @@ -0,0 +1,91 @@ +.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; + font-size:8px; +} + +.table-b0 { + border:0; + border-collapse: collapse; + display: table; + width:635px; + font-size:8px; + 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..1ce46e5be --- /dev/null +++ b/pos_custom_invoice_report/views/report_template.xml @@ -0,0 +1,267 @@ + + + + + + + + + + + A4 invoice + + A4 + 0 + 0 + Portrait + 34.5 + 28 + 11 + 7 + + 35 + 90 + + + + + + + +