POS: Rechnungs-Button im Payment Screen entfernt

This commit is contained in:
Matthias Lotz 2026-01-09 21:05:20 +01:00
parent 988421a0c5
commit 21b0d6305f
3 changed files with 27 additions and 0 deletions

View File

@ -52,6 +52,7 @@ Autor: HobbyHimmel
'open_workshop_pos/static/src/xml/ows_receipt_header_patch.xml',
'open_workshop_pos/static/src/xml/ows_voucher_codes_patch.xml',
'open_workshop_pos/static/src/xml/ows_control_buttons_patch.xml',
'open_workshop_pos/static/src/xml/ows_payment_screen_patch.xml',
# CSS
'open_workshop_pos/static/src/css/pos.css',

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="point_of_sale.PaymentScreenButtons" t-inherit="point_of_sale.PaymentScreenButtons" t-inherit-mode="extension">
<!-- Remove the Invoice button completely -->
<xpath expr="//button[contains(@class, 'js_invoice')]" position="replace">
<!-- Invoice button removed -->
</xpath>
</t>
</templates>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="point_of_sale.TicketScreen" t-inherit="point_of_sale.TicketScreen" t-inherit-mode="extension">
<!-- Remove the Invoice button completely -->
<xpath expr="//InvoiceButton" position="replace">
<!-- Invoice button removed -->
</xpath>
</t>
</templates>