Skip to content

Commit 720ce58

Browse files
committed
🎉1️⃣3️⃣ pos_qr_payments
previous commits history: https://github.com/itpp-labs/pos-addons/commits/13.0/pos_qr_payments > Made via .github/workflows/DINAR-PORT.yml
1 parent c516a47 commit 720ce58

File tree

15 files changed

+333
-0
lines changed

15 files changed

+333
-0
lines changed

pos_qr_payments/README.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.. image:: https://itpp.dev/images/infinity-readme.png
2+
:alt: Tested and maintained by IT Projects Labs
3+
:target: https://itpp.dev
4+
5+
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
6+
:target: https://opensource.org/licenses/MIT
7+
:alt: License: MIT
8+
9+
==========================
10+
QR-based payments in POS
11+
==========================
12+
13+
Technical module to support qr-based payments like Alipay, WeChat
14+
15+
Questions?
16+
==========
17+
18+
To get an assistance on this module contact us by email :arrow_right: [email protected]
19+
20+
Contributors
21+
============
22+
* `Ivan Yelizariev <https://it-projects.info/team/yelizariev>`__
23+
24+
25+
Further information
26+
===================
27+
28+
Odoo Apps Store: https://apps.odoo.com/apps/modules/13.0/pos_qr_payments/
29+
30+
31+
Notifications on updates: `via Atom <https://github.com/it-projects-llc/pos-addons/commits/13.0/pos_qr_payments.atom>`_, `by Email <https://blogtrottr.com/?subscribe=https://github.com/it-projects-llc/pos-addons/commits/13.0/pos_qr_payments.atom>`_
32+
33+
Tested on `Odoo 11.0 <https://github.com/odoo/odoo/commit/4d0a1330e05bd688265bea14df4ad12838f9f2d7>`_

