default datetime value is at moment when server starts

Bug #723443 reported by Carlos Incaser
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 2

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'),}

Related branches

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Atik Agewan(OpenERP) (aag-openerp) wrote :

Hello Carlos,

Thanks for reporting,
It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-723443-aag
Revision ID: <email address hidden>
Revision num: 4446.
It will be available in trunk soon,

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.