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.

144 lines
4.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data noupdate="0">
  4. <record id="view_res_partner_revision_tree" model="ir.ui.view">
  5. <field name="name">res.partner.revision.tree</field>
  6. <field name="model">res.partner.revision</field>
  7. <field name="arch" type="xml">
  8. <tree string="Partner Revision">
  9. <field name="partner_id"/>
  10. <field name="date"/>
  11. <field name="state"/>
  12. </tree>
  13. </field>
  14. </record>
  15. <record id="view_res_partner_revision_form" model="ir.ui.view">
  16. <field name="name">res.partner.revision.form</field>
  17. <field name="model">res.partner.revision</field>
  18. <field name="arch" type="xml">
  19. <form string="Partner Revision">
  20. <header>
  21. <button name="apply"
  22. string="Apply pending changes" type="object"
  23. class="oe_highlight"
  24. states="draft"/>
  25. <button name="cancel"
  26. string="Reject pending changes" type="object"
  27. class="oe_highlight"
  28. states="draft"/>
  29. <field name="state" widget="statusbar"
  30. statusbar_visible="draft,done"/>
  31. </header>
  32. <sheet string="Partner Revision">
  33. <group>
  34. <field name="partner_id"/>
  35. <field name="date"/>
  36. </group>
  37. <group string="Changes">
  38. <field name="change_ids" nolabel="1">
  39. <tree string="Partner Revision Change">
  40. <field name="field_id" context="{'no_open': true}"/>
  41. <field name="field_type" invisible="1"/>
  42. <field name="current_value_display"/>
  43. <field name="new_value_display"/>
  44. <field name="state"/>
  45. <button name="apply"
  46. string="Apply" type="object"
  47. icon="gtk-apply"
  48. states="draft"/>
  49. <button name="cancel"
  50. string="Reject" type="object"
  51. icon="gtk-close"
  52. states="draft"/>
  53. </tree>
  54. </field>
  55. </group>
  56. <group>
  57. <field name="note"/>
  58. </group>
  59. </sheet>
  60. </form>
  61. </field>
  62. </record>
  63. <record id="view_res_partner_revision_change_form" model="ir.ui.view">
  64. <field name="name">res.partner.revision.change.form</field>
  65. <field name="model">res.partner.revision.change</field>
  66. <field name="arch" type="xml">
  67. <form string="Partner Revision Change">
  68. <header>
  69. <button name="apply"
  70. string="Apply" type="object"
  71. class="oe_highlight"
  72. states="draft"/>
  73. <button name="cancel"
  74. string="Reject" type="object"
  75. class="oe_highlight"
  76. states="draft"/>
  77. <field name="state" widget="statusbar"
  78. statusbar_visible="draft,done"/>
  79. </header>
  80. <sheet>
  81. <group>
  82. <field name="field_id" options="{'no_open': true}"/>
  83. <field name="field_type" invisible="1"/>
  84. <!-- attrs are added in fields_view_get -->
  85. <field name="current_value_char"/>
  86. <field name="new_value_char"/>
  87. <field name="current_value_date"/>
  88. <field name="new_value_date"/>
  89. <field name="current_value_datetime"/>
  90. <field name="new_value_datetime"/>
  91. <field name="current_value_float"/>
  92. <field name="new_value_float"/>
  93. <field name="current_value_integer"/>
  94. <field name="new_value_integer"/>
  95. <field name="current_value_text"/>
  96. <field name="new_value_text"/>
  97. <field name="current_value_boolean"/>
  98. <field name="new_value_boolean"/>
  99. <field name="current_value_reference"/>
  100. <field name="new_value_reference"/>
  101. </group>
  102. </sheet>
  103. </form>
  104. </field>
  105. </record>
  106. <record id="view_res_partner_revision_search" model="ir.ui.view">
  107. <field name="name">res.partner.revision.search</field>
  108. <field name="model">res.partner.revision</field>
  109. <field name="arch" type="xml">
  110. <search string="Partner Revision">
  111. <field name="partner_id"/>
  112. </search>
  113. </field>
  114. </record>
  115. <record model="ir.actions.act_window" id="action_res_partner_revision_view">
  116. <field name="name">Partner Revision</field>
  117. <field name="type">ir.actions.act_window</field>
  118. <field name="res_model">res.partner.revision</field>
  119. <field name="view_type">form</field>
  120. <field name="view_mode">tree,form</field>
  121. <field name="search_view_id" ref="view_res_partner_revision_search"/>
  122. </record>
  123. <menuitem id="menu_res_partner_revision"
  124. parent="menu_revision"
  125. sequence="20"
  126. action="action_res_partner_revision_view"/>
  127. </data>
  128. </openerp>