Fix
This commit is contained in:
parent
9e4286c5f0
commit
62650981e9
5
shift.py
5
shift.py
|
@ -19,6 +19,11 @@ class ShiftKind(ModelSQL, ModelView):
|
|||
end = fields.Time('End', required=True)
|
||||
total_time = fields.Function(fields.Float('Total Time'), 'get_total_time')
|
||||
legal_work_time = fields.Float('Legal Work Time', digits=(2, 2))
|
||||
mode = fields.Selection([
|
||||
('work', 'Work'),
|
||||
('event', 'Event'),
|
||||
('rest', 'Rest'),
|
||||
], 'Mode', readonly=True)
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=6.0.1
|
||||
version=6.0.2
|
||||
depends:
|
||||
party
|
||||
company
|
||||
|
|
|
@ -10,6 +10,8 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<field name="start"/>
|
||||
<label name="end"/>
|
||||
<field name="end"/>
|
||||
<label name="mode"/>
|
||||
<field name="mode"/>
|
||||
<label name="legal_work_time"/>
|
||||
<field name="legal_work_time"/>
|
||||
<label name="total_time"/>
|
||||
|
|
|
@ -6,6 +6,7 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<field name="name" expand="1"/>
|
||||
<field name="start" expand="1"/>
|
||||
<field name="end" expand="1"/>
|
||||
<field name="mode" expand="1"/>
|
||||
<field name="legal_work_time"/>
|
||||
<field name="total_time"/>
|
||||
</tree>
|
||||
|
|
Loading…
Reference in New Issue