[11.0][RM] agreement_maintenance module

This commit is contained in:
Bhavesh Odedra
2018-12-11 10:39:31 +05:30
committed by Olga Marco
parent 4fff7d5553
commit 44e668c4ff
20 changed files with 0 additions and 962 deletions

View File

@@ -1,27 +0,0 @@
<?xml version="1.0"?>
<odoo>
<!-- Agreement Form View -->
<record model="ir.ui.view" id="agreement_form_view">
<field name="name">Agreement Form</field>
<field name="model">agreement</field>
<field name="inherit_id" ref="agreement.partner_agreement_form_view"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page[@name='products']/group"
position="after">
<group string="Service Profiles">
<field name="serviceprofile_ids" nolabel="1">
<tree>
<field name="name"/>
<field name="profile_type"/>
<field name="equipment_id"/>
<field name="product_id"/>
<field name="fsm_location_id"/>
</tree>
</field>
</group>
</xpath>
</field>
</record>
</odoo>

View File

@@ -1,63 +0,0 @@
<?xml version="1.0"?>
<odoo>
<!-- Agreement Service Profile List View-->
<record model="ir.ui.view" id="agreement_serviceprofile_list_view">
<field name="name">Agreement Service Profile List</field>
<field name="model">agreement.serviceprofile</field>
<field name="arch" type="xml">
<tree string="Service Profiles"
create="false" edit="false">
<field name="name"/>
<field name="profile_type"/>
<field name="equipment_id"/>
<field name="product_id"/>
<field name="fsm_location_id"/>
<field name="agreement_id"/>
</tree>
</field>
</record>
<!-- Agreement Service Profile Form View -->
<record model="ir.ui.view" id="agreement_serviceprofile_form_view">
<field name="name">Agreement Service Profile Form</field>
<field name="model">agreement.serviceprofile</field>
<field name="arch" type="xml">
<form string="Service Profile"
create="false" edit="false">
<sheet>
<div class="oe_title">
<h1>
<field name="name" placeholder="Name"/>
</h1>
</div>
<group>
<group>
<field name="profile_type"/>
<field name="equipment_id"
attrs="{'invisible': [('profile_type', '!=', 'equipment')]}"/>
<field name="equipment_category_id"
attrs="{'invisible': [('profile_type', '!=', 'equipment')]}"/>
<field name="product_id"
attrs="{'invisible': [('profile_type', '!=', 'product')]}"/>
</group>
<group>
<field name="fsm_location_id"/>
</group>
</group>
<group string="Description">
<field name="description" nolabel="1"/>
</group>
</sheet>
</form>
</field>
</record>
<!-- Actions opening views on models -->
<record model="ir.actions.act_window" id="agreement_action_serviceprofile">
<field name="name">Agreement Service Profile</field>
<field name="res_model">agreement.serviceprofile</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>

View File

@@ -1,11 +0,0 @@
<?xml version="1.0"?>
<odoo>
<!-- Master Data -->
<menuitem name="Service Profiles"
id="agreement_service_profiles"
sequence="30"
parent="agreement.agreement_masterdata"
action="agreement_action_serviceprofile"/>
</odoo>

View File

@@ -1,17 +0,0 @@
<?xml version="1.0"?>
<odoo>
<record model="ir.ui.view" id="product_template_serviceprofile_form_view">
<field name="name">product.template.common.serviceprofile.ok.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<div name="options" position="inside">
<div>
<field name="serviceprofile_ok"/>
<label for="serviceprofile_ok"/>
</div>
</div>
</field>
</record>
</odoo>