← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 723443] Re: default datetime value is at moment when server starts

 

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/723443

Title:
  default datetime value is at moment when server starts

Status in OpenERP Modules (addons):
  Confirmed

Bug description:
  In the stock/stock.py the default datetime value is at moment when server starts.
  Is defined as:
  _defaults = {'date':  time.strftime('%Y-%m-%d %H:%M:%S'),}
  Should be defined as:
  _defaults = {'date':  lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),}



References