ir.sequence: skip expensive strftime functions
Bug #793104 reported by
xrg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
In Progress
|
Undecided
|
xrg |
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.
Changed in openobject-server: | |
assignee: | nobody → xrg (xrg) |
status: | New → In Progress |
To post a comment you must log in.
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.