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.

81 lines
3.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_partner_form_inherit_base" model="ir.ui.view">
  4. <field name="name">res.partner.view.form.inherit</field>
  5. <field name="model">res.partner</field>
  6. <field name="inherit_id" ref="base.view_partner_form" />
  7. <field name="arch" type="xml">
  8. <h1 position="after">
  9. <field name="ffck_network" />
  10. <label for="ffck_network" />
  11. </h1>
  12. <xpath expr="//notebook/page[1]" position="after">
  13. <page name="ffck" string="FFCK" attrs="{'invisible':[('ffck_network','!=',True)]}">
  14. <group name="ffck_main">
  15. <group name="ffck_common" class="o_label_nowrap">
  16. <separator colspan="2" string="Licensee information"
  17. attrs="{'invisible':[('is_company','=',True)]}" />
  18. <separator colspan="2" string="Structure information"
  19. attrs="{'invisible':[('is_company','=',False)]}" />
  20. <label for="partner_code" string="License code"
  21. attrs="{'invisible': [('is_company','=',True)]}" />
  22. <label for="partner_code" string="Structure code"
  23. attrs="{'invisible': [('is_company','=',False)]}" />
  24. <field name="partner_code" nolabel="1" readonly="1" />
  25. <!-- <field name="partner_code" groups="base.group_no_one" /> -->
  26. <!-- <field name="partner_code" nolabel="1" attrs="{'readonly':[('partner_code_editable','=',False)]}" />
  27. <field name="partner_code_editable" invisible="1" /> -->
  28. <field name="partner_scale" attrs="{'invisible': [('is_company','=',False)]}" />
  29. <field name="ffck_structure_type_id" widget="selection"
  30. attrs="{'invisible': [('is_company','=',False)]}" />
  31. </group>
  32. <group name="ffck_network" string="Network" class="o_label_nowrap"
  33. attrs="{'invisible': [('partner_scale', '=', '5')]}">
  34. <field name="ffck_partner_id" />
  35. <field name="crck_partner_id" attrs="{'invisible': [('partner_scale', '=', ['1', '2'])]}" />
  36. <field name="cdck_partner_id" attrs="{'invisible': [('partner_scale', 'not in', ['4', '5'])]}" />
  37. <field name="local_partner_id" attrs="{'invisible': [('partner_scale', '!=', '5')]}" />
  38. </group>
  39. </group>
  40. <group name="ffck_membership">
  41. <group string="Structure dates">
  42. <field name="first_membership_date" />
  43. </group>
  44. </group>
  45. </page>
  46. </xpath>
  47. </field>
  48. </record>
  49. <record id="view_res_partner_filter_inherit_base" model="ir.ui.view">
  50. <field name="name">res.partner.view.search.inherit</field>
  51. <field name="model">res.partner</field>
  52. <field name="inherit_id" ref="base.view_res_partner_filter" />
  53. <field name="arch" type="xml">
  54. <filter name="type_person" position="attributes">
  55. <attribute name="string">Persons</attribute>
  56. </filter>
  57. <filter name="type_company" position="attributes">
  58. <attribute name="string">Structures</attribute>
  59. </filter>
  60. <group name="group_by" position="inside">
  61. <separator />
  62. <filter name="partner_scale" string="Partner scale" domain="[]" context="{'group_by' : 'partner_scale'}" />
  63. <filter name="ffck_structure_type" string="Structure type"
  64. context="{'group_by' : 'ffck_structure_type_id'}" />
  65. </group>
  66. </field>
  67. </record>
  68. <menuitem
  69. id="ffck_contacts_config_menu"
  70. name="FFCK params"
  71. parent="contacts.res_partner_menu_config"
  72. sequence="4" />
  73. <record id="partner_multi_relation.menu_res_partner_relation" model="ir.ui.menu">
  74. <field name="parent_id" ref="contacts.res_partner_menu_config" />
  75. <field name="sequence">4</field>
  76. </record>
  77. </odoo>