Commit Graph

468 Commits

Author SHA1 Message Date
Vo Minh Thu f23ec137ca [IMP] cron: the thread-safe variable is located inside openerp.cron; the configuration variable is just read once.
bzr revid: vmt@openerp.com-20110808140524-xj8sdm43upp4jr64
2011-08-08 16:05:24 +02:00
Vo Minh Thu d803d9192b [IMP] cron: the maximum number of cron threads is configurable.
bzr revid: vmt@openerp.com-20110808135453-qdlhkyupb6803jln
2011-08-08 15:54:53 +02:00
Vo Minh Thu ed1b2a92ca [IMP] cron: comments and docstrings.
bzr revid: vmt@openerp.com-20110808130502-htps768jts63m9sx
2011-08-08 15:05:02 +02:00
Vo Minh Thu faf2863a35 [IMP] cron: bracketed the jobs heap/dict with a lock.
bzr revid: vmt@openerp.com-20110715113845-zokj6cf6z0adj6h4
2011-07-15 13:38:45 +02:00
Vo Minh Thu f6b44ec779 [IMP] cron: forgot to add the new openerp.cron module.
bzr revid: vmt@openerp.com-20110715100127-8btlo3bluaju3em6
2011-07-15 12:01:27 +02:00
Vo Minh Thu ed910b5898 [IMP] cron: added some code to test the new threaded jobs, should be moved elsewhere.
bzr revid: vmt@openerp.com-20110715094051-7z5v2xu91uid0jtm
2011-07-15 11:40:51 +02:00
Vo Minh Thu 4b8708fb10 [IMP] cron: minor cleaning.
bzr revid: vmt@openerp.com-20110714151113-v07yr2rneqafbnni
2011-07-14 17:11:13 +02:00
Vo Minh Thu 2f115c21aa [IMP] cron: moved netsvc.Agent to openerp.cron.
bzr revid: vmt@openerp.com-20110714143209-bebn6xg91fcrxro9
2011-07-14 16:32:09 +02:00
Vo Minh Thu 32e830eb99 [IMP] cron: removed unnecessary multi-tasks per db in Agent, some cleaning.
bzr revid: vmt@openerp.com-20110714110809-sgsoev9i24589sn8
2011-07-14 13:08:09 +02:00
Vo Minh Thu b5daffc115 [IMP] registry: whene deleting a registry, also delete its cache and cron.
bzr revid: vmt@openerp.com-20110713153521-isn9bllnggbxwi0z
2011-07-13 17:35:21 +02:00
Vo Minh Thu 6f5eb6b91e [IMP] ir.cron: continued implementing multithreaded cron:
- use a lock to protect the number of threads
- the not task[0] condition in reschedule_in_advance is not really correct
- but we have to remove the Agent in favor of a real cron master thread.

