Commit Graph

4586 Commits

Author SHA1 Message Date
Vo Minh Thu c313b4073a [REF] logging: removed pseudo log-level TEST.
When --test-enable is used, it is expected that test output is visible,
thus using log-level INFO is natural.

On the down side you lose the nice blue hint that tests did actually
run when --log-level test was given.

bzr revid: vmt@openerp.com-20130326155844-83e2tcqokvblr0ln
2013-03-26 16:58:44 +01:00
Vo Minh Thu d96ec9c680 [REF] logging: removed deprecated Logger class.
bzr revid: vmt@openerp.com-20130326154006-s19z7aem22qeboo0
2013-03-26 16:40:06 +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
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 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
Vo Minh Thu a51b6912bd [FIX] safe_eval: better exception handling:
- the re-raising of exceptions ignored the "legal" exceptions
(the one used to early abort RPC calls and generate pop-ups)
- re-raising the exception was attempting to re-use the original
exception type but it does not always take only one argument
so it was breaking.

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

bzr revid: vmt@openerp.com-20130320132238-qzo3jptww59ndlch
2013-03-20 14:22:38 +01:00
Xavier Morel 9476f07954 [IMP] only concatenate logging configuration subsequences once
bzr revid: xmo@openerp.com-20130319163708-s4mxsdg3f9xksr07
2013-03-19 17:37:08 +01:00
Xavier Morel 7c2b70eb46 [IMP] declaratively map openerp logging levels to logging, move default logging conf to 'constant'
bzr revid: xmo@openerp.com-20130319163606-un9ogalwfk3eykc8
2013-03-19 17:36:06 +01:00
Xavier Morel db6b6480f7 [IMP] switch workflows to standard logging (silenced by default), remove wkf_logs
bzr revid: xmo@openerp.com-20130319163133-3n1k1hgooddzxntz
2013-03-19 17:31:33 +01:00
Xavier Morel 5f956523d4 [IMP] flow of workflow.workitem.process
bzr revid: xmo@openerp.com-20130319154857-q7l99vyqtksegiy0
2013-03-19 16:48:57 +01:00
Xavier Morel 2d251ea987 [REM] unused openerp.workflow.common
bzr revid: xmo@openerp.com-20130319153422-0s7sly0cjg491s0b
2013-03-19 16:34:22 +01:00
Vo Minh Thu fa3a3414f2 [FIX] ir.actions.action: fix the execute wich install/uninstall modules and thus invalidate its own pool.
bzr revid: vmt@openerp.com-20130319142701-1cvo6dh2yvg4z81f
2013-03-19 15:27:01 +01:00
Thibault Delavallée 027c419181 [MERGE] 'Invite & Quick Create User' update. The server branch holds in res_users.create() the support of key in context, allowing to put xml_ids of user groups in the context of relational fields linking to res.users. The purpose of this modification is to quick-create users that will have the access rights related to the functional meaning of the field. For example creating an user in the 'Responsible' field of a task should add him in the group related to project management.
Example of use : <field name="user_id" string="Project Manager" context="{'default_groups_ref': ['base.group_user', 'project.group_project_manager']}"/> will add Employee (base.group_user) and Project Manager (project.group_project_manager) groups, as well as implied groups.

res_users:
- [add] added support of  key in context of default_get. It contains a list of xml_ids of user groups; those groups, if found, are added to the newly created user,
- [ref] refactored simplified (quick create) view that is now more like a contact card, with login and email required because of the login email that will be send to the user

bzr revid: tde@openerp.com-20130318120905-1w9xpoyppnj62wlj
2013-03-18 13:09:05 +01:00
Olivier Dony 8e3ba8e34e [FIX] service.db: missing imports
lp bug: https://launchpad.net/bugs/1155523 fixed

bzr revid: odo@openerp.com-20130318110257-x9591dl74vu8yf2f
2013-03-18 12:02:57 +01:00
Olivier Dony 125b2a804a [IMP] service.wsgi_server: useless import
bzr revid: odo@openerp.com-20130318110229-h4422zy2kcjys2ik
2013-03-18 12:02:29 +01:00
Thibault Delavallée 7602819aa3 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130315093732-2u1lc5x51276ethu
bzr revid: tde@openerp.com-20130318101836-rve5ane4rheiiq6k
2013-03-18 11:18:36 +01:00
Xavier Morel 9494f21ea8 [FIX] __getattr__ implementation on BaseModel
object has no __getattr__, in the usual case super(BaseModel,
self).__getattr__ will blow up with an AttributeError (but the wrong
one).

