Commit Graph

29190 Commits

Author SHA1 Message Date
Vo Minh Thu 8b878de82d [REF] modules.__init__:
- added some comments
- the "updating modules list" log appears only when actually updating the list
- similar code to read the module descriptor file is combined
- default values for some descriptor entries are given only once
- in particular, the default version is always 0, instead of 0 when
  reading a descriptor for migration and 1.0 when writing its value in
  database.

bzr revid: vmt@openerp.com-20110511103455-lqezcrjf2996j7mc
2011-05-11 12:34:55 +02:00
Vo Minh Thu 71de92dc44 [FIX] db.get_progress was broken:
- the status dictionary was ignored
- it is still slightly broken (see added comment in openerp/modules/__init__.py)

bzr revid: vmt@openerp.com-20110510142849-p9kcd60agybpm8bd
2011-05-10 16:28:49 +02:00
Vo Minh Thu 853e354b55 [REF] modules.__init__: combined _load_data and _load_xml:
- pass the report argument to xml_import
- allow .sql in demo
- noupdate is True for both init and demo
- the pathname given to convert_csv_import is different
  but the way it is processed in convert_csv_import should
  make it alright.

bzr revid: vmt@openerp.com-20110510125242-ig74vtich2g3bjhc
2011-05-10 14:52:42 +02:00
Vo Minh Thu e82aeba808 [REF] it seems ok to get the ir.module.module model only once.
bzr revid: vmt@openerp.com-20110519090410-a89n7ivs2nvn60bt
2011-05-19 11:04:10 +02:00
Vo Minh Thu 7963da3f94 [REF] modules.__init__:
- combined code from load_init_update_xml and load_demo_xml
- made explicit the "report" kwarg of load_module_graph

bzr revid: vmt@openerp.com-20110510094908-txzj3oeypz7iralk
2011-05-10 11:49:08 +02:00
Vo Minh Thu 4ba3f3c804 [REF] osv, modules/__init__cosmetic renaming, added comments.
bzr revid: vmt@openerp.com-20110519090300-bodss011798ep5cy
2011-05-19 11:03:00 +02:00
Vo Minh Thu 0770057935 [REF] explicit service objects instanciation.
bzr revid: vmt@openerp.com-20110507112129-hfrly9easfby9hns
2011-05-07 13:21:29 +02:00
Vo Minh Thu e8df583f3b [FIX] forgot to add new file.
bzr revid: vmt@openerp.com-20110429075030-4o1vdtldc3rp3j1v
2011-04-29 09:50:30 +02:00
Vo Minh Thu 081b6d98ab [REF] separate/expose some code.
bzr revid: vmt@openerp.com-20110428151330-m8qkggoqmsry3w2z
2011-04-28 17:13:30 +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 4b3357652d [REF] osv_pool cleaning:
- removed unused variables (module_list, module_object_list, created)
  - removed unecessary call to del on a dictionary
  (as its element is replaced anyway)
  - added some comments

bzr revid: vmt@openerp.com-20110519085035-p9ohve0nfkudgrx5
2011-05-19 10:50:35 +02:00
Vo Minh Thu 67aa6c461a [REF] pooler: expose a delete_pool method, can be useful to debug memory leaks.
bzr revid: vmt@openerp.com-20110427092836-284bci0an48nopwc
2011-04-27 11:28:36 +02:00
Vo Minh Thu 4f163f727a [IMP] orm: check for object _name validity.
bzr revid: vmt@openerp.com-20110427090846-pxqkyk2y0p8sjb8v
2011-04-27 11:08:46 +02:00
Vo Minh Thu 2856d16912 [ADD] sql_db: show file/line where the cursor was closed
This will be printed along the error message whenever an attempt to use
a closed cursor is made (only in debug_sql log level).

