res_partner.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="dikasa_partner_form">
  5. <field name="name">dikasa_partner_form</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form"/>
  8. <field name="arch" type="xml">
  9. <field name="website" position="before">
  10. <field name="zone_id"/>
  11. </field>
  12. <field name="website" position="after">
  13. <field name="supplier_type" attrs="{'invisible':[('supplier','!=',True)]}"/>
  14. </field>
  15. </field>
  16. </record>
  17. <record model="ir.ui.view" id="dikasa_partner_form2">
  18. <field name="name">dikasa_partner_form2</field>
  19. <field name="model">res.partner</field>
  20. <field name="inherit_id" ref="account.view_partner_property_form"/>
  21. <field name="arch" type="xml">
  22. <field name="credit_limit" position="after">
  23. <field name="check_limit" />
  24. <field name="morosidad" />
  25. <field name="customer_categ"/>
  26. </field>
  27. </field>
  28. </record>
  29. <!-- TREE VIEW -->
  30. <record model="ir.ui.view" id="dikasa_partner_tree">
  31. <field name="name">dikasa_partner_tree</field>
  32. <field name="model">res.partner</field>
  33. <field name="inherit_id" ref="base.view_partner_tree"/>
  34. <field name="arch" type="xml">
  35. <xpath expr="//tree[@string='Contacts']" position="replace" >
  36. <tree string="Contacts">
  37. <field name="display_name"/>
  38. <field name="ruc"/>
  39. <field name="function" invisible="1"/>
  40. <field name="phone"/>
  41. <field name="email"/>
  42. <field name="zone_id"/>
  43. <field name="customer_categ"/>
  44. <field name="state_id"/>
  45. <field name="user_id" invisible="1"/>
  46. <field name="is_company" invisible="1"/>
  47. <field name="country_id"/>
  48. <field name="parent_id" invisible="1"/>
  49. </tree>
  50. </xpath>
  51. </field>
  52. </record>
  53. </data>
  54. </openerp>