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.

33 lines
1.8 KiB

8 years ago
  1. <odoo>
  2. <record model="ir.ui.view" id="subscribe_coop_wizard_view_form">
  3. <field name="name">Subscribre Cooperator</field>
  4. <field name="model">beesdoo.shift.subscribe</field>
  5. <field name="arch" type="xml">
  6. <form>
  7. <group attrs="{'invisible': [('unsubscribed', '=', False)]}">
  8. <separator string="Are you sure to unsubscribe this cooperator ?" />
  9. <field name="unsubscribed" invisible="1" />
  10. </group>
  11. <group attrs="{'invisible': [('unsubscribed', '=', True)]}">
  12. <field name="cooperator_id" />
  13. <field name="info_session" />
  14. <field name="info_session_date" />
  15. <field name="working_mode" />
  16. <field name="exempt_reason_id" attrs="{'invisible':[('working_mode', '!=', 'exempt')]}"/>
  17. <field name="shift_id" domain="[('remaining_worker', '>', 0)]" attrs="{'invisible': [('working_mode', '!=', 'regular')]}"/>
  18. <field name="super" />
  19. <field name="reset_counter" />
  20. <field name="reset_compensation_counter" /> <!-- TODO access right -->
  21. </group>
  22. <footer>
  23. <button type="object" name="subscribe"
  24. string="Confirm" class="oe_highlight" attrs="{'invisible': [('unsubscribed', '=', True)]}" />
  25. <button type="object" name="unsubscribe"
  26. string="Confirm" class="oe_highlight" attrs="{'invisible': [('unsubscribed', '=', False)]}" />
  27. or
  28. <button special="cancel" string="Cancel" />
  29. </footer>
  30. </form>
  31. </field>
  32. </record>
  33. </odoo>