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.

42 lines
1.9 KiB

  1. <odoo>
  2. <record model="ir.ui.view" id="validate_attendance_sheet_form">
  3. <field name="name">Validate Attendance Sheet</field>
  4. <field name="model">beesdoo.shift.sheet.validate</field>
  5. <field name="arch" type="xml">
  6. <form>
  7. <sheet>
  8. <separator string="Validation"/>
  9. <label string="Beware : a validated sheet cannot be edited anymore
  10. and you won't be able to add any latecomers.
  11. Emails will be sent to workers who did not attend their shift." />
  12. <field name="_barcode_scanned" widget="barcode_handler"/>
  13. <group col="1" string="Additional informations" >
  14. <field name="annotation" />
  15. <field name="feedback" />
  16. </group>
  17. <group>
  18. <field name="worker_nb_feedback" />
  19. </group>
  20. <field name="card_support" invisible="1" />
  21. <group string="Login"
  22. attrs="{'invisible': [('card_support', '=', True)]}"
  23. >
  24. <field name="user_id" />
  25. <field name="password" password="True"/>
  26. </group>
  27. <group string="Scan your card"
  28. attrs="{'invisible': [('card_support', '=', False)]}"
  29. >
  30. <field name="barcode" />
  31. </group>
  32. </sheet>
  33. <footer>
  34. <button type="object" name="validate_sheet"
  35. string="Confirm" class="oe_highlight" />
  36. or
  37. <button special="cancel" string="Cancel" />
  38. </footer>
  39. </form>
  40. </field>
  41. </record>
  42. </odoo>