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

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. <?xml version="1.0"?>
  2. <odoo>
  3. <!-- Agreement Clauses Sequences-->
  4. <record id="seq_agreement_clause" model="ir.sequence">
  5. <field name="name">agreement_clause_sequencer</field>
  6. <field name="code">agreement.clause</field>
  7. <field name="prefix">0</field>
  8. <field name="padding">1</field>
  9. </record>
  10. <!-- Agreement Clause List View-->
  11. <record model="ir.ui.view" id="partner_agreement_clause_list_view">
  12. <field name="name">Agreement Clause List</field>
  13. <field name="model">agreement.clause</field>
  14. <field name="arch" type="xml">
  15. <tree default_order='agreement_id, clause_sequence'>
  16. <field name="clause_sequence" widget="handle"/>
  17. <field name="agreement_id"/>
  18. <field name="name"/>
  19. <field name="section_id"/>
  20. <field name="content" widget="html"/>
  21. <field name="active" invisible="1"/>
  22. </tree>
  23. </field>
  24. </record>
  25. <!-- Agreement Clause Form View -->
  26. <record model="ir.ui.view" id="partner_agreement_clause_form_view">
  27. <field name="name">Agreement clause Form</field>
  28. <field name="model">agreement.clause</field>
  29. <field name="arch" type="xml">
  30. <form string="Agreements Clause Form">
  31. <sheet>
  32. <div class="oe_title">
  33. <label for="name" class="oe_edit_only" string="Clause Name"/>
  34. <h1><field name="name"/></h1>
  35. </div>
  36. <group>
  37. <field name="agreement_id"/>
  38. <field name="section_id" domain="[('agreement_id', '=', agreement_id)]"/>
  39. <field name="content" widget="html"/>
  40. </group>
  41. <notebook>
  42. <page string="Dynamic Placeholder Generator">
  43. THIS IS UNDER DEVELOPEMENT: The purpose of this section is to be able to create dynamic fields inside your content.
  44. <group>
  45. <field name="model_id"/>
  46. <field name="model_object_field_id" domain="[('model_id','=',model_id),('ttype','!=','one2many'),('ttype','!=','many2many')]"/>
  47. <field name="sub_object_id" readonly="1"/>
  48. <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)]}"/>
  49. <field name="null_value"/>
  50. <field name="copyvalue"/>
  51. </group>
  52. </page>
  53. </notebook>
  54. Sequence #<field name="clause_sequence"/>
  55. </sheet>
  56. </form>
  57. </field>
  58. </record>
  59. <!-- Agreement Clause Search View -->
  60. <record model="ir.ui.view" id="agreement_clause_search_view">
  61. <field name="name">Agreement Clause Search</field>
  62. <field name="model">agreement.clause</field>
  63. <field name="arch" type="xml">
  64. <search string="Agreement Clause Search">
  65. <filter name="group_agreement" icon="terp-partner" context="{'group_by':'agreement_id'}"/>
  66. <filter name="group_section" icon="terp-partner" context="{'group_by':'section_id'}"/>
  67. </search>
  68. </field>
  69. </record>
  70. <!-- Agreement Clause Pivot View -->
  71. <record model="ir.ui.view" id="agreement_clause_pivot_view">
  72. <field name="name">Agreement Clause Pivot</field>
  73. <field name="model">agreement.clause</field>
  74. <field name="arch" type="xml">
  75. <pivot string="Agreement Clause Pivot">
  76. <field name="agreement_id" type="row"/>
  77. <field name="section_id" type="row"/>
  78. <field name="name" type="row"/>
  79. </pivot>
  80. </field>
  81. </record>
  82. <!-- Actions opening views on models -->
  83. <record model="ir.actions.act_window" id="partner_agreement_action_clause">
  84. <field name="name">Agreement Clauses</field>
  85. <field name="res_model">agreement.clause</field>
  86. <field name="view_mode">tree,pivot,form</field>
  87. </record>
  88. </odoo>