Commit Graph

41 Commits

Author SHA1 Message Date
Raphael Collet 9aad3d873b [IMP] fields: turn field.digits and column.digits into dynamic properties
The computed value of parameter digits is no longer stored into fields and
columns; instead the value is recomputed everytime it is needed.  Note that
performance is not an issue, since the method `get_precision` of model
'decimal.precision' is cached by the orm.  This simplifies the management of
digits on fields and saves about 300Kb per registry.
2015-03-23 14:36:15 +01:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Antony Lesuisse e6ac29ee43 [IMP] move test cases to tests.py remove deprecated wsgi import
bzr revid: al@openerp.com-20140209151822-cgk0wibqe1kfd42w
2014-02-09 16:18:22 +01:00
Antony Lesuisse 082b1dc9fc restore the original gevent detection
bzr revid: al@openerp.com-20130909231946-aglho23enxhfwm0i
2013-09-10 01:19:46 +02:00
Antony Lesuisse 2a6d0299d9 revert to use a separate executable for gevent, add --dev option
bzr revid: al@openerp.com-20130909200825-sm5c3invmg7tt70j
2013-09-09 22:08:25 +02:00
Stephane Wirtel f8c0310d8e [FIX] Use psycogreen instead of gevent-psycopg2
green-psycopg2 has been deprecated by the developer, he asks to use an
alternative, in this case, the alternative is psycogreen
https://bitbucket.org/dvarrazzo/psycogreen

bzr revid: stw@openerp.com-20130909131123-u0gqhvxqwv13yqke
2013-09-09 15:11:23 +02:00
Antony Lesuisse 12580e690a [IMP] openerp threaded, gevent, prefork service cleanup
- unify signal handling
- unify start and stop
no new feature yet, it paves the way for
- developement mode auto reload
- graceful restart on HUP
- multiprocessing and gevent on windows

bzr revid: al@openerp.com-20130908173535-xomt5w7xmqtwkmyy
2013-09-08 19:35:35 +02:00
Christophe Simonis a61e7cb0c8 [MERGE] forward port of branch saas-1 up to revid 4887 chs@openerp.com-20130612153934-qyp6pb3bc4za4taf
bzr revid: chs@openerp.com-20130613172414-dln3g4j0ykcwaa02
bzr revid: chs@openerp.com-20130613173900-xl7rh321nnw2b04b
2013-06-13 19:39:00 +02:00
niv-openerp c8719220a7 Added long polling executable
bzr revid: nicolas.vanhoren@openerp.com-20130606113237-ov1t2txl9gn6mx3g
2013-06-06 13:32:37 +02:00
Vo Minh Thu d6477c23e3 [FIX] long-polling: use start()/stop() instead of serve_forever().
This is done so detecting a possible PPID change works.
(So that the worker dies when its parent dies.)

bzr revid: vmt@openerp.com-20130502125907-2t96a26eo6c09x2f
2013-05-02 14:59:07 +02:00
Vo Minh Thu 307ca374d6 [MERGE] forward merge 7.0 until revision 4919.
bzr revid: vmt@openerp.com-20130404130704-24vsmczw34cssytd
2013-04-04 15:07:04 +02:00
Vo Minh Thu 5134bf4b94 [REF] registry: the new_registry() helper is not useful enough, we do not need it at the top-level.
bzr revid: vmt@openerp.com-20130327152322-1bsslx8jicjh26eq
2013-03-27 16:23:22 +01:00
Vo Minh Thu 684bd35442 [REF] registry: begin to remove openerp.pooler:
- call openerp.modules.registry.RegistryManager instead
- expose openerp.get_pool()

bzr revid: vmt@openerp.com-20130327093125-iqsyvvjm0ej7do14
2013-03-27 10:31:25 +01:00
Antonin Bourguignon f929ebc73b [MERGE] trunk
bzr revid: abo@openerp.com-20130213105620-xyez3q7ddgc0x5x8
2013-02-13 11:56:20 +01:00
Raphael Collet e76befd6c6 [MERGE] trunk-service-thu (remove the class openerp.netsvc.ExportService)
bzr revid: rco@openerp.com-20130212154230-y54s2rbetllwnh4q
2013-02-12 16:42:30 +01:00
Antonin Bourguignon e274ccc7cb [MERGE] trunk
bzr revid: abo@openerp.com-20130211150920-c5yam3yykht1qdpn
2013-02-11 16:09:20 +01:00
Vo Minh Thu 665fc8d8f1 [REF] openerp.service.{rpc,route,handler} decorators moved to openerp.http.
bzr revid: vmt@openerp.com-20130201093727-pgcvauuo87o2a3p6
2013-02-01 10:37:27 +01:00
Vo Minh Thu 4e24b1b091 [FIX] removed spurious import test from openerp/__init__.
bzr revid: vmt@openerp.com-20130129162011-6eecl9fmecv579zu
2013-01-29 17:20:11 +01:00
Vo Minh Thu 13d0db7507 [FIX] the import test in openerp/run_tests is wrong, the import of run_tests in openerp/__init__ was wrong too.
lp bug: https://launchpad.net/bugs/1108929 fixed

