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.

44 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_create_subscription" model="ir.ui.view">
  5. <field name="name">Create Subscription</field>
  6. <field name="model">partner.create.subscription</field>
  7. <field name="arch" type="xml">
  8. <form string="Create Subscription">
  9. <p class="oe_grey">
  10. Subscription request will be created with data from the partner.
  11. </p>
  12. <group>
  13. <field name="is_company" invisible="True"/>
  14. <field name="cooperator" invisible="True"/>
  15. <field name="representative_name" attrs="{'invisible':[('is_company','=',False)],'required':[('is_company','=',True)]}"/>
  16. <field name="representative_email" attrs="{'invisible':[('is_company','=',False)],'required':[('is_company','=',True)]}"/>
  17. <field name="email"/>
  18. <field name="register_number"/>
  19. <field name="bank_account"/>
  20. <field name="share_product" widget="selection"/>
  21. <field name="share_qty"/>
  22. <field name="share_unit_price"/>
  23. <field name="subscription_amount"/>
  24. </group>
  25. <footer>
  26. <button name="create_subscription" string="Create Subscription" type="object" class="btn-primary"/>
  27. <button string="Cancel" class="btn-default" special="cancel"/>
  28. </footer>
  29. </form>
  30. </field>
  31. </record>
  32. <record id="action_view_create_subscription" model="ir.actions.act_window">
  33. <field name="name">Create Subscription</field>
  34. <field name="type">ir.actions.act_window</field>
  35. <field name="res_model">partner.create.subscription</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" eval="[(4,ref('easy_my_coop.group_energiris_user'))]"/>
  40. </record>
  41. </data>
  42. </openerp>