Commit Graph

36 Commits

Author SHA1 Message Date
Olivier Dony 0e8ca44530 [FIX] ir.sequence: add a proper default value for number_next_actual (0 is disallowed by default) + avoid error when trying to alter a sequence during creation
lp bug: https://launchpad.net/bugs/960201 fixed

bzr revid: odo@openerp.com-20130517181514-xcy83yakpuqa3oik
2013-05-17 20:15:14 +02:00
Olivier Dony b50a964eb8 [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

lp bug: https://launchpad.net/bugs/960201 fixed

bzr revid: odo@openerp.com-20130517173513-msabph5x62c9wjxt
2013-05-17 19:35:13 +02:00
Cedric Snauwaert 33ec8239d1 [FIX]ir_sequence: better args definition
bzr revid: csn@openerp.com-20130517154544-c9jywavo9pnfn4rt
2013-05-17 17:45:44 +02:00
Cedric Snauwaert 913a7a6e5c [FIX]ir_sequence: only execute a change on postgresql sequence when really needed and add a field to get an approximation of the current next_number.
bzr revid: csn@openerp.com-20130517124328-kex5katw2tgpgdty
2013-05-17 14:43:28 +02:00
Cedric Snauwaert ce5c5557a3 [FIX]ir_sequence: fix cryptic error message when prefix/suffix is not in a valid format and update number_next in order for it to have same value as the sql sequence preventing the sql sequence to restart from one if a write is done.
bzr revid: csn@openerp.com-20130517090421-kik3215az48lg02f
2013-05-17 11:04:21 +02:00
Quentin (OpenERP) 7fda7e1dbd [FIX] ir_sequence: the field company_id does not exist in res.company, and thus cannot be used as sorting criterion in search()
bzr revid: qdp-launchpad@openerp.com-20130419154920-ipddx1mszl2c5az4
2013-04-19 17:49:20 +02:00
Cecile Tonglet ad8b76de53 [MERGE] From trunk (second time)
bzr revid: cto@openerp.com-20121217144753-1rboqdw01h8yrehj
2012-12-17 15:47:53 +01:00
Xavier Morel 5155f30303 [REM] unused local variables
bzr revid: xmo@openerp.com-20121214132533-aafgbov19ckb9ksp
2012-12-14 14:25:33 +01:00
Vo Minh Thu 509a084e79 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121210152723-mv4dykfu6ip1991h
2012-12-10 16:27:23 +01:00
Khushboo Bhatt (Open ERP) c1d8f3e405 [FIX]traceback issue for sequence 0
bzr revid: kbh@tinyerp.com-20121126094337-tfo6pvv2n6e9c1xt
2012-11-26 15:13:37 +05:30
Khushboo Bhatt (Open ERP) 1e1dc49126 [IMP/MERGE]merge HSA branch with minor changes.
bzr revid: kbh@tinyerp.com-20121123101028-1v8rxbphfk8l15o2
2012-11-23 15:40:28 +05:30
Hardik 3111962858 [IMP]In sequencea when enter 0 in increment number field, it should raised error
bzr revid: hsa@tinyerp.com-20121123093315-v645vyqanm80q5xb
2012-11-23 15:03:15 +05:30
Thibault Delavallée 9871b2dd37 [FIX] Fixed last commit, about removing check_read/write/unlink/create: those methods were used, propagated the changes :) .
bzr revid: tde@openerp.com-20120822111613-305j77rs4fphkjts
2012-08-22 13:16:13 +02:00
Vo Minh Thu f5db1d10ec [IMP] openerp.addons.base: _logger with fully qualified module name.
bzr revid: vmt@openerp.com-20120124114730-24m0ftu1wbowg8a0
2012-01-24 12:47:30 +01:00
Olivier Dony 1cbaae1b4d [MERGE] ir.sequence: Fix bug 863221 - higher priority for current company sequences
bzr revid: odo@openerp.com-20111215152635-u5ajjake19a2gxzk
2011-12-15 16:26:35 +01:00
Vo Minh Thu 5ef9dd5f3f [MERGE] Cleaning of the empty dict kwargs (replaced by None).
bzr revid: vmt@openerp.com-20111121133346-2yr8ow3zeyqa9ar5
2011-11-21 14:33:46 +01:00
Naresh (OpenERP) 84a6f91180 [FIX]:UnboundLocalError
lp bug: https://launchpad.net/bugs/891500 fixed

bzr revid: nch@tinyerp.com-20111118085439-wgei8ockgn84jnep
2011-11-18 14:24:39 +05:30
Naresh (OpenERP) e99921e853 [FIX]:sequence might use a child company's sequence by error under certain circumstances, use force_company in the context if you want specific companies seq to used else use users current company seq
lp bug: https://launchpad.net/bugs/863221 fixed

