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.

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