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.
|
|
<?xml version="1.0" encoding="utf-8"?> <odoo>
<!-- 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 string="Clauses" default_order='agreement_id, sequence'> <field name="sequence" widget="handle"/> <field name="name"/> <field name="title"/> <field name="agreement_id"/> <field name="section_id"/> <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="Clause"> <sheet> <div class="oe_button_box" name="button_box"> <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"> <field name="active" widget="boolean_button" options="{"terminology": "archive"}"/> </button> </div> <div class="oe_title"> <label for="name" class="oe_edit_only"/> <h1><field name="name"/></h1> </div> <group> <group> <field name="title"/> <field name="agreement_id"/> <field name="section_id" domain="[('agreement_id', '=', agreement_id)]"/> </group> <group> <field name="sequence"/> </group> </group> <field name="content" widget="html"/> <group class="oe_edit_only"> <field name="field_domain" widget="domain" nolabel="1" options="{'model': 'agreement.clause', 'partial_use': True}" /> <group> <field name="default_value"/> <field name="copyvalue"/> </group> <p> This section (on the left) allows you to add dynamic fields inside the content. <ol> <li>Select the field using the popup</li> <li>Enter the default value if the field is empty</li> <li>Copy and paste the placeholder expression in the content</li> </ol> </p> </group> </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>
<!-- Actions opening views on models --> <record model="ir.actions.act_window" id="partner_agreement_action_clause"> <field name="name">Clauses</field> <field name="res_model">agreement.clause</field> <field name="view_mode">tree,form</field> </record>
</odoo>
|