Skip to content
Open
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
3 changes: 3 additions & 0 deletions pos_print_receipt_backend_customer_wallet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2022 Coop IT Easy SCRLfs
#
# SPDX-License-Identifier: AGPL-3.0-or-later
27 changes: 27 additions & 0 deletions pos_print_receipt_backend_customer_wallet/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SPDX-FileCopyrightText: 2022 Coop IT Easy SCRLfs
#
# SPDX-License-Identifier: AGPL-3.0-or-later

{
"name": "Generate POS receipts from Odoo Backend - Customer Wallet support",
"summary": """
Add customer wallet balance.""",
"version": "12.0.1.0.0",
"category": "Point of Sale",
"website": "https://coopiteasy.be",
"author": "Coop IT Easy SCRLfs",
"maintainers": ["carmenbianca"],
"license": "AGPL-3",
"application": False,
"auto_install": True,
"depends": [
"pos_print_receipt_backend",
"pos_customer_wallet",
],
"excludes": [],
"data": [
"report/report_pos_receipt.xml",
],
"demo": [],
"qweb": [],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* `Coop IT Easy SCRLfs <https://coopiteasy.be>`_:

* Carmen Bianca Bakker
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add customer wallet balance.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
SPDX-FileCopyrightText: 2022 Coop IT Easy SCRLfs

SPDX-License-Identifier: AGPL-3.0-or-later
-->
<odoo>
<template
id="report_pos_receipt_document"
inherit_id="pos_print_receipt_backend.report_pos_receipt_document"
>
<xpath expr="table[hasclass('receipt-change')]" position="after">
<br />
<table class='customer-wallet-balance'>
<tr>
<td>Customer Wallet Balance:</td>
<td class="right-align">
<!-- FIXME: this field does not exist -->
<span
t-field="o.customer_wallet_balance"
t-options="{'widget': 'monetary', 'display_currency': o.company_id.currency_id}"
/>
</td>
</tr>
</table>
</xpath>
</template>
</odoo>