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.

34 lines
1.9 KiB

7 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="irregular_start_date" attrs="{'invisible': [('working_mode', '!=', 'irregular')]}" />
  19. <field name="super" />
  20. <field name="reset_counter" />
  21. <field name="reset_compensation_counter" /> <!-- TODO access right -->
  22. </group>
  23. <footer>
  24. <button type="object" name="subscribe"
  25. string="Confirm" class="oe_highlight" attrs="{'invisible': [('unsubscribed', '=', True)]}" />
  26. <button type="object" name="unsubscribe"
  27. string="Confirm" class="oe_highlight" attrs="{'invisible': [('unsubscribed', '=', False)]}" />
  28. or
  29. <button special="cancel" string="Cancel" />
  30. </footer>
  31. </form>
  32. </field>
  33. </record>
  34. </odoo>