res_partner.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <act_window
  5. id="action_open_study_feature"
  6. name="Estudios"
  7. res_model="study.feature"
  8. view_type="form"
  9. view_mode="tree,form"
  10. domain="[('partner_id', '=', active_id)]"/>
  11. <record id="res_partner_study_feature_form" model="ir.ui.view">
  12. <field name="name">res.partner.study.feature.form</field>
  13. <field name="model">res.partner</field>
  14. <field name="inherit_id" ref="base.view_partner_form"/>
  15. <field name="arch" type="xml">
  16. <field name="category_id" position="after">
  17. <field name="is_medic" class="oe_inline" attrs="{'invisible': [('is_company','=', True)]}"/><label for="is_medic" string="¿Es un Medico?" attrs="{'invisible': [('is_company','=', True)]}"/>
  18. </field>
  19. <field name="title" position="after">
  20. <field name="medic" attrs="{'invisible': [('is_medic','=', True)],'required': [('is_medic','=', False)]}"/>
  21. </field>
  22. <div name="buttons" position="after">
  23. <div class="oe_right oe_button_box">
  24. <button
  25. class="oe_inline oe_stat_button"
  26. type="action"
  27. name="%(action_open_study_feature)d"
  28. icon="fas fa-stethoscope"
  29. attrs="{'invisible': [('customer', '=', False)]}"
  30. context="{'default_partner_id': id}">
  31. <field name="study_feature_count" string="Estudios" widget="statinfo" />
  32. </button>
  33. </div>
  34. </div>
  35. </field>
  36. </record>
  37. </data>
  38. </openerp>