Commit Graph

22 Commits

Author SHA1 Message Date
Harry (Open ERP) d8ce3f1e2a [FIX] replaced <TAB> with four white space.
bzr revid: hmo@tinyerp.com-20091124144405-9mzd91chohvf0uu7
2009-11-24 20:14:05 +05:30
xrg dad1ff955b [merge] merge from lp:~xrg/openobject-server/optimize-5.0 and removed some confilts
bzr revid: hmo@tinyerp.com-20091120143104-tb6136unkdw7yfy9
2009-11-20 20:01:04 +05:30
pap(openerp) 251b6720ca Changed encoding to coding ref: PEP: 0263
bzr revid: hda@tinyerp.com-20091020105223-2o94yr2iv2v10axr
2009-10-20 16:22:23 +05:30
PSO(OpenERP) 4d7134cd99 Changed licencing
bzr revid: hda@tinyerp.com-20091014123215-nuyqs18090whzt5o
2009-10-14 18:02:15 +05:30
P. Christeas 2a16b99892 [Feature]: add condition to ir.sequence, let it be partitioned.
With this feature, multiple sequences may be defined per type. A weight
parameter will primarily order them. Then, the one whose condition is
true will be used.
This would let us write modules (calls to get() must be upgraded), where
the sequence numbering will depend on the data. Note that this is not
straghtforward, as the context passed must be carefully constructed. One
problem is that not all object data (eg category) may exist when the
sequence is called for a /new/ object (as a call for 'default').

The current code should be backwards compatible with old calls to get()
without a context.

bzr revid: p_christ@hol.gr-20090909203517-qahww8hika9t3zl8
2009-09-09 23:35:17 +03:00
Christophe Simonis 48ed571bab [FIX] do not get next sequence in its own cursor
lp bug: https://launchpad.net/bugs/415972 fixed

bzr revid: christophe@tinyerp.com-20090820091600-1wlzlr9s4f041lbq
2009-08-20 11:16:00 +02:00
Christophe Simonis 7913a8c469 [FIX] sequences: avoid an sql error when locking table...
bzr revid: christophe@tinyerp.com-20090818120402-8pnaeouti6oi0kjk
2009-08-18 14:04:02 +02:00
Stephane Wirtel f31ce5813b [FIX] Remove the select for update and use a lock table
lp bug: https://launchpad.net/bugs/314449 fixed

bzr revid: stephane@tinyerp.com-20090129161022-6zr4k03d7qil2342
2009-01-29 17:10:22 +01:00
Fabien Pinckaers 27d5afd10f bugfixes
bzr revid: fp@tinyerp.com-20090126222302-o7oygpjfhtdovcer
2009-01-26 23:23:02 +01:00
Stephane Wirtel 9d293d1f00 [IMP] Update the copyright to 2009
bzr revid: stephane@tinyerp.com-20090104221329-rem11cbgwu30xnji
2009-01-04 23:13:29 +01:00
Christophe Simonis c2cc3a3049 [FIX] psycopg2: in queries we must now use %s everywhere (no more %d or %f)
bzr revid: christophe@tinyerp.com-20081209123722-4kmv4pecjwiw3tm3
2008-12-09 13:37:22 +01:00
Christophe Chauvet 82dda1fb71 [base]
* Add improvement into sequence variable
 * new variable available
 ** %(y)s : Year without century (ex 08)
 ** %(doy)s : day of the year
 ** %(woy)s : week of the year  
 ** %(weekday)s : day of the week (ex 0 -> Monday)
 ** %(h24)s : Hour [00->24]
 ** %(h12)s : Hour [00->12]
 ** %(min)s : Minutes
 ** %(sec)s : secondes

bzr revid: christophe.chauvet@syleam.fr-20081122000533-mlbpqulfrnxylove
2008-11-22 01:05:33 +01:00
Christophe Simonis e404e54e38 passing in GPL-3
bzr revid: christophe@tinyerp.com-20081103182716-6c6xyeewubx4uas0
2008-11-03 19:27:16 +01:00
Stephane Wirtel dead36578f Remove the lock on the table ir_sequence and use FOR UPDATE
bzr revid: stephane@tinyerp.com-20080902180417-lhglzk5lhxacsbw6
2008-09-02 20:04:17 +02:00
Christophe Simonis 2eb6b8265b add encoding comment and vim comment
bzr revid: christophe@tinyerp.com-20080723150127-fmitw7zgeokcualh
2008-07-23 17:01:27 +02:00
Christophe Simonis 2dd9723b8b convert tabs to 4 spaces
bzr revid: christophe@tinyerp.com-20080722142436-143iu4ryy47w3av0
2008-07-22 16:24:36 +02:00
stw 7134784787 add Copyright and GPL license into the Header of Python files
bzr revid: stw-eb6ee9b006e577bda6338caa450ec9795b12f9bc
2008-06-16 11:00:21 +00:00
ced b39259d193 base: clean code get_id from ir.sequence
- remove commit (never call)
- remove try/except, we need to propagate the exception

bzr revid: ced-324137b337be23f98f316aadac9d0c77fc59588c
2007-07-26 08:31:54 +00:00
ced 515960334c base: remove unused code
bzr revid: ced-e0f9f174aca8f4e376747cde62ead4b110903974
2007-07-10 15:24:43 +00:00
Fabien Pinckaers c881d2c9cb ORM bugfix in importing .CSV files
bzr revid: fp@tinyerp.com-c49b3d6cb3802432801c0d78a712d864e78409ca
2007-07-10 04:21:51 +00:00
pinky c7bd4bef76 Sequence bugfixes
bzr revid: pinky-74587d6b1576845a10cccd975d060caee314e9d6
2006-12-18 12:25:45 +00:00
pinky 004a0b996f New trunk
bzr revid: pinky-3f10ee12cea3c4c75cef44ab04ad33ef47432907
2006-12-07 13:41:40 +00:00