[trunk] purchase - default default date value computed at server startup

Bug #704035 reported by John B
18
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

Same as #624509 - default should use lambda.

Patch attached.

Related branches

Revision history for this message
John B (johnb-ca) wrote :
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello John B,

I don't understood when you face the problem.
Because the time.strftime('%Y-%m-%d') and lambda *a: time.strftime('%Y-%m-%d') working in a same manner.

So would you please provide the more informations where and when you face the problem.

Thanks.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
John B (johnb-ca) wrote :

Hi Amit,

Sorry... use Trac 90% of the time, so forgot to include a link to the similar bug report:

https://bugs.launchpad.net/openobject-addons/+bugs

If you don't use lambda, the date is calculated at object instantiation. When creating a purchase order, the default date therefore becomes the date the server was started.

Revision history for this message
John B (johnb-ca) wrote :
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello John,

Thanks for the reporting, I am confirming this bug.

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
status: Incomplete → Confirmed
Revision history for this message
Rucha (Open ERP) (rpa-openerp) wrote :

Hello John,
It has been fixed in lp:~openerp-dev/openobject-addons/trunk-dev-addons2
revision-id: <email address hidden>
Thanks for the patch

Changed in openobject-addons:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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