add l10n_es_pos_receipt_hide_customer_info
This commit is contained in:
parent
29249a41cb
commit
969cc9e9f5
4 changed files with 48 additions and 0 deletions
18
l10n_es_pos_receipt_hide_customer_info/README.md
Normal file
18
l10n_es_pos_receipt_hide_customer_info/README.md
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Spanish PoS - Hide Customer Info on Receipt
|
||||||
|
|
||||||
|
This module extends `l10n_es_pos` to hide customer fiscal information (VAT and address) from the Point of Sale receipt, showing only the customer name.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Shows only the customer name on the receipt
|
||||||
|
- Hides customer VAT number
|
||||||
|
- Hides customer address
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
1. Install the module
|
||||||
|
2. No configuration needed
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
When printing a receipt with a selected customer, only the customer name will be displayed, without VAT or address information.
|
||||||
1
l10n_es_pos_receipt_hide_customer_info/__init__.py
Normal file
1
l10n_es_pos_receipt_hide_customer_info/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||||
17
l10n_es_pos_receipt_hide_customer_info/__manifest__.py
Normal file
17
l10n_es_pos_receipt_hide_customer_info/__manifest__.py
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "Spanish PoS - Hide Customer Info on Receipt",
|
||||||
|
"category": "Sales/Point Of Sale",
|
||||||
|
"author": "Criptomart",
|
||||||
|
"website": "",
|
||||||
|
"license": "AGPL-3",
|
||||||
|
"version": "16.0.1.0.0",
|
||||||
|
"depends": ["l10n_es_pos"],
|
||||||
|
"assets": {
|
||||||
|
"point_of_sale.assets": [
|
||||||
|
"l10n_es_pos_receipt_hide_customer_info/static/src/xml/pos.xml",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"installable": True,
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<templates id="template" xml:space="preserve">
|
||||||
|
<t
|
||||||
|
t-name="OrderReceipt"
|
||||||
|
t-inherit="point_of_sale.OrderReceipt"
|
||||||
|
t-inherit-mode="extension"
|
||||||
|
owl="1"
|
||||||
|
>
|
||||||
|
<xpath expr="//t[@t-if='props.order.get_partner()']/t[@t-if='props.order.get_partner().vat']" position="replace" />
|
||||||
|
<xpath expr="//t[@t-if='props.order.get_partner()']/t[contains(@t-if, 'props.order.get_partner().address')]" position="replace" />
|
||||||
|
</t>
|
||||||
|
</templates>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue