Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pos_event_sale_registration_qr_code/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Empty file.
21 changes: 21 additions & 0 deletions pos_event_sale_registration_qr_code/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr).
# @author Iván Todorovich <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Point of Sale Registration QR Code",
"summary": "Print registration QR codes on Point of Sale receipts",
"author": "Moka Tourisme, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"category": "Marketing",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"maintainers": ["ivantodorovich"],
"depends": ["pos_event_sale", "event_registration_qr_code"],
"assets": {
"web.assets_qweb": [
"pos_event_sale_registration_qr_code/static/src/xml/**/*.xml",
],
},
"auto_install": True,
}
4 changes: 4 additions & 0 deletions pos_event_sale_registration_qr_code/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* `Moka Tourisme <https://www.mokatourisme.fr>`_

* Iván Todorovich <[email protected]>
* Grégory Schreiner <[email protected]>
1 change: 1 addition & 0 deletions pos_event_sale_registration_qr_code/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Integrates `event_registration_qr_code` into Point of Sale events.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr).
@author Iván Todorovich <[email protected]>
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-->
<templates id="template" xml:space="preserve">

<t t-inherit="pos_event_sale.EventRegistrationReceipt" t-inherit-mode="extension">
<xpath expr="//div[hasclass('event-registration-barcode')]" position="inside">
<div t-if="registration.qr_code">
<img
class="qrcode"
t-attf-src="/report/barcode/?type=QR&amp;value={{registration.qr_code}}&amp;width=164&amp;height=164&amp;humanreadable=0"
alt="QR Code"
/>
</div>
</xpath>
</t>

</templates>
6 changes: 6 additions & 0 deletions setup/pos_event_sale_registration_qr_code/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)