Browse Source

[UPD] b_shift : attendance sheet form view

pull/125/head
Elouan Le Bars 5 years ago
parent
commit
21334e08ac
  1. 22
      beesdoo_shift/views/attendance_sheet.xml
  2. 12
      beesdoo_shift/wizard/validate_attendance_sheet.xml

22
beesdoo_shift/views/attendance_sheet.xml

@ -129,7 +129,7 @@
<form create="false" delete="false"> <form create="false" delete="false">
<field name="_barcode_scanned" widget="barcode_handler"/> <field name="_barcode_scanned" widget="barcode_handler"/>
<header> <header>
<div>
<div class="oe_bold">
<field name="state" widget="statusbar" readonly="True" class="oe_inline"/> <field name="state" widget="statusbar" readonly="True" class="oe_inline"/>
<button type="object" <button type="object"
name="validate_with_checks" name="validate_with_checks"
@ -143,7 +143,7 @@
</div> </div>
<div class="oe_clear" /> <div class="oe_clear" />
</header> </header>
<sheet>
<sheet >
<div class="oe_button_box" name="button_box"> <div class="oe_button_box" name="button_box">
<button name="button_mark_as_read" type="object" <button name="button_mark_as_read" type="object"
class="oe_stat_button" icon="fa-check" class="oe_stat_button" icon="fa-check"
@ -158,22 +158,10 @@
<field name="active" widget="boolean_button" options='{"terminology": "archive"}'/> <field name="active" widget="boolean_button" options='{"terminology": "archive"}'/>
</button> </button>
</div> </div>
<div class="oe_title">
<h1>
<field name="time_slot" />
</h1>
</div>
<group>
<field name="max_worker_no" />
</group>
<label string="You will be able to write notes
about what you cannot encode here
when clicking on 'validate'."
/>
<separator string="Added workers" />
<field name="added_shift_ids"/>
<separator string="Expected workers" />
<separator string="Expected Shifts" style="position:relative;padding:0px;margin:0px;" />
<field name="expected_shift_ids" /> <field name="expected_shift_ids" />
<separator string="Added Shifts" style="position:relative;padding:0px;margin-top:15px;margin-bottom:0px;" />
<field name="added_shift_ids" />
<br/> <br/>
<group col="1" string="Feedback" <group col="1" string="Feedback"
groups="beesdoo_shift.group_shift_attendance"> groups="beesdoo_shift.group_shift_attendance">

12
beesdoo_shift/wizard/validate_attendance_sheet.xml

@ -5,15 +5,11 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form> <form>
<sheet> <sheet>
<separator string="Validation" style="position:absolute; top:0px;"/>
<field name="card_support" invisible="1" /> <field name="card_support" invisible="1" />
<field name="active_sheet" invisible="1" /> <field name="active_sheet" invisible="1" />
<field name="_barcode_scanned" widget="barcode_handler"/> <field name="_barcode_scanned" widget="barcode_handler"/>
<separator string="Validation"/>
<field name="warning_regular_workers"
readonly="1"
attrs="{'invisible': [('warning_regular_workers', '=', False)]}"
/>
<group col="1" string="Additional informations" >
<group col="1">
<field name="notes" /> <field name="notes" />
<field name="feedback" /> <field name="feedback" />
</group> </group>
@ -31,6 +27,10 @@
> >
<field name="barcode" /> <field name="barcode" />
</group> </group>
<field name="warning_regular_workers"
readonly="1"
attrs="{'invisible': [('warning_regular_workers', '=', False)]}"
/>
</sheet> </sheet>
<footer> <footer>
<button type="object" <button type="object"

Loading…
Cancel
Save