bzr revid: nch@tinyerp.com-20111114110447-jn71htdyx5q4gqiu
2011-11-14 16:34:47 +05:30
Numerigraphe - Lionel Sausin 9ed5cbb24c [FIX] unmutable defaults in base addons.
bzr revid: ls@numerigraphe.fr-20111107151949-n9prrufvqe3ohz18
2011-11-07 16:19:49 +01:00
Olivier Dony f3cf4c359a [IMP] ir.sequence: tone down get_id() deprecation WARNING to DEBUG
For 6.1 we will still support get_id(), but should start phasing it
out for 6.2, so we will switch it back to WARNING after 6.1

bzr revid: odo@openerp.com-20111007145406-9rmfowimthedvoni
2011-10-07 16:54:06 +02:00
Antony Lesuisse 3db71a166b [IMP] ir_sequence code remove required, its only needed for company global sequences
bzr revid: al@openerp.com-20111001005618-77h9uib26c92lu1w
2011-10-01 02:56:18 +02:00
Antony Lesuisse 103054293f [IMP] ir_sequence more refactoring
bzr revid: al@openerp.com-20110930232439-zlp2vmhuoet7s4sm
2011-10-01 01:24:39 +02:00
Antony Lesuisse 997d9f4178 [IMP] minor simplification and style change (avoid inline if, less snobby, more readable)
bzr revid: al@openerp.com-20110930183806-6r78rt62cebc82iv
2011-09-30 20:38:06 +02:00
Vo Minh Thu 83fdc271e6 [FIX] ir_sequence: temporary fix: no (code,company) unique constraint.
bzr revid: vmt@openerp.com-20110930152345-cwmbotwvxaafb32f
2011-09-30 17:23:45 +02:00
Vo Minh Thu 1381ac139e [IMP] ir_sequence: (code, company_id) is unique, even for company_id IS NULL.
bzr revid: vmt@openerp.com-20110929134758-793vqith9pfcvs7w
2011-09-29 15:47:58 +02:00
Vo Minh Thu dc993b507e [IMP] ir_sequence: change API, deprecate old one.
bzr revid: vmt@openerp.com-20110929122753-19middna4b782tcy
2011-09-29 14:27:53 +02:00
Vo Minh Thu 538cc0e92f [FIX] ir_sequence: typo in read().
bzr revid: vmt@openerp.com-20110928141520-9yx9sogoetizb9nn
2011-09-28 16:15:20 +02:00
Vo Minh Thu 6929d9f3c8 [FIX] ir_sequence: any merge proposal should touch as many .po files as possible.
bzr revid: vmt@openerp.com-20110928133101-z1baqrqw7yb2u73c
2011-09-28 15:31:01 +02:00
Vo Minh Thu 7ac3c90774 [FIX] ir_sequence: check access right on get_id(), unlink returns True.
bzr revid: vmt@openerp.com-20110928130548-ldg97pjo5zex0qab
2011-09-28 15:05:48 +02:00
Vo Minh Thu eeaa2a7f80 [FIX] ir_sequence: do the FOR UPDATE NO WAIT only in the No-gap sequence.
bzr revid: vmt@openerp.com-20110928114229-1g6r5et5frj26wam
2011-09-28 13:42:29 +02:00
Vo Minh Thu f2c5556b68 [FIX] ir_sequence: forgot id argument in _create_sequence().
bzr revid: vmt@openerp.com-20110928103009-17rw1af5ebauu3f5
2011-09-28 12:30:09 +02:00
Vo Minh Thu 5f4ebc7b1c [IMP] ir_sequence: add support for PostgreSQL sequence.
This is partly inspired by openlabs' Sequence Postgres module.
Untested yet.

bzr revid: vmt@openerp.com-20110928091309-098red2biba5uq73
2011-09-28 11:13:09 +02:00
Vo Minh Thu 0a8fe1e3b5 [IMP] ir_sequence: draining the swamp while being up to my neck in alligators.
bzr revid: vmt@openerp.com-20110927213612-y8qzz2cma1cmfo69
2011-09-27 23:36:12 +02:00
Vo Minh Thu 6d6f22015a [IMP] ir_sequence: whitespace and other hair cut changes.
bzr revid: vmt@openerp.com-20110927183830-9mkkphmpzquyqsjn
2011-09-27 20:38:30 +02:00
Olivier Dony cc81a21ab8 [MERGE] latest 6.0 fixes
bzr revid: odo@openerp.com-20110719113630-dvhg0cvh59r0oiiq
2011-07-19 13:36:30 +02:00
Vo Minh Thu f8572e5c60 [IMP] openerp python module.
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-02-07 13:57:23 +01:00