Commit Graph

69750 Commits

Author SHA1 Message Date
Vo Minh Thu d6ea526e36 [MERGE] openerp.pooler is deprecated.
bzr revid: vmt@openerp.com-20130327164045-ziw4lj50owdvmfbw
2013-03-27 17:40:45 +01:00
Vo Minh Thu 23d672dfc3 [MERGE] reports: make it possible to use only XML declaration, even with custom parsers.
This makes report registration more uniform, and report rendering be possible
through the ORM (and thus the model service, instead of the report service).

To register a report, always use the database, i.e. a <report> tag within an
XML file. The custom parser, if any, will be specified in the database.
Previously specify a custom parser, the report was declared in Python.

Each model exposes a print_report() method, which will take the report name (as
many report can be defined on a single model) in argument.

bzr revid: vmt@openerp.com-20130327161129-6e7jz7l3lx7z1t18
2013-03-27 17:11:29 +01:00
Vo Minh Thu 255cec154a [IMP] report: let the exceptions bubble up when using eval().
bzr revid: vmt@openerp.com-20130327160420-pxw83283xcro1h52
2013-03-27 17:04:20 +01:00
Vo Minh Thu 4613a97c01 [REF] trolls.convert: missed an opportunity to reuse a beautiful association list.
bzr revid: vmt@openerp.com-20130327155917-xaepclhoazgw51ef
2013-03-27 16:59:17 +01:00
Xavier Morel 461973b4c9 [IMP] usage of python in convert_csv
* the reduce is equivalent to any
* apply De Morgan law
* misc.ustr is a function, can just pass it directly to map

bzr revid: xmo@openerp.com-20130327155424-dfbo915tl8qhsvqu
2013-03-27 16:54:24 +01:00
Vo Minh Thu 92aace0c13 [DOC] netsvc: typo in docstring.
bzr revid: vmt@openerp.com-20130327155353-5eo7r95e7gbw9c4l
2013-03-27 16:53:53 +01:00
Vo Minh Thu de5c84c0e1 [REF] removed nested import openerp.
bzr revid: vmt@openerp.com-20130327154714-fa3k6gqtsmlt3vx6
2013-03-27 16:47:14 +01:00
Vo Minh Thu ce58e16138 [REF] yaml_import: removed nested import openerp.
bzr revid: vmt@openerp.com-20130327154425-uu1fa01tdhrjt8kn
2013-03-27 16:44:25 +01: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 314a8dab70 [REF] pooler: mark the functions as deprecated.
bzr revid: vmt@openerp.com-20130327141653-p7re4tknkwe1pc80
2013-03-27 15:16:53 +01:00
Vo Minh Thu 1e7e2ca753 [REF] no longer use openerp.pooler.
Either use openerp.modules.registry.RegistryManager when the full
new() signature is needed, or use openerp.registry().

Replaced also some pool.get() with pool[] because KeyErrors
are better than AttributeErrors on None.

