feat: rename Basic Receipt button to Table Checker in action pad and receipt screen

This commit is contained in:
Suherdy Yacob 2026-05-26 10:01:12 +07:00
parent 16e5e25c76
commit 0fee144295
4 changed files with 23 additions and 1 deletions

View File

@ -17,6 +17,7 @@ This Odoo 19 module enhances the security and auditability of the Point of Sale
- Hides the "Transfer Course" button on the POS UI.
- Hides the save order for later (upload icon) button from the POS UI.
- Hides the "Set Table" button from Register/Direct Sale orders.
- Renames the "Basic Receipt" button to "Table Checker" (on both the action pad and print success screen) for clearer pre-payment table verification.
## Dependencies

View File

@ -1,6 +1,6 @@
{
'name': 'POS Custom Employee Access',
'version': '19.0.0.0.1',
'version': '19.0.0.0.2',
'category': 'Point of Sale',
'summary': 'Enhanced POS access control and employee tracking',
'description': """
@ -11,6 +11,7 @@
- Hide "Course" button on POS UI
- Hide "Transfer Course" button on POS UI
- Hide "Save Order for Later" (upload) button on POS UI
- Rename "Basic Receipt" to "Table Checker"
""",
'author': 'Suherdy Yacob',
'depends': ['pos_restaurant', 'pos_hr', 'pos_employee_role'],

View File

@ -7,6 +7,15 @@
<xpath expr="//button[hasclass('set-table')]" position="replace">
<!-- Hidden "Set Table" button on Register order -->
</xpath>
<!-- Change "Basic Receipt" button text to "Table Checker" -->
<xpath expr="//button[contains(@t-on-click, 'printReceipt')]" position="replace">
<button t-if="(this.pos.cashier.pos_role == 'waiter' or this.pos.cashier.pos_role == 'cashier') and this.pos.config.basic_receipt"
class="button btn btn-secondary btn-lg py-3 d-flex align-items-center justify-content-center flex-fill"
t-att-class="{'col-3': showFastPaymentMethods}"
t-on-click="() => this.pos.printReceipt({ order: this.currentOrder, basic: true })">
<i class="fa fa-print me-2"/> Table Checker
</button>
</xpath>
</t>
<t t-name="pos_custom_access.ProductScreen" t-inherit="point_of_sale.ProductScreen" t-inherit-mode="extension">

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="pos_custom_access.ReceiptScreen" t-inherit="point_of_sale.ReceiptScreen" t-inherit-mode="extension">
<!-- Change "Print Basic Receipt" button text to "Print Table Checker" -->
<xpath expr="//button[contains(@t-on-click, 'doBasicPrint')]" position="replace">
<button t-if="pos.config.basic_receipt" class="button print btn btn-lg btn-secondary w-100 py-3" t-on-click="() => doBasicPrint.call()">
<i t-attf-class="fa {{doBasicPrint.status === 'loading' ? 'fa-fw fa-spin fa-circle-o-notch' : 'fa-print'}} me-1" />Print Table Checker
</button>
</xpath>
</t>
</templates>