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.

35 lines
1.9 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="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. <button type="object" name="subscribe"
  26. string="Confirm" class="oe_highlight" attrs="{'invisible': [('unsubscribed', '=', True)]}" />
  27. <button type="object" name="unsubscribe"
  28. string="Confirm" class="oe_highlight" attrs="{'invisible': [('unsubscribed', '=', False)]}" />
  29. or
  30. <button special="cancel" string="Cancel" />
  31. </footer>
  32. </form>
  33. </field>
  34. </record>
  35. </odoo>