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.

98 lines
3.8 KiB

14 years ago
14 years ago
14 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!--
  5. =======================
  6. Partner Identification Number Categories
  7. =======================
  8. -->
  9. <record id="view_partner_id_category_form" model="ir.ui.view">
  10. <field name="name">res.partner.id_category.form</field>
  11. <field name="model">res.partner.id_category</field>
  12. <field name="type">form</field>
  13. <field name="arch" type="xml">
  14. <form string="Partner Identification Categories">
  15. <field name="name" select="1"/>
  16. <field name="code" select="1"/>
  17. </form>
  18. </field>
  19. </record>
  20. <record id="view_partner_id_category_tree" model="ir.ui.view">
  21. <field name="name">res.partner.id_category.tree</field>
  22. <field name="model">res.partner.id_category</field>
  23. <field name="type">tree</field>
  24. <field name="arch" type="xml">
  25. <tree string="Partner Identification Categories">
  26. <field name="name"/>
  27. <field name="code"/>
  28. </tree>
  29. </field>
  30. </record>
  31. <record id="action_partner_id_category" model="ir.actions.act_window">
  32. <field name="name">Partner ID Categories</field>
  33. <field name="res_model">res.partner.id_category</field>
  34. <field name="view_type">form</field>
  35. <field name="view_mode">tree,form</field>
  36. </record>
  37. <menuitem
  38. action="action_partner_id_category"
  39. id="menu_partner_id_category"
  40. parent="base.menu_config_address_book"/>
  41. <!--
  42. ==============================================
  43. Modification of Partner - Adding Tab for Idenification Numbers
  44. ==============================================
  45. -->
  46. <record model="ir.ui.view" id="view_partner_form">
  47. <field name="name">res.partner.form.id_number</field>
  48. <field name="model">res.partner</field>
  49. <field name="inherit_id" ref="base.view_partner_form"/>
  50. <field name="priority" eval="10"/>
  51. <field name="arch" type="xml">
  52. <notebook>
  53. <page string="Ident. Numbers">
  54. <field name="id_numbers" colspan="4" nolabel="1" widget="one2many_list"/>
  55. </page>
  56. </notebook>
  57. </field>
  58. </record>
  59. <record id="view_partner_id_numbers_form" model="ir.ui.view">
  60. <field name="name">res.partner.id_number.form</field>
  61. <field name="model">res.partner.id_number</field>
  62. <field name="type">form</field>
  63. <field name="arch" type="xml">
  64. <form string="Partner ID Numbers">
  65. <field name="category_id" select="1"/>
  66. <field name="name" select="1"/>
  67. <field name="partner_issued_id" select="1"/>
  68. <field name="date_issued" select="1"/>
  69. <field name="valid_from" select="1"/>
  70. <field name="valid_until" select="1"/>
  71. <separator colspan="4" string="Notes"/>
  72. <field name="comment" colspan="4" nolabel="1"/>
  73. </form>
  74. </field>
  75. </record>
  76. <record id="view_partner_id_numbers_tree" model="ir.ui.view">
  77. <field name="name">res.partner.id_number.tree</field>
  78. <field name="model">res.partner.id_number</field>
  79. <field name="type">tree</field>
  80. <field name="arch" type="xml">
  81. <tree string="Partner ID Numbers">
  82. <field name="category_id" select="1"/>
  83. <field name="name" select="1"/>
  84. <field name="partner_issued_id" select="1"/>
  85. <field name="date_issued" select="1"/>
  86. <field name="valid_from" select="1"/>
  87. <field name="valid_until" select="1"/>
  88. </tree>
  89. </field>
  90. </record>
  91. <record id="action_partner_id_numbers_form" model="ir.actions.act_window">
  92. <field name="name">Partner ID Numbers</field>
  93. <field name="res_model">res.partner.id_number</field>
  94. <field name="view_type">form</field>
  95. <field name="view_mode">tree,form</field>
  96. </record>
  97. </data>
  98. </openerp>