Initial commit: Pos packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:50 +02:00
commit 95dfb9edb0
1301 changed files with 264148 additions and 0 deletions

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="pos_iot_config_view_form" model="ir.ui.view">
<field name="name">pos.iot.config.form.view</field>
<field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='other_devices']//div[hasclass('o_setting_right_pane')]" position="inside">
<div class="content-group" attrs="{'invisible' : [('other_devices', '=', False)]}">
<field name="epson_printer_ip" placeholder="Epson Receipt Printer IP Address" />
<div class="row" attrs="{'invisible': [('epson_printer_ip', 'in', [False, ''])]}">
<label string="Cashdrawer" for="iface_cashdrawer" class="col-lg-3 o_light_label"/>
<field name="iface_cashdrawer"/>
</div>
</div>
<div role="alert" class="alert alert-warning" attrs="{'invisible': ['|', '|', ('iface_print_via_proxy', '!=', True), ('other_devices', '!=', True), ('epson_printer_ip', 'in', [False, ''])]}">
The Epson receipt printer will be used instead of the receipt printer connected to the IoT Box.
</div>
</xpath>
</field>
</record>
</odoo>

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.pos.epson.printer</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='pos_other_devices']//div[hasclass('o_setting_right_pane')]" position="inside">
<div class="content-group" attrs="{'invisible' : [('pos_other_devices', '=', False)]}">
<field name="pos_epson_printer_ip" placeholder="Epson Receipt Printer IP Address" />
<div class="row" attrs="{'invisible': [('pos_epson_printer_ip', 'in', [False, ''])]}">
<label string="Cashdrawer" for="pos_iface_cashdrawer" class="col-lg-3 o_light_label"/>
<field name="pos_iface_cashdrawer"/>
</div>
</div>
<div role="alert" class="alert alert-warning" attrs="{'invisible': ['|', '|', ('pos_iface_print_via_proxy', '!=', True), ('pos_other_devices', '!=', True), ('pos_epson_printer_ip', 'in', [False, ''])]}">
The Epson receipt printer will be used instead of the receipt printer connected to the IoT Box.
</div>
</xpath>
</field>
</record>
</odoo>