Files
enterprise-addons/pos_pricer/views/pricer_store_views.xml
T

69 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- List View -->
<record id="pricer_pricer_store_view_list" model="ir.ui.view">
<field name="name">pricer_store.list</field>
<field name="model">pricer.store</field>
<field name="arch" type="xml">
<list string="Pricer Store">
<header>
<button
name="action_button_update_pricer_tags"
string="Update tags"
type="object"
class="btn btn-secondary"
groups="point_of_sale.group_pos_manager"
/>
</header>
<field name="name"/>
<field name="pricer_tenant_name"/>
<field name="pricer_login"/>
<field name="pricer_password" password="True"/>
<field name="pricer_store_identifier"/>
<field name="pricer_tag_ids" widget="many2many_tags"/>
<!-- Last Update Time and status only visible on List View -->
<field name="last_update_datetime"/>
<field name="last_update_status_message"/>
</list>
</field>
</record>
<!-- Form View -->
<record id="pricer_pricer_store_form_view" model="ir.ui.view">
<field name="name">pricer_store.form</field>
<field name="model">pricer.store</field>
<field name="arch" type="xml">
<form string="Pricer Store" js_class="pricer_quick_pairing_form">
<sheet>
<group>
<field name="name"/>
<field name="pricer_tenant_name"/>
<field name="pricer_login"/>
<field name="pricer_password" password="True"/>
<field name="pricer_store_identifier"/>
<field name="pricer_tag_ids" widget="many2many_tags" readonly="1"/>
</group>
</sheet>
<sheet invisible="not id">
<group string="Quick pairing">
<group>
<field name="dummy_prod_barcode"/>
</group>
<group>
<field name="dummy_tag_barcode"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<!-- Menu Actions -->
<record model="ir.actions.act_window" id="action_open_pricer_stores">
<field name="name">Pricer Stores</field>
<field name="res_model">pricer.store</field>
<field name="view_mode">list,form</field>
</record>
</odoo>