bzr revid: vmt@openerp.com-20110713134933-gmfwddot50a3ib4k
2011-07-13 15:49:33 +02:00
Vo Minh Thu 95d21a8a7e [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110713134514-m492zql0p7fs6314
2011-07-13 15:45:14 +02:00
Vo Minh Thu 622e58b183 [MERGE] fields.py: cleaned a bit fields.property.
bzr revid: vmt@openerp.com-20110712153056-r02ulhgq8gnorinr
2011-07-12 17:30:56 +02:00
Antony Lesuisse cea05b572e [MERGE] modifiers: fields state attribute support (niv)
bzr revid: al@openerp.com-20110712143816-b81j6qi418v2kir3
2011-07-12 16:38:16 +02:00
Antony Lesuisse 7c01ea22f3 [FIX] apply some merge review feeback
bzr revid: al@openerp.com-20110712143532-s0jeuh5rglzwijpn
2011-07-12 16:35:32 +02:00
Olivier Dony 8874fb058f [FIX] module.loading: ensure installed modules are all loaded before installing new ones
After the recent change to make module install
atomically (code *and* data), we ran into issues
when installing a new module indirectly triggers
code of a not-yet-loaded-but-installed module,
via its data that is already in the database
(e.g. worflows or reports modified by this module
within another module, that now refer to its
code).
To avoid this, we now make sure that we only
install new modules on top of a consistent system
(code *and* data), by loading all installed or
'to upgrade' modules *before* starting to install
new ones.

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

bzr revid: odo@openerp.com-20110712133343-unf610k23fa6d3pk
2011-07-12 15:33:43 +02:00
Vo Minh Thu 1f6833e708 [IMP] fields.py: removed unused import (and cyclic dependency!).
bzr revid: vmt@openerp.com-20110712083711-6serbntp8y5fn3qy
2011-07-12 10:37:11 +02:00
Launchpad Translations on behalf of openerp 9fcea81c1c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110712043523-jj2h4fyxgaev36dr
2011-07-12 04:35:23 +00:00
Vo Minh Thu cadfd7d85f [FIX] fields.property: typos/misnamed variables.
bzr revid: vmt@openerp.com-20110711161558-kac442kzcu3ujvj4
2011-07-11 18:15:58 +02:00
Quentin (OpenERP) 9c3534843d [IMP] base, rng: allowed name attribute on separator tag
bzr revid: qdp-launchpad@openerp.com-20110711160137-d5thipksjw7e8vqn
2011-07-11 18:01:37 +02:00
Vo Minh Thu e3725cb3a6 [FIX] fields.property: set the m2o fields as False instead of browse_null.
bzr revid: vmt@openerp.com-20110711142503-pokzph1wgo2j3223
2011-07-11 16:25:03 +02:00
Vo Minh Thu 0568b08bea [FIX] loading: pool.get("ir.module.module") was done before it was available.
bzr revid: vmt@openerp.com-20110711141045-c3pyqe0zuwxlljip
2011-07-11 16:10:45 +02:00
Vo Minh Thu 5265ceeffc [IMP] fields.py: removed unnecessary initialization.
bzr revid: vmt@openerp.com-20110711131804-1p9qk2j9zp2uuevy
2011-07-11 15:18:04 +02:00
Olivier Dony cc7fae257f [IMP] module.loading: attempt to load each module atomically within load_module_graph (untested, work-in-progress)
bzr revid: odo@openerp.com-20110711124958-p91752exwv21sdf8
2011-07-11 14:49:58 +02:00
Vo Minh Thu 2fe91df6ad [IMP] fields.py: tidying up before merging in trunk.
bzr revid: vmt@openerp.com-20110711123414-5nf29awpui5x0pp6
2011-07-11 14:34:14 +02:00
Quentin (OpenERP) dae911decc [FIX] tools: get_and_sort_by_field function fixed and cleaned as asked in merge proposal
- fixed error of undefined variable set_field
- improved docstring to follow standard RST formatting
- renamed function into get_and_group_by_field to depict more precisely what it's doing
- created a specific function get_and_group_by_company to hide the complexity

bzr revid: qdp-launchpad@openerp.com-20110708132537-d7c4trk0nl5ngny0
2011-07-08 15:25:37 +02:00
niv-openerp 98bc95933f [merge]
bzr revid: nicolas.vanhoren@openerp.com-20110708130857-t879euj78qqb01v6
2011-07-08 15:08:57 +02:00
Quentin (OpenERP) b363bfb392 [FIX] openerp/osv/fields.py: _get_defaults() and _fnct_read() of property fields cleaned and fixed as requested on merge proposal
-_get_defaults(): improved docstring in order to follow RST docstring format
-_get_defaults(): removed weird loop in _get_defaults as there is always 1 element only
-_fnct_read(): make name_get as root
-_fnct_read(): check existence for m2o fields (as root)
-_fnct_read(): check for type of property field is now done on reliable information

bzr revid: qdp-launchpad@openerp.com-20110708125106-0q0wj5zncaa7yp0w
2011-07-08 14:51:06 +02:00
niv-openerp 4793c68939 [imp] Improved modifiers algorithm to also take the "states" attribute into account.
bzr revid: nicolas.vanhoren@openerp.com-20110707155135-jjinihfc6kylwf9k
2011-07-07 17:51:35 +02:00
Quentin (OpenERP) 760471863a [FIX] fields.py: reading and writing on ir.property fields
bzr revid: qdp-launchpad@openerp.com-20110707140359-mxj1or10gzvde3te
2011-07-07 16:03:59 +02:00
Vo Minh Thu 46f8243877 [IMP] ir_cron: reschedule the main cron thread if a worker takes too long.
bzr revid: vmt@openerp.com-20110707135843-z38f4r8s373ctnd2
2011-07-07 15:58:43 +02:00
Quentin (OpenERP) 1e57f21cb7 [IMP] openerp/osv/fields.py: reading a property field is now using the function get() of ir.property object.
bzr revid: qdp-launchpad@openerp.com-20110707133733-aua4dygdjjmhryap
2011-07-07 15:37:33 +02:00
Quentin (OpenERP) 242a9e9b05 [IMP] tools: added a function to get and sort by field
bzr revid: qdp-launchpad@openerp.com-20110707132614-c6letgrkz4d6vm0i
2011-07-07 15:26:14 +02:00
Vo Minh Thu (OpenERP) f51a5e1498 [MERGE] new configuration wizard system
bzr revid: odo@openerp.com-20110706161606-lluokqgsq9ezjbmc
2011-07-06 18:16:06 +02:00
Vo Minh Thu 6c7f791f5d [IMP] tidying up before merging in trunk.
bzr revid: vmt@openerp.com-20110706154001-r8y7w28yve2ca0ar
2011-07-06 17:40:01 +02:00
Quentin (OpenERP) a1e94494ec [IMP] base: typo in preview report
bzr revid: qdp-launchpad@openerp.com-20110706144150-pir9tklafefl5obf
2011-07-06 16:41:50 +02:00
Quentin (OpenERP) 3ebfe4915e [IMP] base: res.company preview report cleaning
bzr revid: qdp-launchpad@openerp.com-20110706144010-2yu620o9bpia5f03
2011-07-06 16:40:10 +02:00
Quentin (OpenERP) f19ccd5b7e [IMP] base: res.company preview report simplification
bzr revid: qdp-launchpad@openerp.com-20110706143153-hq1bmb7t9qcgzgfj
2011-07-06 16:31:53 +02:00
Quentin (OpenERP) a0ca1ee6e4 [MERGE] preview_report
bzr revid: qdp-launchpad@openerp.com-20110706142112-y2ccnpc5re7mpvrx
2011-07-06 16:21:12 +02:00
Rucha (Open ERP) e1472fa807 [REM, ADD]: res.company: Removed preview_report function,
* Added new blank report to print company header/footer

bzr revid: rpa@tinyerp.com-20110706125541-1uk17x39458nwonl
2011-07-06 18:25:41 +05:30
Vo Minh Thu b9e581303b [IMP] ir_cron: each job in its own thread, first stab.
bzr revid: vmt@openerp.com-20110705170053-q3xgeoq21oc7dh8h
2011-07-05 19:00:53 +02:00
Vo Minh Thu 00ab8dbc08 [MERGE] setting a o2m to null unlinks the other side or sets it to null according to the ondelete value.
bzr revid: vmt@openerp.com-20110705123728-xp2zyiv17xz063oj
2011-07-05 14:37:28 +02:00
Vo Minh Thu a13109ea93 [REVERT] re-apply the 4 commits that were reverted just after, 4 commits ago.
bzr revid: vmt@openerp.com-20110705122222-bhim9uft3l3sqee8
2011-07-05 14:22:22 +02:00
Quentin (OpenERP) d83d2cefa0 [IMP] res_company: preview_report function improved and cleaned
bzr revid: qdp-launchpad@openerp.com-20110705103001-gs4jjignq3bbi5zn
2011-07-05 12:30:01 +02:00
niv-openerp f7851b64ae [merge]
bzr revid: nicolas.vanhoren@openerp.com-20110705085322-9maq2605k6dvnfho
2011-07-05 10:53:22 +02:00
niv-openerp 708855467f [imp] changed meaning of operation 3 on o2m to behave like operation 5
bzr revid: nicolas.vanhoren@openerp.com-20110705085106-xepnebw12sbq8s9b
2011-07-05 10:51:06 +02:00
Quentin (OpenERP) cd5c2975fb [IMP] moved privew_report button server side (previously in base_setup) in order to have it near it's code
bzr revid: qdp-launchpad@openerp.com-20110704143225-subsgeiny3rz9yyn
2011-07-04 16:32:25 +02:00
Quentin (OpenERP) d5e45ccb21 [MERGE] small code improvement
bzr revid: qdp-launchpad@openerp.com-20110704140506-j2o8m2pcak2p0c5m
2011-07-04 16:05:06 +02:00
Rucha (Open ERP) 3df3c54572 [REF]: ir.module: Improvement in code, return common dictionary
bzr revid: rpa@tinyerp.com-20110704133431-iq309mmduwjlrxde
2011-07-04 19:04:31 +05:30
Quentin (OpenERP) f995180233 [MERGE] merge with main server trunk
bzr revid: qdp-launchpad@openerp.com-20110704133109-3ne5r64g2p32gctq
2011-07-04 15:31:09 +02:00