bzr revid: vmt@openerp.com-20110422112417-dbeqq4qm59sr2wvt
2011-04-22 13:24:17 +02:00
Vo Minh Thu aaedb68331 [ADD]: dummy cache class replacement.
bzr revid: vmt@openerp.com-20110422100720-5ffk1tp944b53c7a
2011-04-22 12:07:20 +02:00
Vo Minh Thu a659d1fa8c [REF] netsvc: explicit Agent thread creation.
bzr revid: vmt@openerp.com-20110421155836-70da1nhpb38zqbls
2011-04-21 17:58:36 +02:00
Vo Minh Thu 7008aa3e0e [FIX] sql_db: connection pool created lazily.
- This is necessary to give a chance to change the config just after importing openerp.

bzr revid: vmt@openerp.com-20110421103125-3lv609wnu3vh2m4f
2011-04-21 12:31:25 +02:00
Vo Minh Thu 2356412aea [FIX] openerp.addons: corrected wrong import syntax.
bzr revid: vmt@openerp.com-20110420153741-scgftlguxqvopgur
2011-04-20 17:37:41 +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 0e1186dd3d [REF] openerp.pooler/openerp.sql_db: cleaner dependencies:
- openerp.pooler no longer provides get_db_only, which is a provided by sql_db
- openerp.sql_db does not rely anymore on netsvc, which is goog as it was
making a circular import. The downside is that db_close callers have to clean
also the Agent themselves.

bzr revid: vmt@openerp.com-20110420141407-au0oanwjc0t15vy5
2011-04-20 16:14:07 +02:00
Vo Minh Thu f96d58c9c6 [REF] pooler: added some comments.
bzr revid: vmt@openerp.com-20110420072346-os10xhy9lnvposi2
2011-04-20 09:23:46 +02:00
Vo Minh Thu 7410d8e410 [REF] config: removed duplicated list of options
- the list is still reconstructed from the optparse options.

bzr revid: vmt@openerp.com-20110419134016-og6ye1hjrb0j52cl
2011-04-19 15:40:16 +02:00
Vo Minh Thu 342f2047cf [REF] openerp-server: better imports.
bzr revid: vmt@openerp.com-20110418155733-gt8shgr0yilo20mw
2011-04-18 17:57:33 +02:00
Vo Minh Thu 255aaa14d2 [REF] openerp-server: cleaned imports.
bzr revid: vmt@openerp.com-20110418143448-bezvdw97ybtlyqhc
2011-04-18 16:34:48 +02:00
Vo Minh Thu 0b42209314 [REF] osv.py: removed unused variable class_pool.
bzr revid: vmt@openerp.com-20110418134236-p5a1wikw10wtplvg
2011-04-18 15:42:36 +02:00
Vo Minh Thu 0c4e557129 [FIX] res_lang: when testing if there is some default value on res.partner, pass it as a list of strings, not as a string.
bzr revid: vmt@openerp.com-20110517120027-cj3nfku07hx521al
2011-05-17 14:00:27 +02:00
Fabien Meghazi bdd3a72499 [FIX] Fixed infinite loop under Internet Explorer 8
bzr revid: fme@openerp.com-20110517104628-xtjcqeb0n8y1fa43
2011-05-17 12:46:28 +02:00
Xavier Morel a656834516 [IMP] add ability to return a different object (than 'this') from Class.init, for factory-type scenarios
bzr revid: xmo@openerp.com-20110517095923-8lr1pjelf94nwu44
2011-05-17 11:59:23 +02:00
Xavier Morel fba3f1bfc7 [IMP] better use underscore methods, don't subscript a 1-character string to get its first character (that's an identity function)
bzr revid: xmo@openerp.com-20110517093503-9kb6newmr7q30z4f
2011-05-17 11:35:03 +02:00
Fabien Meghazi 9d49ade263 [FIX] Fixed action flags
bzr revid: fme@openerp.com-20110517092627-oz2rj1hkpfi5zp30
2011-05-17 11:26:27 +02:00
Launchpad Translations on behalf of openerp 8bed1f4c7b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110517044035-gujm452234pbeq87
2011-05-17 04:40:35 +00:00
Vo Minh Thu a37a4404fb [REF] consistent, grepable ir.values object naming.
bzr revid: vmt@openerp.com-20110516153331-vusrrgr3hvlcyei0
2011-05-16 17:33:31 +02:00
Vo Minh Thu a931e398bf [REF] consistent, grepable ir.values object naming.
bzr revid: vmt@openerp.com-20110516150534-2524fn6587jir72m
2011-05-16 17:05:34 +02:00
Vo Minh Thu f99e8db427 [MERGE] merged fix for res_lang.
bzr revid: vmt@openerp.com-20110516101941-ufa4ue8u5hlcfekm
2011-05-16 12:19:41 +02:00
Vo Minh Thu 059083488e [IMP] res_lang: removed unneeded itertools import.
bzr revid: vmt@openerp.com-20110516101009-x1ih1y17ci4ihkne
2011-05-16 12:10:09 +02:00
Vo Minh Thu e248d008c0 [IMP] res_lang: using a regex instead of custom function,
based on rco comment.