bzr revid: vmt@openerp.com-20130129154702-opeqw9mhk9lto92p
2013-01-29 16:47:02 +01:00
Antonin Bourguignon aab0dd122a [MERGE] trunk
bzr revid: abo@openerp.com-20130122122250-8pu5jycraqj435nu
2013-01-22 13:22:50 +01:00
Vo Minh Thu 669885ce68 [IMP] oe web: use openerp/__init__ instead of tools.config to store the gevent flag (similarly to the multi_procsess flag).
bzr revid: vmt@openerp.com-20130118153235-hj6ttxargln4he4c
2013-01-18 16:32:35 +01:00
Antonin Bourguignon 6b926883cc [IMP] add a missing import (exceptions)
bzr revid: abo@openerp.com-20130117155003-5akv67tylaz59s7l
2013-01-17 16:50:03 +01:00
Vo Minh Thu 4a77c6a0c5 [FIX] timezone: under windows os.environ["TZ"] was not affecting the server,
now it does (probably because we make sure to first set the environment
*then* import the time module. Works fine under Windows XP.

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

bzr revid: vmt@openerp.com-20130307121637-47fac72clykizlnj
2013-03-07 13:16:37 +01:00
Vo Minh Thu 7674db0ed5 [FIX] The import test in openerp/run_tests is wrong, the import of run_tests in openerp/__init__ was wrong too.
lp bug: https://launchpad.net/bugs/1108929 fixed

bzr revid: vmt@openerp.com-20130130103458-t4stvpibhb1353nw
2013-01-30 11:34:58 +01:00
Antony Lesuisse 5790312d65 netsvc, netrpc, wizardcleanup
bzr revid: al@openerp.com-20121209181536-au8u47557i45wizl
2012-12-09 19:15:36 +01:00
Antony Lesuisse 13cdc34b65 openerp apps main moved to cli ready for new commands
bzr revid: al@openerp.com-20121127005513-vi9viu4oafbrze6y
2012-11-27 01:55:13 +01:00
Antony Lesuisse 6c60619a2b [FIX] wsgi wrapper
bzr revid: al@openerp.com-20120924103648-uhxteeu6nd8batvd
2012-09-24 12:36:48 +02:00
Antony Lesuisse 4679680dba manual merge of multicorn
bzr revid: al@openerp.com-20120922105107-q02ogtsfudphzkl6
2012-09-22 12:51:07 +02:00
Florent Xicluna 01f3d0fc98 [FIX] the embedded pychart library is not used.
bzr revid: florent.xicluna@gmail.com-20120208150815-8th86hvpp11yiv4x
2012-02-08 16:08:15 +01:00
Olivier Dony 209390d627 [MERGE] sync with latest trunk
bzr revid: odo@openerp.com-20110927165133-uwl7px6bxl6eu7us
2011-09-27 18:51:33 +02:00
Olivier Dony 6462c85f6c [IMP] start unifying the SUPERUSER_ID constant
bzr revid: odo@openerp.com-20110926090156-2smbh0ypzitauhmt
2011-09-26 11:01:56 +02:00
Vo Minh Thu 94b86a7bf6 [IMP] wsgi: (proof of concept) serving xml-rpc requests behind gunicorn:
> gunicorn openerp:wsgi.application -c gunicorn.conf.py
If you want to try, you should know an addons_path is
hard coded in openerp.wsgi.on_starting().

bzr revid: vmt@openerp.com-20110819130248-tf81ttu42t2uhkuo
2011-08-19 15:02:48 +02:00
Vo Minh Thu 2f5e8d48b3 [REF] osv: moved (and adapted) vacuum code to osv_memory.
bzr revid: vmt@openerp.com-20110812113355-lylavdsc3mqjovrj
2011-08-12 13:33:55 +02:00
Vo Minh Thu 2f6dff7690 [MERGE] moved around some code (preparing for some refactoring) (large diff).
bzr revid: vmt@openerp.com-20110525160607-45pq13910rduijkk
2011-05-25 18:06:07 +02:00
Vo Minh Thu aa554efa57 [REF] ir.ir_{set,get,del}: removed openerp.ir:
- the three functions provided in openerp.ir are simple wrappers around ir_values
- it is easier to directly use ir_values than to keep this module around.

bzr revid: vmt@openerp.com-20110519122752-s3wwq4pwl8wlbori
2011-05-19 14:27:52 +02:00
Vo Minh Thu 16ac84af68 [REF] moved openerp/registry/manager.py => openerp/modules/registry.py
- Maybe it should be called registries.py... Argh, consistency...

bzr revid: vmt@openerp.com-20110519073935-81kwuhlqcxxw1z32
2011-05-19 09:39:35 +02:00
Vo Minh Thu 09079b0102 [REF] pooler code goes in openerp.registry.manager.
bzr revid: vmt@openerp.com-20110512084646-k0s6dlkpbz5s4mcs
2011-05-12 10:46:46 +02:00
Vo Minh Thu 041a61c1b1 [REF] openerp.conf: new module
- see its docstring for its purpose
- otherwise empty for now

bzr revid: vmt@openerp.com-20110420102627-j5zbn1phuc0pmffk
2011-04-20 12:26:27 +02:00
Vo Minh Thu 545a438c03 [REF] openerp.modules
- for the moment it is a copy of openerp.addons

bzr revid: vmt@openerp.com-20110420152718-eok61oule6p2x58z
2011-04-20 17:27:18 +02:00
Vo Minh Thu 45239ae493 [IMP] openerp.__init__ can imports all its submodules.
- The config parser is given sys.args explicitely
- addons.__init__ changed so it can be imported in openerp.__init__

bzr revid: vmt@openerp.com-20110208092923-42mj8sb8mkfbiytw
2011-02-08 10:29:23 +01: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