partner_extra_data_contract_view.xml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record id="res_partner_extra_data_contract" model="ir.ui.view">
  5. <field name="name">res.partner.extra.data.contract</field>
  6. <field name="model">account.analytic.account</field>
  7. <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
  8. <field name="arch" type="xml">
  9. <page string="Contract Information" position="after">
  10. <page name="affiliate" string="Afiliados">
  11. <group name="affiliate" string="Afiliados">
  12. <field name="affiliate_ids" nolabel="1" mode="tree">
  13. <tree string="Referencias Afiliados">
  14. <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' required="1"/>
  15. <field name="ruc"/>
  16. <field name="phone"/>
  17. <field name="mobile"/>
  18. </tree>
  19. </field>
  20. </group>
  21. </page>
  22. </page>
  23. </field>
  24. </record>
  25. <record id="tree_account_analytic_account_affiliate" model="ir.ui.view">
  26. <field name="name">account.analytic.account.affiliate.tree</field>
  27. <field name="model">account.analytic.account.affiliate</field>
  28. <field name="arch" type="xml">
  29. <tree string="Afiliados" editable="bottom">
  30. <field name="partner_id"/>
  31. <field name="ruc"/>
  32. <field name="mobile"/>
  33. <field name="phone"/>
  34. </tree>
  35. </field>
  36. </record>
  37. <record id="search_account_analytic_account_affiliate" model="ir.ui.view">
  38. <field name="name">account.analytic.account.affiliate.search</field>
  39. <field name="model">account.analytic.account.affiliate</field>
  40. <field name="arch" type="xml">
  41. <search string="Afiliados">
  42. <field name="partner_id"/>
  43. <field name="ruc"/>
  44. <field name="mobile"/>
  45. <field name="phone"/>
  46. </search>
  47. </field>
  48. </record>
  49. <record id="form_account_analytic_account_affiliate" model="ir.ui.view">
  50. <field name="name">account.analytic.account.affiliate.form</field>
  51. <field name="model">account.analytic.account.affiliate</field>
  52. <field name="arch" type="xml">
  53. <form string="Afiliados">
  54. <sheet>
  55. <group>
  56. <field name="partner_id"/>
  57. <field name="ruc"/>
  58. <field name="mobile"/>
  59. <field name="phone"/>
  60. </group>
  61. </sheet>
  62. </form>
  63. </field>
  64. </record>
  65. <record id="action_account_analytic_account_affiliate" model="ir.actions.act_window">
  66. <field name="name">Afiliados</field>
  67. <field name="type">ir.actions.act_window</field>
  68. <field name="res_model">account.analytic.account.affiliate</field>
  69. <field name="view_type">form</field>
  70. <field name="view_mode">tree,form</field>
  71. <field name="search_view_id" ref="search_account_analytic_account_affiliate"/>
  72. </record>
  73. </data>
  74. </openerp>