add l10n_es_pos_receipt_hide_customer_info

This commit is contained in:
Luis 2025-11-20 19:10:58 +01:00
parent 29249a41cb
commit 969cc9e9f5
4 changed files with 48 additions and 0 deletions

View 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.

View file

@ -0,0 +1 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

View 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,
}

View file

@ -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>