Don't set date in set_state_done for issue1087

This commit is contained in:
Cédric Krier committed 2009-06-20 14:26:01 +02:00
1 parent 9c899bc567
commit 3dd6a0ff80
1 file changed
+3 -5
+3 -5
View File
@@ -90,11 +90,9 @@ class Inventory(ModelWorkflow, ModelSQL, ModelView):
for line in inventory.lines:
line_obj.create_move(cursor, user, line, context=context)
self.write(
cursor, user, inventory_id,
{'state': 'done',
'date': date_obj.today(cursor, user, context=context)},
context=context)
self.write(cursor, user, inventory_id, {
'state': 'done',
}, context=context)
def copy(self, cursor, user, ids, default=None, context=None):
date_obj = self.pool.get('ir.date')