You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

42 lines
2.2 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Add new binary field in res_config_settings view of point of sale-->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.pos.web.menu</field>
<field name="model">res.config.settings</field>
<field name="inherit_id"
ref="point_of_sale.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='is_table_management']" position="after">
<div class="col-12 col-lg-6 o_setting_box pos_web_menu"
title="POS web menu" id="pos_restaurant_web_menu">
<div class="o_setting_left_pane">
<field name="pos_restaurant_web_menu_view_mode"/>
</div>
<div class="o_setting_right_pane">
<label for="pos_restaurant_web_menu_view_mode"
string="POS web menu"/>
<div class="text-muted">
Allow user to see the menu from their phone.
</div>
<div class="content-group d-flex gap-5"
attrs="{'invisible': [('pos_restaurant_web_menu_view_mode','=',False)]}">
<div class="d-flex flex-column align-items-start w-50">
<button class="btn-link p-0"
icon="fa-arrow-right"
name="generate_table_qr_code"
type="object"
string="Generate QR code"/>
<div class="text-muted">
It will generate Qr code of POS App that
allows customers to view the menu on their
smartphone.
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>