Commit Graph

211 Commits

Author SHA1 Message Date
Vo Minh Thu 78986ba9d2 [REF] netsvc+ir_cron: removed unnecessary getLogger, removed double call to f/dispatch.
bzr revid: vmt@openerp.com-20110621083011-53toyp3lsa4rxs39
2011-06-21 10:30:11 +02:00
Vo Minh Thu 73a97f3c3b [YEAH]
bzr revid: vmt@openerp.com-20110620153347-zwc42po38cysj5p8
2011-06-20 17:33:47 +02:00
Vo Minh Thu ca91b75f21 [IMP] netsvc+ir_cron: display the execution time in debug_rpc.
bzr revid: vmt@openerp.com-20110620152615-kyl8s7z6we2or1yw
2011-06-20 17:26:15 +02:00
Olivier Dony 36d98cb14f [FIX] orm.fields_get: typo in last refactoring
bzr revid: odo@openerp.com-20110619115701-q06la7l6jhmihdk6
2011-06-19 13:57:01 +02:00
Launchpad Translations on behalf of openerp bad8913066 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110618045637-r4gxj14xt15ojkbe
2011-06-18 04:56:37 +00:00
Olivier Dony b867961cce [ADD] tools.misc: UnquoteEvalContext, for funky domain/context eval
UnquoteEvalContext gives you an easy way to work with
domains/context that are passed as strings but need to
be altered, while keeping the unknown symbols/names
unmodified when converted back to string.
Looks weird but is sometimes needed, because much of
the context/domain only make sense on client-side
(one of the reasons they are passed as strings in the
first place). Look at the docstring for an example.

bzr revid: odo@openerp.com-20110617170215-u6gb7b5q684rmo51
2011-06-17 19:02:15 +02:00
Olivier Dony a9bd4f2ce1 [FIX] netsv: don't try to post_mortem exception which don't have tracebacks (for --debug)
bzr revid: odo@openerp.com-20110617165645-zno4dj303irhndhx
2011-06-17 18:56:45 +02:00
Vo Minh Thu ccca7e938a [REF] orm: fields_get in pieces, now with docstring.
bzr revid: vmt@openerp.com-20110617072608-5tmwf2g2qb0pwrhk
2011-06-17 09:26:08 +02:00
Vo Minh Thu c9167c7d7a [MERGE] OSX handling of socket shutdown.
bzr revid: vmt@openerp.com-20110616104752-ypavxntrnl8jd1td
2011-06-16 12:47:52 +02:00
Xavier Morel 012c93ae40 [IMP] OSX handling of socket shutdown in TinySocketClientThread
When the client closes its socket, on OSX it closes the server one as well, leading to an errno.ENOTCONN when trying to shut it down.

Also use the unified socket-closing function to handle tinysocket

