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.

36 lines
2.0 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 ?" colspan="2"/>
  9. <field name="resigning" />
  10. <field name="unsubscribed" invisible="1" />
  11. </group>
  12. <group attrs="{'invisible': [('unsubscribed', '=', True)]}">
  13. <field name="cooperator_id" />
  14. <field name="info_session" />
  15. <field name="info_session_date" />
  16. <field name="working_mode" />
  17. <field name="exempt_reason_id" attrs="{'invisible':[('working_mode', '!=', 'exempt')]}"/>
  18. <field name="shift_id" domain="[('remaining_worker', '>', 0)]" attrs="{'invisible': [('working_mode', '!=', 'regular')]}"/>
  19. <field name="irregular_start_date" attrs="{'invisible': [('working_mode', '!=', 'irregular')]}" />
  20. <field name="super" />
  21. <field name="reset_counter" />
  22. <field name="reset_compensation_counter" /> <!-- TODO access right -->
  23. </group>
  24. <footer>
  25. <field name="nb_shifts_warning" class="alert-danger"/>
  26. <button type="object" name="subscribe"
  27. string="Confirm" class="oe_highlight" attrs="{'invisible': [('unsubscribed', '=', True)]}" />
  28. <button type="object" name="unsubscribe"
  29. string="Confirm" class="oe_highlight" attrs="{'invisible': [('unsubscribed', '=', False)]}" />
  30. or
  31. <button special="cancel" string="Cancel" />
  32. </footer>
  33. </form>
  34. </field>
  35. </record>
  36. </odoo>