← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 793104] [NEW] ir.sequence: skip expensive strftime functions

 

On Sunday 05 June 2011, you wrote:
> Public bug reported:
> 

Note: this bug report was produced by accident. I clicked the wrong commit 
hash and it generated this instead of 793106. Still, a valid report.

-- 
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/793104

Title:
  ir.sequence: skip expensive strftime functions

Status in OpenERP Server:
  In Progress

Bug description:
  At every get_id() call, we evaluate _process() twice, most usually without
  the %(year)/%(month) etc. placeholders. Thus, we shall avoid precomputing
  the strftime values for the dictionary.

  In the future, %(ymd) should really be deprecated, as they are not well
  bound to the data, rather they are current time. Sequence templates offer
  a better implementation.


References