This commit is contained in:
oscar alvarez 2022-06-28 10:36:35 -05:00
parent 9e4286c5f0
commit 62650981e9
4 changed files with 9 additions and 1 deletions

View File

@ -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):

View File

@ -1,5 +1,5 @@
[tryton]
version=6.0.1
version=6.0.2
depends:
party
company

View File

@ -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"/>

View File

@ -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>