bzr revid: vmt@openerp.com-20110516100712-ezg0ul9bo81uto1h
2011-05-16 12:07:12 +02:00
Vo Minh Thu 584fc24bb3 [FIX] forgot to actually replace the function call by the new one.
bzr revid: vmt@openerp.com-20110516090908-umx4o2ar2w2igiid
2011-05-16 11:09:08 +02:00
Vo Minh Thu 12144cfc2b [FIX]: dont use the leading non-digits when splitting in the format.
bzr revid: vmt@openerp.com-20110516090312-8r5b63e7ln045h0p
2011-05-16 11:03:12 +02:00
Vo Minh Thu ffb6fdd3a9 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110516090036-d0yr21s1ofqu8tiq
2011-05-16 11:00:36 +02:00
Xavier Morel d10cf199b9 [REM] broken method
bzr revid: xmo@openerp.com-20110516072544-bj7shdl9e1of34sr
2011-05-16 09:25:44 +02:00
Launchpad Translations on behalf of openerp 359adccde4 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110514045340-5syevyplayyvtaj3
bzr revid: launchpad_translations_on_behalf_of_openerp-20110515044025-pmslnmik13xfii43
bzr revid: launchpad_translations_on_behalf_of_openerp-20110516043957-rtsds34al9c5hfk3
2011-05-16 04:39:57 +00:00
Launchpad Translations on behalf of openerp 2015bd7a3e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110514045306-lh4jlor643nt2bpo
2011-05-14 04:53:06 +00:00
niv-openerp 6eb51adbac [IMP] Gantt improvements.
bzr revid: nicolas.vanhoren@openerp.com-20110513150155-li80sicymh8e1t18
bzr revid: nicolas.vanhoren@openerp.com-20110513154628-toy2fci47e1reyr5
2011-05-13 17:46:28 +02:00
niv-openerp ce2be5b68f [IMP] Style improvements.
bzr revid: nicolas.vanhoren@openerp.com-20110513154522-8euli59c1caaca2z
2011-05-13 17:45:22 +02:00
niv-openerp 348a3386b3 [MERGE]
bzr revid: nicolas.vanhoren@openerp.com-20110513145314-q71g21r1o4trx6v8
2011-05-13 16:53:14 +02:00
Vo Minh Thu 0da15bd185 [MERGE] slightly improved log message for cron jobs.
bzr revid: vmt@openerp.com-20110513142920-s0vw77xawgod5r13
2011-05-13 16:29:20 +02:00
niv-openerp ce6efa372a [MERGE] many2one and many2many
bzr revid: nicolas.vanhoren@openerp.com-20110513142038-wa87m5kbfviqstvr
2011-05-13 16:20:38 +02:00
niv-openerp 3bc12005bd [MERGE]
bzr revid: nicolas.vanhoren@openerp.com-20110513141459-g5b19i83hqvy9cnh
2011-05-13 16:14:59 +02:00
niv-openerp 68477ebc47 [IMP] Cleaned do_fill
bzr revid: nicolas.vanhoren@openerp.com-20110513135403-wcmctpibtw97fpah
2011-05-13 15:54:03 +02:00
niv-openerp 5f11a9f30c [IMP] Cleaned do_search_read.
bzr revid: nicolas.vanhoren@openerp.com-20110513133914-nvezbww1r84mpiju
2011-05-13 15:39:14 +02:00