[FIX] sale orders dates

bzr revid: nel@tinyerp.com-20100616111500-hm9u1np13tt8nlnn
This commit is contained in:
nel@tinyerp.com
2010-06-16 13:15:00 +02:00
parent 80fcbdb4d6
commit 39adfe070f
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -48,7 +48,8 @@ class sale_order_dates(osv.osv):
dt=DateTime.strptime(order.date_order, '%Y-%m-%d') + DateTime.RelativeDateTime(days=line.delay or 0.0)
dt_s = dt.strftime('%Y-%m-%d')
dates_list.append(dt_s)
res[order.id] = min(dates_list)
if dates_list:
res[order.id] = min(dates_list)
return res
_columns = {
+1
View File
@@ -322,6 +322,7 @@
<field name="date_planned" string="Date"/>
<field name="date_expected" string="Date Expected"/>
<field name="state"/>
<button name="action_done" states="confirmed,assigned" string="Done" type="object" icon="gtk-jump-to"/>
</tree>
</field>
</record>