On the other hand, if a BaseModel descendant class is used in MI
alongside a non-BM descendant (e.g. res_partner inheriting from Model
and format_address) and the non-BM descendant also implements
__getattr__, we want to forward the failed attr search to the other
__getattr__ implementation.

So check if super() has a __getattr__, call it if it does otherwise
AttributeError right there.

bzr revid: xmo@openerp.com-20130315115302-z7jla334gb9a5e43
2013-03-15 12:53:02 +01:00
Thibault Delavallée a8aebe31f3 [IMP] res_users: improved simplified form (using info_box).
bzr revid: tde@openerp.com-20130315093658-8ihhf3h4w6q3vypo
2013-03-15 10:36:58 +01:00
Launchpad Translations on behalf of openerp e23fba677e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130315045639-qfbb8ay587g0rs6p
2013-03-15 04:56:39 +00:00
Vo Minh Thu c79c23d26e [REF] orm:
- isinstance(ids, dict) is done at the end, but not at the beginning,
so if ids was a single dict, it would break in the map(lambda).
- The loop to convert None to False can be done in _read_flat instead
of read (there is already plenty of loops in _read_flat)
- The __getattr__ was breaking the stacktrace.

bzr revid: vmt@openerp.com-20130314154418-0wmxfw1ot92kjmzf
2013-03-14 16:44:18 +01:00
Vo Minh Thu 487fe3a1ab [MERGE] [FIX] ir.model: uninstall should not drop LOG_ACCESS_COLUMNS columns.
bzr revid: vmt@openerp.com-20130314131127-93qvwrpz0li3ba32
2013-03-14 14:11:27 +01:00
Thibault Delavallée 69bcf72639 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130314083048-fu4gwcsh3z5t7anj
2013-03-14 09:30:48 +01:00
Xavier Morel fd3035021d [FIX] missing import in wsgi_server
bzr revid: xmo@openerp.com-20130313161815-rcupbzq08b2wst1j
2013-03-13 17:18:15 +01:00
Christophe Matthieu bf4f5cb72b [IMP] res_user: change default groups message in simplified view
bzr revid: chm@openerp.com-20130313154447-78z9zvgf8nonl9hj
2013-03-13 16:44:47 +01:00
Christophe Matthieu 9957d9654a [IMP] res_user: add a try catch in default_get for get_object_reference of default_groups_ref
bzr revid: chm@openerp.com-20130313154309-6dbd7y1ftxzpcmlx
2013-03-13 16:43:09 +01:00
Launchpad Translations on behalf of openerp a67b872184 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130313043725-lauj92alx7hw7t25
2013-03-13 04:37:25 +00:00
Launchpad Translations on behalf of openerp 16ec96b2e8 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130311045516-m6tmmcamdapi5m23
2013-03-11 04:55:16 +00:00
Olivier Dony 6fbb9d11aa [FIX] base: invalid address in demo data causes failure in Google Maps lookup
Apprently on 2013-03-08 Google Maps stopped
returning a location in Belgium for this invalid
street name.

We consider Google Maps as a commodity so it
is ok to have the crm_partner_assign tests
fail in case our lookup mechanism does
not work anymore.

Note: this is a cherry pick of the 7.0
fix as a quick fix because the complete
forward-port of 7.0->trunk will require
some more time for conflict resolution

