From b38f7ba28dc5d9779689eb886f03425be5dd145a Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Fri, 3 Aug 2012 14:59:37 +0200 Subject: [PATCH] [REF] Remove my previous workaround, because we have patched the ORM bzr revid: stw@openerp.com-20120803125937-gzeefj02x0j8swq6 --- addons/stock/stock.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 3a3b8d71945..a55e83d9373 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1745,13 +1745,6 @@ class stock_move(osv.osv): 'date_expected': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'), } - def create(self, cr, uid, vals, context=None): - # TODO - # the create_date is passed in the vals dict, and the ORM has a problem with that ! - # make a real patch and remove this workaround - vals.pop('create_date', False) - return super(stock_move, self).create(cr, uid, vals, context=context) - def write(self, cr, uid, ids, vals, context=None): if isinstance(ids, (int, long)): ids = [ids]