42 lines
2.3 KiB
XML
42 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<!-- Extend POS Configuration Form View -->
|
|
<record id="view_pos_config_form_bluetooth_printer" model="ir.ui.view">
|
|
<field name="name">pos.config.form.bluetooth.printer</field>
|
|
<field name="model">pos.config</field>
|
|
<field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<!-- Add bluetooth printer settings after the other_devices setting -->
|
|
<xpath expr="//setting[@id='other_devices']" position="after">
|
|
<setting string="Bluetooth Thermal Printer" help="Connect to a Bluetooth thermal printer directly from the browser">
|
|
<field name="bluetooth_printer_enabled"/>
|
|
<div class="content-group mt16" invisible="not bluetooth_printer_enabled">
|
|
<div class="text-muted">
|
|
<p>
|
|
<i class="fa fa-info-circle"/>
|
|
Bluetooth printer configuration is device-specific and stored locally on each device.
|
|
Each tablet or workstation can connect to a different bluetooth printer.
|
|
</p>
|
|
<p>
|
|
<strong>Requirements:</strong>
|
|
</p>
|
|
<ul>
|
|
<li>Browser with Web Bluetooth API support (Chrome, Edge, or Opera)</li>
|
|
<li>HTTPS connection (or localhost for testing)</li>
|
|
<li>Bluetooth-enabled device</li>
|
|
<li>ESC/POS compatible thermal printer (e.g., RPP02)</li>
|
|
</ul>
|
|
<p>
|
|
<strong>Configuration:</strong>
|
|
Pair your bluetooth printer from within the POS session interface.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</setting>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|