bzr revid: vmt@openerp.com-20130327111014-2i0hlvpy5y5ku7hm
2013-03-27 12:10:14 +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
Launchpad Translations on behalf of openerp 66fefa7a2b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130327050223-yffnhseuq99jdrwq
2013-03-27 05:02:23 +00:00
Launchpad Translations on behalf of openerp acbc7cdae5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130326044430-yyfw536a5h0tr28v
bzr revid: launchpad_translations_on_behalf_of_openerp-20130327043643-jbrczaj7na50t51e
2013-03-27 04:36:43 +00:00
Vo Minh Thu 7fea92de51 [MERGE] workflow: remove unused files, use standard logging, cosmetics.
bzr revid: vmt@openerp.com-20130326152350-vsaq6qp7fbowykbv
2013-03-26 16:23:50 +01:00
Vo Minh Thu 5cc71e1bab [FIX] workitem: the early return in the case workitem.state == running was seemingly wrong as workitem.state is mutated in some other IFs.
bzr revid: vmt@openerp.com-20130326143937-lf4mswer4ablj46i
2013-03-26 15:39:37 +01:00
Vo Minh Thu d185f17ec6 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130326140148-1fz425g5m2s0wwjd
2013-03-26 15:01:48 +01:00
Fabien Pinckaers 9b5db9ad9e [IMP] small code cleanup
bzr revid: fp@tinyerp.com-20130326080748-fij148wyb0tirip5
2013-03-26 09:07:48 +01:00
Thibault Delavallée 6f72fe3235 [FIX] mail: translate issue
bzr revid: tde@openerp.com-20130325151259-dghrblczpge5kgpr
2013-03-25 16:12:59 +01:00
Vo Minh Thu 385491f46e [IMP] yaml_import: add openerp in the evaluation context.
bzr revid: vmt@openerp.com-20130325144833-aos5t6x5bc8vi0ss
2013-03-25 15:48:33 +01:00
Vo Minh Thu 63222e389e [DOC] changelog updated to mention the new print_report().
bzr revid: vmt@openerp.com-20130325144055-kmoixbn2e40vr3vu
2013-03-25 15:40:55 +01:00
Vo Minh Thu 2829882389 [IMP] orm: added a print_report() method.
bzr revid: vmt@openerp.com-20130325143256-f8hw66j09310cgjo
2013-03-25 15:32:56 +01:00
Vo Minh Thu cea4c4ff8c [IMP] conf.deprecation: comment.
bzr revid: vmt@openerp.com-20130325134836-0mlduchmvw8ken2o
2013-03-25 14:48:36 +01:00
Vo Minh Thu 1ea66164f3 [IMP] report: registration deprecation now guarded via openerp.conf.deprecation.
bzr revid: vmt@openerp.com-20130325131756-5bns19n20nar9ogs
2013-03-25 14:17:56 +01:00
Vo Minh Thu 464af881bf [IMP] netsvc: LocalService deprecation now guarded via openerp.conf.deprecation.
bzr revid: vmt@openerp.com-20130325131245-9o5uizn6v4r8irc3
2013-03-25 14:12:45 +01:00
Vo Minh Thu 6e43e6c4e1 [FIX] reports: now that _register_all() has been removed, LocalService() must be modified to do the lookup in the database too.
bzr revid: vmt@openerp.com-20130325123359-szxx6a0n06tha70p
2013-03-25 13:33:59 +01:00
Vo Minh Thu 0d329163d1 [IMP] report_webkit: add a YAML test file to print the demo report.
bzr revid: vmt@openerp.com-20130325105319-4hyfk1thimr10o34
2013-03-25 11:53:19 +01:00
Launchpad Translations on behalf of openerp 4d51437082 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130325043808-54gm59kqxrqo9lou
2013-03-25 04:38:08 +00:00
Mantavya Gajjar a27afac0cb [FIX]: chanined picking generats picking without number.
bzr revid: mga@tinyerp.com-20130324094445-17r3zzykzkov4ztf
2013-03-24 15:14:45 +05:30
Launchpad Translations on behalf of openerp 5a3ed6f024 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130322045758-r467emaw1id95my6
bzr revid: launchpad_translations_on_behalf_of_openerp-20130323051036-xet3mefwdp8ohssd
bzr revid: launchpad_translations_on_behalf_of_openerp-20130324044538-isdnsnphf7510ri3
2013-03-24 04:45:38 +00:00
Vo Minh Thu 78526694af [FIX] setup.py: pyparsing >= 2.0.0 works only with Python 3.
bzr revid: vmt@openerp.com-20130323222407-aeix7m2uzwudsa9h
2013-03-23 23:24:07 +01:00
Launchpad Translations on behalf of openerp 75d8c79d5f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130323051022-macd2ux7syw6cdav
2013-03-23 05:10:22 +00:00
Vo Minh Thu 010d8044fe [REF] ir.actions.report.xml: renamed ids to res_ids because those are not the self model IDs.
bzr revid: vmt@openerp.com-20130322162251-j0f3eobpc6oh4il1
2013-03-22 17:22:51 +01:00
Vo Minh Thu b08d7ef6bd [REF] ir.actions.report.xml: register_all do not make sense any more:
auto=True reports are looked up in the database for each rendering, so they do
no have to be in the report registry any longer.
auto=False reports will register themselves but at this point
they can be updated to use the new `parser` XML attribute.

