[MERGE] Merged RGO's branch for the fix of wrong _defaults on stock module

bzr revid: jvo@tinyerp.com-20110531092057-s538la6zhvarsj8h
This commit is contained in:
Jay Vora (OpenERP)
2011-05-31 14:50:57 +05:30
+1 -1
View File
@@ -2527,7 +2527,7 @@ class stock_inventory(osv.osv):
}
_defaults = {
'date': time.strftime('%Y-%m-%d %H:%M:%S'),
'date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
'state': 'draft',
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'stock.inventory', context=c)
}