Update to new effort_duration

issue4026
review9951002
This commit is contained in:
Cédric Krier
2015-02-09 23:03:27 +01:00
parent 2c54ec4dc3
commit 6f92a3d64d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/notebook/page[@id='general']/field[@name='effort']"
<xpath expr="/form/notebook/page[@id='general']/field[@name='effort_duration']"
position="after">
<label name="product"/>
<field name="product"/>
+1 -1
View File
@@ -94,7 +94,7 @@ class Work:
def getter(work):
if work.list_price:
return work.list_price * Decimal(str(work.effort))
return work.list_price * Decimal(str(work.effort_hours))
else:
return Decimal(0)