← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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.

** Affects: openobject-server
     Importance: Undecided
     Assignee: xrg (xrg)
         Status: In Progress


** Tags: ir.sequence

** Changed in: openobject-server
       Status: New => In Progress

** Changed in: openobject-server
     Assignee: (unassigned) => xrg (xrg)

-- 
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.


Follow ups

References