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.

39 lines
2.3 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 ?" 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="nb_shifts" attrs="{'invisible': True}"/>
  20. <field name="irregular_start_date" attrs="{'invisible': [('working_mode', '!=', 'irregular')]}" />
  21. <field name="super" />
  22. <field name="reset_counter" />
  23. <field name="reset_compensation_counter" /> <!-- TODO access right -->
  24. </group>
  25. <footer>
  26. <div class="alert alert-danger" role="alert" attrs="{'invisible': [('nb_shifts', '&lt;', 2)]}">
  27. Current worker has more than one shift, subscribing him to a new shift will erase all previous shifts.
  28. </div>
  29. <button type="object" name="subscribe"
  30. string="Confirm" class="oe_highlight" attrs="{'invisible': [('unsubscribed', '=', True)]}" />
  31. <button type="object" name="unsubscribe"
  32. string="Confirm" class="oe_highlight" attrs="{'invisible': [('unsubscribed', '=', False)]}" />
  33. or
  34. <button special="cancel" string="Cancel" />
  35. </footer>
  36. </form>
  37. </field>
  38. </record>
  39. </odoo>