Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP][ADD] pos_print_receipt_backend_customer_wallet #17

Open
wants to merge 1 commit into
base: 12.0
Choose a base branch
from
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>