mirror of
https://gitlab.com/flectra-community/server-ux.git
synced 2024-11-16 19:22:06 +00:00
59 lines
2.2 KiB
XML
59 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!--
|
|
Copyright 2020 ForgeFlow S.L.
|
|
Copyright 2017 Creu Blanca
|
|
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
|
-->
|
|
<flectra>
|
|
<record id="barcode_action_form" model="ir.ui.view">
|
|
<field name="name">barcode.action.form</field>
|
|
<field name="model">barcode.action</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Find">
|
|
<div
|
|
class="alert alert-success text-center o_form_header"
|
|
role="alert"
|
|
style="margin-bottom:0px;"
|
|
attrs="{'invisible':[('state', '=', 'warning')]}"
|
|
>
|
|
<bold>
|
|
<field name="status" />
|
|
</bold>
|
|
</div>
|
|
<div
|
|
class="alert alert-danger alert-dismissable text-center"
|
|
role="alert"
|
|
style="margin-bottom:0px;"
|
|
attrs="{'invisible':[('state', '=', 'waiting')]}"
|
|
>
|
|
<bold>
|
|
<field name="status" />
|
|
</bold>
|
|
</div>
|
|
<field name="state" invisible="1" />
|
|
<field name="res_id" invisible="1" />
|
|
<field name="model" invisible="1" />
|
|
<field name="method" invisible="1" />
|
|
<field name="_barcode_scanned" widget="action_barcode_handler" />
|
|
<footer>
|
|
<button
|
|
name="action_cancel"
|
|
string="Close"
|
|
class="oe_link"
|
|
special="cancel"
|
|
/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="barcode_action_action" model="ir.actions.act_window">
|
|
<field name="name">Barcode Launcher</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">barcode.action</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="barcode_action_form" />
|
|
<field name="target">new</field>
|
|
</record>
|
|
</flectra>
|