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
42 lines
1.9 KiB
<odoo>
|
|
<record model="ir.ui.view" id="validate_attendance_sheet_form">
|
|
<field name="name">Validate Attendance Sheet</field>
|
|
<field name="model">beesdoo.shift.sheet.validate</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<sheet>
|
|
<separator string="Validation"/>
|
|
<label string="Beware : a validated sheet cannot be edited anymore
|
|
and you won't be able to add any latecomers.
|
|
Emails will be sent to workers who did not attend their shift." />
|
|
<field name="_barcode_scanned" widget="barcode_handler"/>
|
|
<group col="1" string="Additional informations" >
|
|
<field name="annotation" />
|
|
<field name="feedback" />
|
|
</group>
|
|
<group>
|
|
<field name="worker_nb_feedback" />
|
|
</group>
|
|
<field name="card_support" invisible="1" />
|
|
<group string="Login"
|
|
attrs="{'invisible': [('card_support', '=', True)]}"
|
|
>
|
|
<field name="user_id" />
|
|
<field name="password" password="True"/>
|
|
</group>
|
|
<group string="Scan your card"
|
|
attrs="{'invisible': [('card_support', '=', False)]}"
|
|
>
|
|
<field name="barcode" />
|
|
</group>
|
|
</sheet>
|
|
<footer>
|
|
<button type="object" name="validate_sheet"
|
|
string="Confirm" class="oe_highlight" />
|
|
or
|
|
<button special="cancel" string="Cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo>
|