Commit Graph

107 Commits

Author SHA1 Message Date
Thibault Delavallée 2c32d92ee5 [CLEAN] res_config, res_users: cleaned call to imd.get_object() + code cleaning
- res_config: raise by default, no need to set the argument at True
- res_users: directly embedded get_user_groups_view code inside update_user_groups_view.
The try / except is still necessary, because when installing a new db, groups and users
are created before the user_groups_view view effectively exist. Due to some circular
references, the try / except is therefore necessary to install a new db.

bzr revid: tde@openerp.com-20140116134056-nyiybx7zsr8rhkiv
2014-01-16 14:40:56 +01:00
Thibault Delavallée 1731f6158d [IMP] res_config, res_users: cleaned get_object calls: new behavior, using compat mode
bzr revid: tde@openerp.com-20131206121357-5lijzhyytz9tps1m
2013-12-06 13:13:57 +01:00
Christophe Simonis 56bb1b9869 [MERGE] forward port of branch saas-2 up to revid 4992 chs@openerp.com-20131202105848-33gcz1715w370rve
bzr revid: chs@openerp.com-20131127110757-5kaay2kcxq0ysb59
bzr revid: chs@openerp.com-20131127161639-yur4rdh3wx43kxle
bzr revid: chs@openerp.com-20131127180647-f8uws77gaym5kfvd
bzr revid: chs@openerp.com-20131202110030-gf20dv2uj5fqv7c2
2013-12-02 12:00:30 +01:00
Denis Ledoux 20be322c45 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9684 rev-id: dle@openerp.com-20131209145652-3g9rgnfz1w8k0whw
bzr revid: chs@openerp.com-20131202105848-33gcz1715w370rve
bzr revid: dle@openerp.com-20131204150643-is3y0b9n8enh3yql
bzr revid: chs@openerp.com-20131206152726-pirikn7v8pev90ic
bzr revid: dle@openerp.com-20131206162437-b9niay99mirk44qm
bzr revid: tde@openerp.com-20131209102019-kjeg0rx2au1d5e5v
bzr revid: dle@openerp.com-20131209155721-589zihxx8jmvlpvp
2013-12-09 16:57:21 +01:00
Denis Ledoux 04cdf223b6 [FIX]res_config: set_default as SUPERUSER_ID. check user group to avoid passthrough access rights security
bzr revid: dle@openerp.com-20131129154806-0gaqdbp6zobdqxy4
2013-11-29 16:48:06 +01:00
Christophe Simonis 0e1cc663b3 [MERGE] forward port of branch saas-2 up to revid 4968 chs@openerp.com-20131031142325-vo84hk5co2e2phg0
bzr revid: chs@openerp.com-20131031143208-4gtdju33sv0wdtcg
2013-10-31 15:32:08 +01:00
Denis Ledoux 0cf57bdee2 [MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 8800 rev-id: dle@openerp.com-20131031162241-goga1hsvwgyqigzd
bzr revid: chs@openerp.com-20131031142325-vo84hk5co2e2phg0
bzr revid: dle@openerp.com-20131031143133-wfus2hag57e73by2
bzr revid: dle@openerp.com-20131031162928-8gpom1ralccy07uc
2013-10-31 17:29:28 +01:00
Christophe Simonis 82211b1ac2 [MERGE] forward port of branch 7.0 up to revid 5113 launchpad_translations_on_behalf_of_openerp-20131031054724-b9dbttdcrl9eccwr
bzr revid: chs@openerp.com-20131025103657-pbnqhw11mygyi5jn
bzr revid: chs@openerp.com-20131031142125-7bm00z2jpccf3v6f
2013-10-31 15:21:25 +01:00
Martin Trigaux 57a78f3f97 [FIX] res_config: don't jump to first root menu after applying changes, instead reload and stay on same configuration page
bzr revid: mat@openerp.com-20131025154657-fk7t72hl9cns2279
2013-10-25 17:46:57 +02:00
Antony Lesuisse 6488849191 [REM] res.config and res.users cleanups.
removed deprecated configuration wizards
removed deprecated busniess card report
moved change password wizard to res_users.py

bzr revid: al@openerp.com-20131006144020-zyp2jz5vy28m9q3f
2013-10-06 16:40:20 +02:00
Christophe Simonis 4327e09a55 [MERGE] forward port of branch saas-1 up to revid 4903 dle@openerp.com-20130909170248-a4t5y6qd5ikkhhac
bzr revid: chs@openerp.com-20130910121230-xcr2yj6rpbo83wy0
2013-09-10 14:12:30 +02:00
Denis Ledoux 055c4b94f2 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5059 rev-id: dle@openerp.com-20130828125209-5jqwjqhrl17x7kpa
bzr revid: dle@openerp.com-20130828135425-yuls3wav79znadt3
2013-08-28 15:54:25 +02:00
Denis Ledoux 57818bb779 [FIX]res_config: in _install_modules, result returned by button_immediate_install must be returned, in order to launch the action if there is one. TODO fix,at the moment, if there are missing modules, this return statement prevent their installation
bzr revid: dle@openerp.com-20130828125209-5jqwjqhrl17x7kpa
2013-08-28 14:52:09 +02:00
Raphael Collet ab6480dd0c [FIX] res_config tests: isinstance(x, long) is False when x is an int!
bzr revid: rco@openerp.com-20130508153207-0j8m0eiia2rvwmtf
2013-05-08 17:32:07 +02:00
Christophe Simonis 261dea6fec [MERGE] forward port of server v7 up to revision 4954
bzr revid: qdp-launchpad@openerp.com-20130422093655-txqmbalod6qmw1s6
bzr revid: chs@openerp.com-20130423183723-9kiexdyzdew8iuzm
2013-04-23 20:37:23 +02:00
Christophe Simonis b01528e3f0 [FIX] res_config: add missing import lost during previous commit
bzr revid: chs@openerp.com-20130411183634-pmg5cn82f8s174y1
2013-04-11 20:36:34 +02:00
Christophe Simonis 841cf5aaad merge upstream
bzr revid: chs@openerp.com-20130411154519-xvepmjrm4ibqddx7
2013-04-11 17:45:19 +02: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 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
Antonin Bourguignon 74e7deafb8 [IMP] res_config doc
bzr revid: abo@openerp.com-20130222170541-26wsg1r8kkb0h4vp
2013-02-22 18:05:41 +01:00
Quentin (OpenERP) 0a27066e54 [REF] code review
bzr revid: qdp-launchpad@openerp.com-20130215143503-6a6x53gdeb6j33tm
2013-02-15 15:35:03 +01:00
Antonin Bourguignon fd530ec981 [FIX] doc: the id of an action is a long, not an int
bzr revid: abo@openerp.com-20130212165318-joldqhz0apilwmsp
2013-02-12 17:53:18 +01:00
Antonin Bourguignon e274ccc7cb [MERGE] trunk
bzr revid: abo@openerp.com-20130211150920-c5yam3yykht1qdpn
2013-02-11 16:09:20 +01:00
Antonin Bourguignon a2d53ee33b [IMP] the implementation of get_option_path(): return a tuple with the full path and the id of the action linked to the given menu xml id
bzr revid: abo@openerp.com-20130131181853-mp7r238q0zf5go4l
2013-01-31 19:18:53 +01:00
Antonin Bourguignon 2459399cac [IMP] make get_config_warning() a method of res.config.settings, avoiding heavy import of res_config or long path calls like 'openerp.addons.base.res.res_config.get_config_warning()'
just use self.pool.get('res.config.settings').get_config_warning() instead

bzr revid: abo@openerp.com-20130130165642-pq5sbdluesxu7p6d
2013-01-30 17:56:42 +01:00
Antonin Bourguignon 3d0b141406 [IMP] remove default 'None' value (doesn't make sense anymore)
bzr revid: abo@openerp.com-20130130163032-jsfm0fa5r54wmvpv
2013-01-30 17:30:32 +01:00
Christophe Simonis 16289266c9 [FIX] res.config.installer: correct module installing
bzr revid: chs@openerp.com-20130125133453-aqu5eotetdyb2zpj
2013-01-25 14:34:53 +01:00
Christophe Simonis c9c5f4b785 [FIX] res.config.installer: correct module installing
bzr revid: chs@openerp.com-20130124182808-5xvdc0mqst0h2970
2013-01-24 19:28:08 +01:00
Antonin Bourguignon 59dc49061c [IMP] we don't need a special type of exception anymore
bzr revid: abo@openerp.com-20130124154119-5283u6x1it5xvt0r
2013-01-24 16:41:19 +01:00
Christophe Simonis b3b800bd17 [FIX] signal registry change when install modules from config wizards
bzr revid: chs@openerp.com-20130123174724-bqonj3d4dufof2vw
2013-01-23 18:47:24 +01:00
Antonin Bourguignon 28960472df [IMP] use fields_get() instead of _all_columns.get(): this method has the advantage to provide translation support
bzr revid: abo@openerp.com-20130123154943-2ux9vpts4pmvr7nq
2013-01-23 16:49:43 +01:00
Antonin Bourguignon 5cb047aa75 [IMP] add documentation
also replace the %(path:)s by %(menu:)s (more cohesive)

bzr revid: abo@openerp.com-20130122162223-no1wzf1gyxpdvzqk
2013-01-22 17:22:23 +01:00
Antonin Bourguignon 9419e59fef [IMP] change the warning string's pattern to something more familiar to translators
bzr revid: abo@openerp.com-20130122143156-ffp79tdg1ryvr5y2
2013-01-22 15:31:56 +01:00
Antonin Bourguignon 8ab50cc0ef [WIP] remove a useless translation phase
bzr revid: abo@openerp.com-20130121181650-md0t80lokegr5kx1
2013-01-21 19:16:50 +01:00
Antonin Bourguignon 0a0e5e9fb0 [WIP] heavy refactoring of the get option path feature
bzr revid: abo@openerp.com-20130121165916-9oc7ox7ygmpb6lhm
2013-01-21 17:59:16 +01:00
Antonin Bourguignon 9d8a2b9eb5 [WIP] move the code to another place
bzr revid: abo@openerp.com-20130121150748-3bw28jhvsj23s1zo
2013-01-21 16:07:48 +01:00
Antonin Bourguignon 6f5c0e1a08 [REV] reintroduce the model's name in the get_path()'s signature, but in a different way
bzr revid: abo@openerp.com-20130118171541-tyxl4k6w1wwa3kyl
2013-01-18 18:15:41 +01:00
Antonin Bourguignon a075983249 [IMP] simplify the helper by using SUPERUSER_ID
bzr revid: abo@openerp.com-20130118110300-d0z0xr8df0zygiv5
2013-01-18 12:03:00 +01:00
Antonin Bourguignon fb5288e93c [IMP] get_path code; return a tuple instead of a string
also add a helper

bzr revid: abo@openerp.com-20130117183342-rhfnxh4y777rruqt
2013-01-17 19:33:42 +01:00
Antonin Bourguignon c588e762d4 [IMP] simplify the new config reference mechanism code
bzr revid: abo@openerp.com-20130117160546-mg9g9zrbvp4poly6
2013-01-17 17:05:46 +01:00
Antonin Bourguignon 70890bfa32 [WIP] introduce a way to reference specific config options
bzr revid: abo@openerp.com-20130116171454-s4tt2f6le80oruc0
2013-01-16 18:14:54 +01:00
Antonin Bourguignon fc58729b2f [WIP] introduce a way to reference specific config options
bzr revid: abo@openerp.com-20130115174705-qldpq3le1ul4nh0j
2013-01-15 18:47:05 +01:00
Olivier Dony d33266dc60 [FIX] res.config: install local modules directly, only use apps.openerp.com for missing ones
bzr revid: odo@openerp.com-20121221204539-u3h92damvgbd0539
2012-12-21 21:45:39 +01:00
Vo Minh Thu 83786b4178 [FIX] ir.actions.action: fix the execute wich install/uninstall modules and thus invalidate its own pool.
bzr revid: vmt@openerp.com-20130319150057-fq6nkp4qhgy9x9mq
2013-03-19 16:00:57 +01:00
Olivier Dony 9770caedf3 [FIX] registry: another pass of cleanup for registry signaling
Some important points to consider:
 - signaling should be done after any schema alteration (including module [un]installation),
   service registration (e.g. reports)
 - the changes need to be committed to the database *before* signaling, otherwise an
   obvious race condition occurs during reload by other workers
 - any call to restart_pool() must be considered a possible candidate for
   signaling, and the 2 above conditions must be checked

The number of explicit calls was reduced by forcing the signaling at the end of
Registry.new() in case `update_module` was passed as True. In that situation
we always want to signal the changes - so all the redundant signaling calls
can be centralized. We can also assume that the relevant changes have already
been committed at that point, otherwise the registry update would not
have worked in the first place.
This means that there is no need for explicit signaling anymore everytime
`restart_pool` is called with `update_module=True`.

Some missing cr.commit() and explicit signaling calls were added or
moved to the right place. As a reminder: signaling must be done
*after* committing the changes, and usually *after* reloading the
registry on the current worker.

bzr revid: odo@openerp.com-20130301143203-e2csf5pkllwhmwqs
2013-03-01 15:32:03 +01:00
Antony Lesuisse 565853b732 [MERGE] trunk
bzr revid: al@openerp.com-20121219030106-i59u10tml3baqvun
bzr revid: al@openerp.com-20121219150107-8l92w2bi510yem45
2012-12-19 16:01:07 +01:00
Christophe Simonis 0c7f17c0ac merge upstream
bzr revid: chs@openerp.com-20121217172614-3z1pstu5th26wuuc
2012-12-17 18:26:14 +01:00
Cecile Tonglet ad8b76de53 [MERGE] From trunk (second time)
bzr revid: cto@openerp.com-20121217144753-1rboqdw01h8yrehj
2012-12-17 15:47:53 +01:00
Cecile Tonglet 5f0070dcb6 [FIX] Remove unused imports and fix some imports that doesn't use the new namespace
bzr revid: cto@openerp.com-20121217143029-e9ki4ftwihq7pdme
2012-12-17 15:30:29 +01:00
Xavier Morel c6079dd6bb [REM] unnecessary parens
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00