ToolsManagement/views/dbtools_tools.xml

111 lines
4.2 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="dbtools_tools_view_form" model="ir.ui.view">
<field name="name">dbtools_tools_form</field>
<field name="model">dbtools.tools</field>
<field eval="2" name="priority"/>
<field name="arch" type="xml">
<form>
<header>
<button name="dorental" string="Vermietung durchführen" type="object" class="oe_hightlight"/>
<button name="finrental" string="Rücknahme durchführen" type="object" class="oe_hightlight" enabled="0"/>
<field name="tool_rental_state" widget="statusbar" statusbar_visible="Verfügbar,Vermietet,Reserviert,Gesperrt"/>
</header>
<sheet>
<div class='row' style='border-size:1px;border-color:#000;'>
<div class='col-6'>
<div class='row'>
<div class='col-10'>
<group>
<field name="tool_short_name"/>
<field name="tool_long_name"/>
<field name="tool_description"/>
</group>
</div>
</div>
<hr></hr>
<div class='row'>
<div class='col-10'>
<group>
<field name="tool_artikelnummer_intern"/>
<field name="tool_artikelnummer_producer"/>
<field name="tool_producer"/>
</group>
</div>
</div>
</div>
<div class='col-4'>
<group>
<field name="tool_state"/>
<field name="tool_class"/>
<field name="tool_category"/>
<field name="tool_branch"/>
</group>
</div>
<notebook>
<page name="tdata" string="Techn. Daten">
</page>
<page name="rental" string="Vermietung">
<div class='row'>
<group>
<field name="tool_rental_state" readonly="0"/>
</group>
</div>
<div class='row' attrs="{'invisible': [('tool_rental_state','!=','RT')]}" >
<group>
<field name="tool_rental_date" readonly="1"/>
<field name="tool_rental_partner" readonly="1"/>
</group>
</div>
<hr></hr>
</page>
<page name="history" string="Historie">
</page>
<page name="documents" string="Dokumente">
<field name="tool_documents">
<tree string="Werkzeugdokumente">
<field name="documentname" string="Dokument"/>
<field name="description" string="Beschreibung"/>
<field name="documentfile" string="Datei"/>
</tree>
</field>
</page>
<page name="details" string="Details">
</page>
<page name="intern" string="Interne Daten">
</page>
</notebook>
</div>
</sheet>
</form>
</field>
</record>
<record id="dbtools_tools_view_tree" model="ir.ui.view">
<field name="name">dbtools_tools_tree</field>
<field name="model">dbtools.tools</field>
<field name="priority" eval="16"/>
<field name="arch" type="xml">
<tree string="Werkzeuguebersicht">
<field name="tool_short_name"/>
<field name="tool_description"/>
</tree>
</field>
</record>
<record id="action_dbtools_tools_view" model="ir.actions.act_window">
<field name="name">ToolManagement</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">dbtools.tools</field>
<field name="view_mode">tree,form</field>
<field name="context">{}</field>
<field name="help" type="html">
<p class="'o_view_nocontent_smiling_face">
Neues Werkzeug erstellen
</p>
</field>
</record>
</odoo>