pos_qr_payments/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License MIT (https://opensource.org/licenses/MIT).
2+
from . import models
3+
from . import wizard

pos_qr_payments/__manifest__.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
2+
# License MIT (https://opensource.org/licenses/MIT).
3+
{
4+
"name": """QR-based payments in POS""",
5+
"summary": """Technical module to support qr-based payments like Alipay, WeChat""",
6+
"category": "Hidden",
7+
"images": [],
8+
"version": "13.0.1.0.1",
9+
"application": False,
10+
"author": "IT-Projects LLC, Ivan Yelizariev",
11+
"support": "[email protected]",
12+
"website": "https://github.com/itpp-labs/pos-addons#readme",
13+
"license": "Other OSI approved licence", # MIT
14+
"depends": ["point_of_sale"],
15+
"external_dependencies": {"python": [], "bin": []},
16+
"data": ["wizard/pos_payment_views.xml", "views/assets.xml"],
17+
"demo": [],
18+
"qweb": [],
19+
"post_load": None,
20+
"pre_init_hook": None,
21+
"post_init_hook": None,
22+
"uninstall_hook": None,
23+
"auto_install": False,
24+
"installable": False,
25+
}

pos_qr_payments/doc/changelog.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
`1.0.1`
2+
-------
3+
4+
- **FIX** - Error related to pos reference in different translations
5+
6+
`1.0.0`
7+
-------
8+
9+
- **Init version**

pos_qr_payments/doc/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
==========================
2+
QR-based payments in POS
3+
==========================
4+
5+
The module cannot be used alone. Try to install, for example, `pos_wechat <https://apps.odoo.com/apps/modules/13.0/pos_wechat/>`__.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * pos_qr_payments
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 12.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: <>\n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: pos_qr_payments
17+
#: model:ir.model.fields,field_description:pos_qr_payments.field_pos_make_payment__order_ref
18+
msgid "Order Ref"
19+
msgstr ""
20+
21+
#. module: pos_qr_payments
22+
#: model:ir.model.fields,field_description:pos_qr_payments.field_pos_order__pos_reference_uid
23+
msgid "Order UID"
24+
msgstr ""
25+
26+
#. module: pos_qr_payments
27+
#: model:ir.model,name:pos_qr_payments.model_pos_order
28+
msgid "Point of Sale Orders"
29+
msgstr ""
30+
31+
#. module: pos_qr_payments
32+
#: model:ir.model,name:pos_qr_payments.model_pos_make_payment
33+
msgid "Point of Sale Payment"
34+
msgstr ""
35+
36+
#. module: pos_qr_payments
37+
#. openerp-web
38+
#: code:addons/pos_qr_payments/static/src/js/pos_qr_payments.js:30
39+
#, python-format
40+
msgid "Warning"
41+
msgstr ""
42+

pos_qr_payments/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# License MIT (https://opensource.org/licenses/MIT).
2+
from . import pos_order
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
2+
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
3+
# License MIT (https://opensource.org/licenses/MIT).
4+
import re
5+
6+
from odoo import api, fields, models
7+
8+
9+
class PosOrder(models.Model):
10+
_inherit = "pos.order"
11+
12+
pos_reference_uid = fields.Char(
13+
string="Order UID", compute="_compute_pos_reference_uid"
14+
)
15+
16+
@api.depends("pos_reference")
17+
def _compute_pos_reference_uid(self):
18+
for r in self:
19+
reference = r.pos_reference and re.search(
20+
r"\d{1,}-\d{1,}-\d{1,}", r.pos_reference
21+
)
22+
r.pos_reference_uid = reference and reference.group(0) or ""
1.87 KB
Loading
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<section class="oe_container">
2+
<div class="oe_row oe_spaced">
3+
<div class="oe_span12">
4+
<h2 class="oe_slogan" style="color:#875A7B;">QR-based payments in POS</h2>
5+
<h3 class="oe_slogan">Technical module to support qr-based payments like Alipay, WeChat</h3>
6+
</div>
7+
</div>
8+
</section>
9+
10+
<section class="oe_container">
11+
<div class="oe_row oe_spaced">
12+
<div class="oe_span8">
13+
<h2>Need our service?</h2>
14+
<p class="oe_mt32">Contact us by <a href="mailto:[email protected]">email</a> or fill out <a href="https://www.it-projects.info/page/website.contactus " target="_blank">request form</a></p>
15+
<ul>
16+
<li><a href="mailto:[email protected]">[email protected] <i class="fa fa-envelope-o"></i></a></li>
17+
<li><a href="https://www.it-projects.info/page/website.contactus " target="_blank">https://www.it-projects.info/page/website.contactus <i class="fa fa-list-alt"></i></a></li>
18+
<li><a href="https://m.me/itprojectsllc" target="_blank">https://m.me/itprojectsllc <i class="fa fa-facebook-square"></i></a></li>
19+
<li>[email protected] <i class="fa fa-skype"></i></li>
20+
</ul>
21+
</div>
22+
<div class="oe_span4">
23+
<div class="stamp" style="width:200px;">
24+
<div style="margin-top: 15px;
25+
position: relative;
26+
font-family:'Vollkorn', serif;
27+
font-size: 16px;
28+
line-height: 25px;
29+
text-transform: uppercase;
30+
font-weight: bold;
31+
color: #75526b;
32+
border: 3px dashed #75526b;
33+
float: left;
34+
padding: 4px 12px;
35+
-webkit-transform: rotate(0deg);
36+
-o-transform: rotate(0deg);
37+
-moz-transform: rotate(0deg);
38+
-ms-transform: rotate(0deg);">
39+
Tested on Odoo<br/>12.0 community
40+
</div>
41+
<!--<div style="margin-top: 15px;
42+
position: relative;
43+
font-family:'Vollkorn', serif;
44+
font-size: 16px;
45+
line-height: 25px;
46+
text-transform: uppercase;
47+
font-weight: bold;
48+
color: #75526b;
49+
border: 3px dashed #75526b;
50+
float: left;
51+
padding: 4px 12px;
52+
-webkit-transform: rotate(8deg);
53+
-o-transform: rotate(8deg);
54+
-moz-transform: rotate(8deg);
55+
-ms-transform: rotate(8deg);">
56+
Tested on Odoo<br/>12.0 enterprise
57+
</div>-->
58+
</div>
59+
</div>
60+
</div>
61+
</section>

0 commit comments

Comments
 (0)