You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
4.3 KiB
95 lines
4.3 KiB
<?xml version="1.0"?>
|
|
<odoo>
|
|
|
|
<!-- Agreement Clauses Sequences-->
|
|
<record id="seq_agreement_clause" model="ir.sequence">
|
|
<field name="name">agreement_clause_sequencer</field>
|
|
<field name="code">agreement.clause</field>
|
|
<field name="prefix">0</field>
|
|
<field name="padding">1</field>
|
|
</record>
|
|
|
|
<!-- Agreement Clause List View-->
|
|
<record model="ir.ui.view" id="partner_agreement_clause_list_view">
|
|
<field name="name">Agreement Clause List</field>
|
|
<field name="model">agreement.clause</field>
|
|
<field name="arch" type="xml">
|
|
<tree default_order='agreement_id, clause_sequence'>
|
|
<field name="clause_sequence" widget="handle"/>
|
|
<field name="agreement_id"/>
|
|
<field name="name"/>
|
|
<field name="section_id"/>
|
|
<field name="content" widget="html"/>
|
|
<field name="active" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Agreement Clause Form View -->
|
|
<record model="ir.ui.view" id="partner_agreement_clause_form_view">
|
|
<field name="name">Agreement clause Form</field>
|
|
<field name="model">agreement.clause</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Agreements Clause Form">
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<label for="name" class="oe_edit_only" string="Clause Name"/>
|
|
<h1><field name="name"/></h1>
|
|
</div>
|
|
<group>
|
|
<field name="agreement_id"/>
|
|
<field name="section_id" domain="[('agreement_id', '=', agreement_id)]"/>
|
|
<field name="content" widget="html"/>
|
|
</group>
|
|
<notebook>
|
|
<page string="Dynamic Placeholder Generator">
|
|
THIS IS UNDER DEVELOPEMENT: The purpose of this section is to be able to create dynamic fields inside your content.
|
|
<group>
|
|
<field name="model_id"/>
|
|
<field name="model_object_field_id" domain="[('model_id','=',model_id),('ttype','!=','one2many'),('ttype','!=','many2many')]"/>
|
|
<field name="sub_object_id" readonly="1"/>
|
|
<field name="sub_model_object_field_id" domain="[('model_id','=',sub_object_id),('ttype','!=','one2many'),('ttype','!=','many2many')]" attrs="{'readonly':[('sub_object_id','=',False)],'required':[('sub_object_id','!=',False)]}"/>
|
|
<field name="null_value"/>
|
|
<field name="copyvalue"/>
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
Sequence #<field name="clause_sequence"/>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Agreement Clause Search View -->
|
|
<record model="ir.ui.view" id="agreement_clause_search_view">
|
|
<field name="name">Agreement Clause Search</field>
|
|
<field name="model">agreement.clause</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Agreement Clause Search">
|
|
<filter name="group_agreement" icon="terp-partner" context="{'group_by':'agreement_id'}"/>
|
|
<filter name="group_section" icon="terp-partner" context="{'group_by':'section_id'}"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Agreement Clause Pivot View -->
|
|
<record model="ir.ui.view" id="agreement_clause_pivot_view">
|
|
<field name="name">Agreement Clause Pivot</field>
|
|
<field name="model">agreement.clause</field>
|
|
<field name="arch" type="xml">
|
|
<pivot string="Agreement Clause Pivot">
|
|
<field name="agreement_id" type="row"/>
|
|
<field name="section_id" type="row"/>
|
|
<field name="name" type="row"/>
|
|
</pivot>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Actions opening views on models -->
|
|
<record model="ir.actions.act_window" id="partner_agreement_action_clause">
|
|
<field name="name">Agreement Clauses</field>
|
|
<field name="res_model">agreement.clause</field>
|
|
<field name="view_mode">tree,pivot,form</field>
|
|
</record>
|
|
|
|
</odoo>
|