From 57e978aead6dfc34d993a52ba8b5f8eb625fac87 Mon Sep 17 00:00:00 2001 From: Korbinian Preisler Date: Sat, 20 Jun 2009 14:31:36 +0200 Subject: [PATCH] Fix effective_date of stock move from inventory for issue 1087 --- inventory.py | 1 + 1 file changed, 1 insertion(+) diff --git a/inventory.py b/inventory.py index 5ce221f722..5b8e6e622f 100644 --- a/inventory.py +++ b/inventory.py @@ -296,6 +296,7 @@ class InventoryLine(ModelSQL, ModelView): 'uom': line.uom.id, 'company': line.inventory.company.id, 'state': 'done', + 'effective_date': line.inventory.date, }, context=context) self.write(cursor, user, line.id, {'move': move_id}, context=context)