bzr revid: vmt@openerp.com-20130322153955-s6nyux2pyez6c01w
2013-03-22 16:39:55 +01:00
Vo Minh Thu 1683fc7abd [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130322135152-1hdlptwj1qqqfz4z
2013-03-22 14:51:52 +01:00
Thibault Delavallée 36e53ce8d2 [MERGE] [FORWARD] Forward port of addons 7.0 until revision 8906 (revid tde@openerp.com-20130321120451-qk524qayq28sw3th).
bzr revid: tde@openerp.com-20130321140935-8exurars7rznrnjk
2013-03-21 15:09:35 +01:00
Vo Minh Thu ff8a2935a6 [FIX] hr_timesheet: in hr.analytic.timesheet.unlink(), unlink the parent first (to ensure uninstall works correctly).
bzr revid: vmt@openerp.com-20130321134837-10skwf3nymzdbgsv
2013-03-21 14:48:37 +01:00
Raphael Collet 19f7083698 [MERGE] cleanup of Yaml files: do not translate assert messages
bzr revid: rco@openerp.com-20130321133805-e3rxb3laqjfy4mlp
2013-03-21 14:38:05 +01:00
Vo Minh Thu 067cd7d15a [FIX] ir_model_data: create the _inherits parent external ID prior to the child.
This is needed so the uninstall process can simply go through
the installed data by using the ir_model_data entries in reverse
order (when ordered by IDs), so that parents are deleted before
children.

bzr revid: vmt@openerp.com-20130321133202-igea1vxlszfpk6pe
2013-03-21 14:32:02 +01:00
Raphael Collet 9584109b86 [IMP] cleanup of Yaml files: do not translate assert messages
bzr revid: rco@openerp.com-20130321131824-422cc4mk2bm9yrw8
2013-03-21 14:18:24 +01:00
Thibault Delavallée 3106310824 [MERGE] Sync with 7.0 until 8906
bzr revid: tde@openerp.com-20130321120618-0vaokwa3bmvlpe01
2013-03-21 13:06:18 +01:00
Thibault Delavallée 88b39119b8 [MERGE] [FIX] mail_gateway: better algorithm to find the partner of an incoming email when having multiple matching partners for a given email address.
The mailgateway tries to find a partner that is also an user with the email_from.
If none is found, it takes the first partner with matching email.
In message_post, it tries to find the author based on the document's followers.
Indeed it is very likely that an answer comes from a follower of a document.

The whole process is not done inside the mailgateway because document
and followers related stuff belong to message_post, not to the mail gateway.

Tests have been added in mail.

bzr revid: tde@openerp.com-20130321120451-qk524qayq28sw3th
2013-03-21 13:04:51 +01:00
Fabien Meghazi f4a98e143b [MERGE] Date Picker is not translated into local language
lp bug: https://launchpad.net/bugs/1101072 fixed

bzr revid: fme@openerp.com-20130321115330-cz7gk7il6hkvntw9
2013-03-21 12:53:30 +01:00
dle@openerp.com 8239875fba [FIX]l10n_be_coda: add statement id in bank statement line view to allow group by statement
bzr revid: dle@openerp.com-20130321113911-ho4j30tyuqkn9hnn
2013-03-21 12:39:11 +01:00
Thibault Delavallée f02e8bfd61 [FIX] Broltch
bzr revid: tde@openerp.com-20130321112823-nmqzcjzigiwt09q7
2013-03-21 12:28:23 +01:00
Olivier Dony 57ca8fb11a [FIX] base.xml: improve backwards compatibility of SearchView.filters template to resolve JS errors on OpenERP Apps where 2 different versions of the web client frameworm can be mixed
The incompatible change was introduced at revision
 rev. 3803 revid:xmo@openerp.com-20130304152047-8xaczg9qdx6ug2p1.

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

bzr revid: odo@openerp.com-20130321112020-l9fwle08s37z4oqi
2013-03-21 12:20:20 +01:00
Thibault Delavallée 817727ce1c [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130321105157-xhj04tgt0in0x9o3
2013-03-21 11:51:57 +01:00
Thibault Delavallée b6013df881 [MERGE] [FIX] mail: reply_to of sent notification emails is sanitized.
bzr revid: tde@openerp.com-20130321105004-zcu1kagz06kxgimi
2013-03-21 11:50:04 +01:00
Fabien Meghazi c20977eed8 [FIX] Form binary fields 'Select' and 'Save as' buttons does not work under IE9
lp bug: https://launchpad.net/bugs/1092869 fixed

bzr revid: fme@openerp.com-20130321103407-nh0ncw0vrqba7zfm
2013-03-21 11:34:07 +01:00
Thibault Delavallée f6b713f1ee [FIX] mail: fixed errors trigerred by improved mail tests and last trunk modifications.
bzr revid: tde@openerp.com-20130321102151-qk1vf3iwhzd23k3s
2013-03-21 11:21:51 +01:00