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.

45 lines
2.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_update_partner_info" model="ir.ui.view">
  5. <field name="name">Update Cooperator Info</field>
  6. <field name="model">partner.update.info</field>
  7. <field name="arch" type="xml">
  8. <form string="Update Cooperator Info">
  9. <p class="oe_grey">
  10. Update Cooperator Info.
  11. </p>
  12. <group>
  13. <field name="is_company" invisible="True"/>
  14. <field name="all"/>
  15. <field name="birthdate"/>
  16. <field name="legal_form"/>
  17. <field name="representative_function"/>
  18. <field name="cooperator" readonly="True"/>
  19. <field name="register_number"
  20. attrs="{'required':['|', ('is_company', '=', True), ('all', '=', False)], 'invisible':[('is_company', '=', False)]}"/>
  21. </group>
  22. <footer>
  23. <button name="update" string="Update Info" type="object"
  24. class="btn-primary"/>
  25. <button string="Cancel" class="btn-default"
  26. special="cancel"/>
  27. </footer>
  28. </form>
  29. </field>
  30. </record>
  31. <record id="action_view_update_partner_info"
  32. model="ir.actions.act_window">
  33. <field name="name">Update Cooperator Info</field>
  34. <field name="type">ir.actions.act_window</field>
  35. <field name="res_model">partner.update.info</field>
  36. <field name="view_type">form</field>
  37. <field name="view_mode">form</field>
  38. <field name="target">new</field>
  39. <field name="groups_id"
  40. eval="[(4,ref('easy_my_coop.group_easy_my_coop_user'))]"/>
  41. </record>
  42. </data>
  43. </openerp>