109 lines
7.7 KiB
XML
109 lines
7.7 KiB
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
<record id="res_config_settings_view_form_menu" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.pos_self_order.view</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="//setting[@id='payment_methods_new']" position="before">
|
|
<div class="o_notification_alert alert alert-warning" role="alert" invisible="not is_kiosk_mode">
|
|
<span>Please note that the kiosk only works with Adyen & Stripe terminals</span>
|
|
</div>
|
|
</xpath>
|
|
<block id="restaurant_section" position="after">
|
|
<block title="Mobile self-order & Kiosk" id="self_ordering_section">
|
|
<setting string="QR menu & Kiosk activation" help="Let your customers order using their mobile or a kiosk.">a
|
|
<div class="content-group row">
|
|
<label for="pos_self_ordering_mode" class="col-lg-4" string="Self Ordering"/>
|
|
<field name="pos_self_ordering_mode" invisible="not pos_config_id"/>
|
|
</div>
|
|
<div class="d-flex flex-column align-items-start w-50" invisible="pos_self_ordering_mode == 'nothing'">
|
|
<button class="btn-link p-0" icon="oi-arrow-right" name="preview_self_order_app" type="object" string="Preview Web interface"/>
|
|
<button class="btn-link p-0" icon="oi-arrow-right" name="custom_link_action" type="object" string="Home buttons"/>
|
|
<button class="btn-link p-0" icon="oi-arrow-right" name="generate_qr_codes_page" type="object" string="Print QR Codes" invisible="not pos_self_ordering_mode in ['consultation', 'mobile']"/>
|
|
<button class="btn-link p-0" icon="oi-arrow-right" name="generate_qr_codes_zip" type="object" string="Download QR Codes" invisible="not pos_self_ordering_mode in ['consultation', 'mobile']"/>
|
|
<button groups="base.group_no_one" class="btn-link p-0" icon="oi-arrow-right" name="update_access_tokens" type="object" string="Reset QR Codes" invisible="not pos_self_ordering_mode in ['consultation', 'mobile']"/>
|
|
</div>
|
|
<div class="content-group row mt-4" invisible="not pos_self_ordering_mode in ['kiosk', 'mobile']">
|
|
<label for="pos_self_ordering_service_mode" class="col-lg-4" string="Service at" />
|
|
<field name="pos_self_ordering_service_mode" readonly="not pos_module_pos_restaurant and pos_self_ordering_mode != 'kiosk'" />
|
|
</div>
|
|
<div class="content-group row" groups="base.group_no_one" invisible="not pos_self_ordering_mode in ['kiosk', 'mobile']">
|
|
<label for="pos_self_ordering_default_user_id" class="col-lg-4" string="Default User"/>
|
|
<field name="pos_self_ordering_default_user_id" />
|
|
</div>
|
|
<div id="self-payment-after" class="content-group row" invisible="not pos_self_ordering_mode in ['kiosk', 'mobile']">
|
|
<label string="Pay after" for="pos_self_ordering_pay_after" class="col-lg-4"/>
|
|
<field name="pos_self_ordering_pay_after" readonly="pos_self_ordering_mode == 'kiosk' or (pos_self_ordering_service_mode == 'counter' and pos_self_ordering_mode == 'mobile')" widget="upgrade_selection"/>
|
|
</div>
|
|
</setting>
|
|
<setting string="Splash screens" help="Personalize your splash screen by adding one or multiple images to create a slideshow" invisible="pos_self_ordering_mode == 'nothing'">
|
|
<field name="pos_self_ordering_image_home_ids" class="w-100" widget="many2many_binary" />
|
|
</setting>
|
|
<setting string="Language" help="Available interface languages" invisible="pos_self_ordering_mode == 'nothing'">
|
|
<div class="content-group mt-3">
|
|
<div class="row">
|
|
<label for="pos_self_ordering_default_language_id" class="col-lg-3" string="Default"/>
|
|
<field name="pos_self_ordering_default_language_id" />
|
|
</div>
|
|
<div class="row">
|
|
<label for="pos_self_ordering_available_language_ids" class="col-lg-3" string="Available"/>
|
|
<field name="pos_self_ordering_available_language_ids" widget="many2many_tags"/>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<button name="%(base.action_view_base_language_install)d" icon="oi-arrow-right" type="action" string="Add Languages" class="btn-link"/>
|
|
</div>
|
|
</setting>
|
|
<setting string="Customize Header" help="Add an image to brand your header." invisible="pos_self_ordering_mode == 'nothing'">
|
|
<field name="pos_self_ordering_image_brand_name" invisible ="1"/>
|
|
<field name="pos_self_ordering_image_brand" class="w-100" filename="pos_self_ordering_image_brand_name"/>
|
|
</setting>
|
|
<setting string="Eat in / Take out" help="Adjust the tax rate based on whether customers are dining in or opting for takeout." invisible="not pos_self_ordering_mode in ['mobile', 'kiosk']">
|
|
<field name="pos_self_ordering_takeaway"/>
|
|
<div class="content-group" invisible="not pos_self_ordering_takeaway">
|
|
<label string="" for="pos_self_ordering_alternative_fp_id" class="me-2"/>
|
|
<field name="pos_self_ordering_alternative_fp_id" placeholder="Alternative Fiscal Position"/>
|
|
<div>
|
|
<button name="%(account.action_account_fiscal_position_form)d" icon="oi-arrow-right" type="action" string="Fiscal Positions" class="btn-link"/>
|
|
</div>
|
|
</div>
|
|
</setting>
|
|
</block>
|
|
</block>
|
|
|
|
<block id="restaurant_section" position="attributes">
|
|
<attribute name="invisible">is_kiosk_mode</attribute>
|
|
</block>
|
|
|
|
<setting id="customer_display" position="attributes">
|
|
<attribute name="invisible">is_kiosk_mode</attribute>
|
|
</setting>
|
|
|
|
<setting id="manual_discount" position="attributes">
|
|
<attribute name="invisible">is_kiosk_mode</attribute>
|
|
</setting>
|
|
|
|
<setting id="price_control" position="attributes">
|
|
<attribute name="invisible">is_kiosk_mode</attribute>
|
|
</setting>
|
|
|
|
<setting id="multiple_prices_setting" position="attributes">
|
|
<attribute name="invisible">is_kiosk_mode</attribute>
|
|
</setting>
|
|
|
|
<setting id="multiple_employee_session" position="attributes">
|
|
<attribute name="invisible">is_kiosk_mode</attribute>
|
|
</setting>
|
|
|
|
<setting id="margin_and_cost" position="attributes">
|
|
<attribute name="invisible">is_kiosk_mode</attribute>
|
|
</setting>
|
|
|
|
<setting id="flexible_taxes" position="attributes">
|
|
<attribute name="invisible">is_kiosk_mode</attribute>
|
|
</setting>
|
|
</field>
|
|
</record>
|
|
</odoo>
|