bzr revid: xmo@openerp.com-20110616102624-vixxow6twsx7j84s
2011-06-16 12:26:24 +02:00
Vo Minh Thu abb606aa7c [MERGE] orm: _auto_init made of smaller methods, use a metaclass to discover new models.
bzr revid: vmt@openerp.com-20110615160123-7bk8u94y916mdpkj
2011-06-15 18:01:23 +02:00
Vo Minh Thu 55c220f137 [MERGE] [osv: moved osv_pool to modules/registry.
bzr revid: vmt@openerp.com-20110615153954-d0fbws57z2w2r6db
2011-06-15 17:39:54 +02:00
Vo Minh Thu e4d8e91c4a [MERGE] `multi` support for function fields.
bzr revid: vmt@openerp.com-20110615152659-1g2s5vc3outecd71
2011-06-15 17:26:59 +02:00
Vo Minh Thu 78e7117c92 [DEL] ir_board: removed unused module.
lp bug: https://launchpad.net/bugs/767015 fixed

bzr revid: vmt@openerp.com-20110615103831-bmb6g3zr3nzq0kxu
2011-06-15 12:38:31 +02:00
Yogesh (OpenERP) 45e8ba8474 [IMP] improve code.
bzr revid: ysa@tinyerp.com-20110615102551-np3mfev3eq5z4iwp
2011-06-15 15:55:51 +05:30
Vo Minh Thu dc4ee86376 [REF] osv: use a metaclass to discover new models.
bzr revid: vmt@openerp.com-20110615102115-sjobt06ag72xiqaf
2011-06-15 12:21:15 +02:00
Yogesh (OpenERP) 2f635092d2 Improve code.
bzr revid: ysa@tinyerp.com-20110615084717-ya7v52ngikwn4zy8
2011-06-15 14:17:17 +05:30
Vo Minh Thu 23dec280c7 [MERGE] osv: db_name changed to dbname.
bzr revid: vmt@openerp.com-20110615073142-t97lwikzrpe1g5js
2011-06-15 09:31:42 +02:00
Vo Minh Thu 26f22874d9 [LINT] removed unused variable, forgot to change two variables in last commit, corrected typo introduced at 3417.6.6.
bzr revid: vmt@openerp.com-20110615072231-jh977xk1jupekkpp
2011-06-15 09:22:31 +02:00
Launchpad Translations on behalf of openerp 6b34c3addc Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110615043944-84zko94ku42dqhfs
2011-06-15 04:39:44 +00:00
Vo Minh Thu e375049414 [REF] osv: moved osv_pool to modules/registry.
bzr revid: vmt@openerp.com-20110614142226-yd3y39a8z3ubwvxm
2011-06-14 16:22:26 +02:00
Vo Minh Thu 8965db1ec2 [DEL] orm: removed half-baked fix.
bzr revid: vmt@openerp.com-20110614113354-rcsyua15m1kqhrgj
2011-06-14 13:33:54 +02:00
Vo Minh Thu e360ae580a [REF] orm: added some comments.
bzr revid: vmt@openerp.com-20110614101311-bjy33thvzfnla74t
2011-06-14 12:13:11 +02:00
Vo Minh Thu 08b750af47 [REF] orm: brake _auto_init in shorter methods.
bzr revid: vmt@openerp.com-20110614093715-yxaiqd2xzf6vdy8w
2011-06-14 11:37:15 +02:00
Vo Minh Thu 75b8291486 [IMP] orm: added comment, and delete an attribute when it is no more needed.
bzr revid: vmt@openerp.com-20110614084415-0noz6dlclnr09sbh
2011-06-14 10:44:15 +02:00
Quentin (OpenERP) 4432d6a9f2 [IMP] safe_eval: added min() in usable functions
bzr revid: qdp-launchpad@openerp.com-20110614082920-aokyfw4iizj0fte5
2011-06-14 10:29:20 +02:00
fp 6758ee6133 [IMP] report engine: added possibility to use styles on TR tag
bzr revid: qdp-launchpad@openerp.com-20110614082711-l5cvbvm405h247ek
2011-06-14 10:27:11 +02:00
Yogesh (OpenERP) a0eba446d9 [IMP] improve get method of function field.
bzr revid: ysa@tinyerp.com-20110613111949-u71pez6qpdfwk1iy
2011-06-13 16:49:49 +05:30
Naresh (OpenERP) 64df44c12b [FIX]:The pdf when printing workflow was always showing 'G' in the title changed to model name
bzr revid: nch@tinyerp.com-20110614065257-nuqlqhrkw2yd5lm4
2011-06-14 12:22:57 +05:30
Nicolas Vanhoren 68102fecd1 [MERGE] addition of name_create() ORM method for new m2o behavior in 6.1
bzr revid: odo@openerp.com-20110610173130-3dvj5t2ji8buwjrg
2011-06-10 19:31:30 +02:00
niv-openerp f888b06959 [imp] added method name_create to orm
bzr revid: nicolas.vanhoren@openerp.com-20110610161002-76kfpwb1xexryfmh
2011-06-10 18:10:02 +02:00
Vo Minh Thu 1b45a892dd [REF] orm: defer foreign key creation.
bzr revid: vmt@openerp.com-20110610140521-mdd6zvvzeoubier4
2011-06-10 16:05:21 +02:00
Vo Minh Thu d4adda9d06 [MERGE] ir_values: added asserts on the models argument type.
bzr revid: vmt@openerp.com-20110610101924-al1z5vvmcehbcgva
2011-06-10 12:19:24 +02:00
P. Christeas ba03d85325 ir.values: whitespace cleaning, put assertions on arg types
res.lang was calling with modules='string', which was not right.
Don't allow such a case.

bzr revid: xrg@linux.gr-20110610091852-y8083s085gn6kwcs
2011-06-10 12:18:52 +03:00
Vo Minh Thu 971276b599 [ADD] openerp/netsvc: use cgitb to format the exception sent to the client, code/idea by chs.
bzr revid: vmt@openerp.com-20110609073416-ml22a1vhtizl3z71
2011-06-09 09:34:16 +02:00
Vo Minh Thu e1e0860f1d [MERGE] res/partner/crm: removed unused code.
bzr revid: vmt@openerp.com-20110608150455-hd6tjghx938d94yh
2011-06-08 17:04:55 +02:00
Vo Minh Thu 2d1f8c93dd [MERGE] ir_translation: lang field selection only displays installed languages.
bzr revid: vmt@openerp.com-20110608145033-67n0g3g28pw91c9l
2011-06-08 16:50:33 +02:00
Antony Lesuisse 28a37267e4 [IMP] ir_translation only display installed lang, context in read
bzr revid: al@openerp.com-20110608141806-oeixkg763vgmv2we
2011-06-08 16:18:06 +02:00
Yogesh (OpenERP) 04c0fc1931 Remove unused code.
lp bug: https://launchpad.net/bugs/792059 fixed

bzr revid: ysa@tinyerp.com-20110608124813-62yj6d75yxy8o0p0
2011-06-08 18:18:13 +05:30
Launchpad Translations on behalf of openerp 01dcbe5313 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110607043504-fva0ovzg24qy3nqd
2011-06-07 04:35:04 +00:00
Vo Minh Thu 00c2b7172b [MERGE] use drawCentredString instead of drawString for report header.
bzr revid: vmt@openerp.com-20110606123941-26v9uoetil2gc8ox
2011-06-06 14:39:41 +02:00
Vo Minh Thu cdf9746d8e [MERGE] res_widget: remove res.widget.user entries when user deleted.
bzr revid: vmt@openerp.com-20110606111057-g97n2woy1ljyt67k
2011-06-06 13:10:57 +02:00
Vo Minh Thu 6a2b93ea0d [REF] res_company: as part of the previous commit:
- dont use methods when plain values are ok (in _constraints),
- dont duplicate strings if it is not necessary.

bzr revid: vmt@openerp.com-20110606094338-58zoutk86hm0j68s
2011-06-06 11:43:38 +02:00
Vo Minh Thu 641f3a88f3 [MERGE] "%s" % a + b should be "%s" % (a + b).
bzr revid: vmt@openerp.com-20110606081752-crltlidap2t1hloj
2011-06-06 10:17:52 +02:00
Vo Minh Thu f2770c9ac4 [FIX] netrpc_server: close as soon as possible the socket, and do it after a communication-level exception.
lp bug: https://launchpad.net/bugs/785009 fixed

bzr revid: vmt@openerp.com-20110606074856-e726j4klc5ljiq5w
2011-06-06 09:48:56 +02:00
P. Christeas a2557925b6 yaml_import: fix ambiguous syntax at end of report
When finishing a YAML import, the syntax ["str %d" % int + int] turns
out to be ambiguous and is resolved as [ ("str %d" % int) + int],
leading to a:
  TypeError: cannot concatenate 'str' and 'int' objects

This had been first fixed in commit f46966e044d18a644 (2010-06-30)
(cherry picked from commit cc0c584e5dfbf672d51f61e7207047f357e31471)

bzr revid: xrg@linux.gr-20110605135116-ie2h7gnvnx2kpdoy
2011-06-05 16:51:16 +03:00
Vo Minh Thu ce5d00e03b [REF] res_lang: removed unused variable.
lp bug: https://launchpad.net/bugs/791756 fixed

bzr revid: vmt@openerp.com-20110603085758-ji277jy5mbn9wq3t
2011-06-03 10:57:58 +02:00
Antony Lesuisse 6aa240ca19 [IMP] ir_translation only display installed lang, 10% speedup in translation loading
bzr revid: al@openerp.com-20110601163455-2o732ssum24kwshu
2011-06-01 18:34:55 +02:00
Vo Minh Thu b681b0ec75 [ADD] tools/config: started tests.
bzr revid: vmt@openerp.com-20110601115055-idoid8p0pnkfci38
2011-06-01 13:50:55 +02:00
Vo Minh Thu 4b3aa9c764 [FIX] modules/loading: revert a change where db.initialize was removed:
- it should be removed
- but some code will test if the ir_module_module table exists
- and will force the demo data.

bzr revid: vmt@openerp.com-20110601113353-hdmyl4is9poss8hh
2011-06-01 13:33:53 +02:00