[REF] Remove my previous workaround, because we have patched the ORM

bzr revid: stw@openerp.com-20120803125937-gzeefj02x0j8swq6
This commit is contained in:
Stephane Wirtel
2012-08-03 14:59:37 +02:00
parent 1d361e73f3
commit b38f7ba28d
-7
View File
@@ -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]