bzr revid: odo@openerp.com-20130308103110-eoj3lme49vy5jo91
2013-03-08 11:31:10 +01:00
Launchpad Translations on behalf of openerp a096862741 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130306054606-ju4aloay33hkydc5
2013-03-06 05:46:06 +00:00
Thibault Delavallée a5f44c67dd [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130305082618-o63zlhwa13r1994u
2013-03-05 09:26:18 +01:00
Christophe Matthieu b860c00593 [IMP] res_partner: remove help for quick create of user_id
bzr revid: chm@openerp.com-20130304130632-ym2iax2b3p89ifn3
2013-03-04 14:06:32 +01:00
Christophe Matthieu ac1684c59f [IMP] res_user: simplified view for quick create
bzr revid: chm@openerp.com-20130301125339-m2gdndch9tc2cv3k
2013-03-01 13:53:39 +01:00
Vo Minh Thu c0d302ae0e [FIX] ir.model: uninstall should not drop LOG_ACCESS_COLUMNS columns.
bzr revid: vmt@openerp.com-20130301110730-8mlnj9emjo3ifdq1
2013-03-01 12:07:30 +01:00
Antony Lesuisse acb17855f9 [IMP] logrotation is now disabled by default
bzr revid: al@openerp.com-20130228011811-1700jfnavo37dyqr
2013-02-28 02:18:11 +01:00
Christophe Matthieu 3b6e76f5b4 [IMP] res_user: fix default_get; add default groups on simplified view
bzr revid: chm@openerp.com-20130227085023-q8mwozccystgf23a
2013-02-27 09:50:23 +01:00
Antony Lesuisse 7bdcf8817f m
bzr revid: al@openerp.com-20130226162648-pnf4ysf361a6g83j
2013-02-26 17:26:48 +01:00
niv-openerp ef2ff05d2d [FIX] typo that caused crash in cron only when launching server with --workers
bzr revid: nicolas.vanhoren@openerp.com-20130226161853-26a2vz9tn8nnc44z
2013-02-26 17:18:53 +01:00
Olivier Dony 84a536dca6 [MERGE] res.config: fix incorrect assertion syntax in tests
bzr revid: odo@openerp.com-20130226153623-ci35l04otvk5mb3t
2013-02-26 16:36:23 +01:00
Antonin Bourguignon e3bfbf8b9f [IMP] use assertIsInstance instead of assertTrue
bzr revid: abo@openerp.com-20130226105832-xq3mbnml1iwzvg67
2013-02-26 11:58:32 +01:00
Christophe Matthieu a90ef98704 [MERGE] from trunk
bzr revid: chm@openerp.com-20130226105813-1mi6tg4h7460vyj2
2013-02-26 11:58:13 +01:00
Antonin Bourguignon 1aef18870f [IMP] use assertEqual instead of assertTrue and fix a test
bzr revid: abo@openerp.com-20130226104541-hmzla9y2sa3qfqgi
2013-02-26 11:45:41 +01:00
Vo Minh Thu dee8cc8e50 [MERGE] Better exception handling in tools.convert:
- The exception is not logged in tools.convert. It is loggeg by the netsv layer anyway.
- The exception is re-raised instead, but with the full traceback available.
- A fix in openerp.service.db where the cr is closed twice.

bzr revid: vmt@openerp.com-20130226100243-mpns1k9odz69gpax
2013-02-26 11:02:43 +01:00
Vo Minh Thu eb7bc74c51 [MERGE] safe_eval: do not log reported exception, instead re-raise them with a complete stacktrace and the evaluated expression.
bzr revid: vmt@openerp.com-20130226100130-hxwgfvwlvvcox5mr
2013-02-26 11:01:30 +01:00
Vo Minh Thu d43dba744c safe_eval: re-raise the same exception type when completing it.
bzr revid: vmt@openerp.com-20130226094446-7c2dw5c5eou0lg8r
2013-02-26 10:44:46 +01:00
Launchpad Translations on behalf of openerp ab52d114de Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130226050906-46stgrk7893w9l9n
bzr revid: launchpad_translations_on_behalf_of_openerp-20130226050918-7395f7imyy1j0jhs
2013-02-26 05:09:18 +00:00
Vo Minh Thu b71457e258 [FIX] tools.convert: use tools.ustr() instead of str() on exceptions.
bzr revid: vmt@openerp.com-20130225164028-d48k5yheuoph1vm3
2013-02-25 17:40:28 +01:00
Vo Minh Thu c62780673c [FIX] tools.safe_eval: we want to see the expr which fail to eval(), so report it in the exception.
bzr revid: vmt@openerp.com-20130225163525-3g9qw1g3hkyyxf1j
2013-02-25 17:35:25 +01:00
Vo Minh Thu f1adca94c0 [MERGE] netsvc/service.model: added missing/removed unnecessary `except` clauses.
bzr revid: vmt@openerp.com-20130225155828-a364gk3ii2prxe0b
2013-02-25 16:58:28 +01:00