-
Committer:
Olivier Dony
-
Date:
2013-05-17 17:35:13 UTC
-
mfrom:
(4975.3.3 7.0)
-
Revision ID:
odo@openerp.com-20130517173513-msabph5x62c9wjxt
[MERGE] ir.sequence: lazily compute next value for PostgreSQL-backed ir.sequences + avoid resetting it at each change to the sequence, courtesy of Ronald Portier (Therp)
The original patch proposed by Ronald has been modified to
make it more suitable to a stable version, in the following
aspects:
- remove all extra physical columns (boolean flags), as they
would break the stable policy and were actually unnecessary
to fix the bug
- avoid displaying both the number_next and the number_next_actual,
the latter is sufficient
- fix a possible bug when setting the number_next to 0