Add dependency to company_work_time and use float_time attributes
This commit is contained in:
@@ -7,6 +7,7 @@ Prerequisites
|
||||
* Python 2.4 or later (http://www.python.org/)
|
||||
* trytond 0.0.x (http://www.tryton.org/)
|
||||
* trytond_company (http://www.tryton.org/)
|
||||
* trytond_company_work_time (http://www.tryton.org/)
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
@@ -59,6 +59,7 @@ Et les rapports:
|
||||
'ir',
|
||||
'res',
|
||||
'company',
|
||||
'company_work_time',
|
||||
],
|
||||
'xml': [
|
||||
'timesheet.xml',
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
<label name="date"/>
|
||||
<field name="date"/>
|
||||
<label name="hours"/>
|
||||
<field name="hours" widget="float_time"/>
|
||||
<field name="hours" widget="float_time"
|
||||
float_time="company_work_time"/>
|
||||
<label name="work"/>
|
||||
<field name="work"/>
|
||||
<label name="description"/>
|
||||
@@ -30,7 +31,8 @@
|
||||
<tree string="Timesheet Lines" editable="bottom">
|
||||
<field name="employee" select="1"/>
|
||||
<field name="date" select="1"/>
|
||||
<field name="hours" widget="float_time" sum="Hours"/>
|
||||
<field name="hours" widget="float_time"
|
||||
float_time="company_work_time" sum="Hours"/>
|
||||
<field name="work" select="1" width="300"/>
|
||||
<field name="description"/>
|
||||
</tree>
|
||||
@@ -104,7 +106,8 @@
|
||||
<![CDATA[
|
||||
<tree string="Hours per Employee">
|
||||
<field name="employee"/>
|
||||
<field name="hours" widget="float_time" sum="Hours"/>
|
||||
<field name="hours" widget="float_time"
|
||||
float_time="company_work_time" sum="Hours"/>
|
||||
</tree>
|
||||
]]>
|
||||
</field>
|
||||
@@ -119,7 +122,8 @@
|
||||
<field name="employee"/>
|
||||
</x>
|
||||
<y>
|
||||
<field name="hours" widget="float_time"/>
|
||||
<field name="hours" widget="float_time"
|
||||
float_time="company_work_time"/>
|
||||
</y>
|
||||
</graph>
|
||||
]]>
|
||||
@@ -191,7 +195,8 @@
|
||||
<field name="year" select="1"/>
|
||||
<field name="week" select="1"/>
|
||||
<field name="employee" select="1"/>
|
||||
<field name="hours" select="1" widget="float_time"/>
|
||||
<field name="hours" select="1" widget="float_time"
|
||||
float_time="company_work_time"/>
|
||||
</tree>
|
||||
]]>
|
||||
</field>
|
||||
@@ -219,7 +224,8 @@
|
||||
<field name="year" select="1"/>
|
||||
<field name="month" select="1"/>
|
||||
<field name="employee" select="1"/>
|
||||
<field name="hours" select="1" widget="float_time"/>
|
||||
<field name="hours" select="1" widget="float_time"
|
||||
float_time="company_work_time"/>
|
||||
</tree>
|
||||
]]>
|
||||
</field>
|
||||
|
||||
@@ -94,7 +94,8 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<![CDATA[
|
||||
<tree string="Works">
|
||||
<field name="name" select="1"/>
|
||||
<field name="hours" widget="float_time"/>
|
||||
<field name="hours" widget="float_time"
|
||||
float_time="company_work_time"/>
|
||||
</tree>
|
||||
]]>
|
||||
</field>
|
||||
@@ -128,7 +129,8 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name"/>
|
||||
</x>
|
||||
<y>
|
||||
<field name="hours" widget="float_time"/>
|
||||
<field name="hours" widget="float_time"
|
||||
float_time="company_work_time"/>
|
||||
</y>
|
||||
</graph>
|
||||
]]>
|
||||
|
||||
Reference in New Issue
Block a user