| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <templates id="template" xml:space="preserve"> |
| 3 | |
| 4 | <t t-name="pos_hr.Navbar" t-inherit="point_of_sale.Navbar" t-inherit-mode="extension"> |
| 5 | <xpath expr="//DropdownItem[contains(text(), 'Backend')]" position="attributes"> |
| 6 | <attribute name="t-if">showBackend</attribute> |
| 7 | </xpath> |
| 8 | <xpath expr="//DropdownItem[contains(text(), 'Close Register')]" position="attributes"> |
| 9 | <attribute name="t-if"> |
| 10 | !pos.config.module_pos_hr or pos.employeeIsAdmin or pos.getCashierUserId() === pos.session.user_id?.id |
| 11 | </attribute> |
| 12 | </xpath> |
| 13 | <xpath expr="//CashierName" position="after"> |
| 14 | <button t-if="pos.config.module_pos_hr and !ui.isSmall" class="lock-screen btn btn-light btn-lg" title="Lock" t-on-click="() => this.pos.showLoginScreen()"> |
| 15 | <i class="fa fa-fw fa-unlock"/> |
| 16 | </button> |
| 17 | </xpath> |
| 18 | <xpath expr="//Dropdown//div[hasclass('pos-burger-menu-items')]" position="inside"> |
| 19 | <DropdownItem t-if="pos.config.module_pos_hr and ui.isSmall" onSelected="() => this.pos.showLoginScreen()"> |
| 20 | Lock |
| 21 | </DropdownItem> |
| 22 | </xpath> |
| 23 | </t> |
| 24 | |
| 25 | </templates> |