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.

47 lines
2.0 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. <field name="_barcode_scanned" widget="barcode_handler"/>
  10. <field name="warning_regular_workers"
  11. readonly="1"
  12. attrs="{'invisible': [('warning_regular_workers', '=', False)]}"
  13. />
  14. <group col="1" string="Additional informations" >
  15. <field name="notes" />
  16. <field name="feedback" />
  17. </group>
  18. <group>
  19. <field name="worker_nb_feedback"/>
  20. </group>
  21. <field name="card_support" invisible="1" />
  22. <group string="Login"
  23. attrs="{'invisible': [('card_support', '=', True)]}"
  24. >
  25. <field name="login" />
  26. <field name="password" password="True"/>
  27. </group>
  28. <group string="Scan your card"
  29. attrs="{'invisible': [('card_support', '=', False)]}"
  30. >
  31. <field name="barcode" />
  32. </group>
  33. </sheet>
  34. <footer>
  35. <button type="object"
  36. name="validate_sheet"
  37. string="Validate"
  38. class="oe_highlight"
  39. />
  40. <button type="object" name="save"
  41. string="Save" />
  42. <button special="cancel" string="Cancel" />
  43. </footer>
  44. </form>
  45. </field>
  46. </record>
  47. </odoo>