Odoo18-Base/addons/pos_restaurant/views/res_config_settings_views.xml
2025-01-06 10:57:38 +07:00

59 lines
4.0 KiB
XML

<?xml version="1.0"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.pos_restaurant</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">
<div id="warning_text_pos_restaurant" position="replace"/>
<block id="restaurant_section" position="inside">
<setting id="floor_and_table_map" string="Floors &amp; Tables Map" help="Design floors and assign orders to tables" documentation="/applications/sales/point_of_sale/restaurant/floors_tables.html" invisible="is_kiosk_mode or not pos_module_pos_restaurant">
<div class="content-group">
<div class="mt16">
<label string="Floors" for="pos_floor_ids" class="o_light_label me-2"/>
<field name="pos_floor_ids" widget="many2many_tags" readonly="pos_has_active_session" />
</div>
<div>
<button name="%(pos_restaurant.action_restaurant_floor_form)d" icon="oi-arrow-right" type="action" string="Floors" class="btn-link"/>
</div>
</div>
</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_module_pos_restaurant">
<field name="pos_takeaway"/>
<div class="text-warning mb16" invisible="not pos_takeaway">Taxes must be included in price.</div>
<div class="content-group" invisible="not pos_takeaway">
<label string="" for="pos_takeaway_fp_id" class="me-2"/>
<field name="pos_takeaway_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>
<setting string="Early Receipt Printing" help="Allow to print receipt before payment" id="iface_printbill" invisible="not pos_module_pos_restaurant or is_kiosk_mode">
<field name="pos_iface_printbill"/>
</setting>
<setting help="Split total or order lines" id="iface_splitbill" documentation="/applications/sales/point_of_sale/restaurant/bill_printing.html" invisible="not pos_module_pos_restaurant or is_kiosk_mode">
<field name="pos_iface_splitbill" string="Allow Bill Splitting"/>
</setting>
<setting help="Online reservation for restaurant" invisible="not pos_module_pos_restaurant or is_kiosk_mode">
<field name="pos_module_pos_restaurant_appointment" string="Table Booking" widget="upgrade_boolean" />
<div class="content-group" id="pos_table_booking" invisible="not pos_module_pos_restaurant_appointment">
<div class="text-warning mt16 mb4">
Save this page and come back here to set up the feature.
</div>
</div>
</setting>
</block>
<div id="tip_product" position="after">
<div invisible="not pos_module_pos_restaurant or not pos_iface_tipproduct">
<field name="pos_set_tip_after_payment" class="oe_inline"/>
<label class="fw-normal" for="pos_set_tip_after_payment" string="Add tip after payment"/>
</div>
</div>
<setting id="flexible_taxes" position="attributes">
<attribute name="invisible">pos_takeaway</attribute>
</setting>
</field>
</record>
</odoo>