Commit Graph

173 Commits

Author SHA1 Message Date
Christophe Simonis d48aa27cce [MERGE] forward port of branch 7.0 up to a7ff110 2015-09-11 16:16:27 +02:00
Christophe Simonis a7ff1104bc [FIX] base: sanitize module description 2015-09-11 14:58:44 +02:00
Christophe Simonis 5c7190c93f [MERGE] forward port of branch 7.0 up to cb29f9e 2015-07-29 12:07:34 +02:00
Christophe Simonis cb29f9efac [FIX] base: reset `latest_version` field when uninstalling a module. 2015-07-29 12:00:15 +02:00
Christophe Simonis 75884c3e1a [MERGE] forward port of branch 7.0 up to 7e85786 2014-06-22 13:44:30 +02:00
Ruchir Shukla 86c2426555 [IMP] module: warning when uninstalling modules
When a module is uninstalled, this will also uninstall modules depending of it. To avoid unexpected loss of data, this patch list the modules that will get impacted during the installation.
This also affects the configuration pages with on change warnings.
2014-06-20 17:36:26 +02:00
Christophe Simonis 4601d85944 [MERGE] forward port of branch 7.0 up to 6fdb783 2014-06-10 11:49:14 +02:00
Martin Trigaux 426993e06d uninstall: avoid errors during uninstall
When uninstalling a module, remove the ir.model.constraint after removing the non-model records and before fields and model definition.
Without this fix, some constraint would be removed too early allowing to have broken relations and data left from removed module.
2014-06-05 12:52:11 +02:00
Christophe Simonis 3d2e9b4d2b [MERGE] forward port of branch 7.0 up to revid 5281 launchpad_translations_on_behalf_of_openerp-20140412094159-mhy3v2prb3ctx32k
bzr revid: jke@openerp.com-20140409153527-mic1a8afcvdhsd27
bzr revid: chs@openerp.com-20140410102422-fcwxhjk40z0oy8x5
bzr revid: chs@openerp.com-20140415133650-y46i0o3qkb2atbvi
2014-04-15 15:36:50 +02:00
Christophe Simonis 52760fd424 [FIX] modules: install_from_urls: restrict to administrators. Urls must come from apps server.
[FIX] modules: download() method is now a no-op. This method was in fact already a no-op as the "url" field is never set explicitly in the code.

bzr revid: chs@openerp.com-20140410095817-bkni63g346wneybb
2014-04-10 11:58:17 +02:00
Martin Trigaux 216303c2fa [FIX] ir_translation: rename method load to load_module_terms to avoid name clash with load call from base_import
bzr revid: mat@openerp.com-20131230125307-kald7ir36bvq3o7c
2013-12-30 13:53:07 +01:00
Antony Lesuisse e6b18fc7aa rename server
bzr revid: al@openerp.com-20131005221829-a18vx5ag6ef4ufee
2013-10-06 00:18:29 +02:00
Antony Lesuisse 2170da5e1e merge trunk
bzr revid: al@openerp.com-20131005220411-l1op0sya6h515m5b
2013-10-06 00:04:11 +02:00
Antony Lesuisse 0a75a6b5ff simplier autoreload working
bzr revid: al@openerp.com-20131005212240-5lp8tgwukeg5wwdq
2013-10-05 23:22:40 +02:00
Christophe Simonis ef96f0424a [IMP] ir.module.module: _get_views(): explictly skip non-existing records instead of catching exceptions. This avoid useless error logs
bzr revid: chs@openerp.com-20130919115014-bwjaar877w04k41s
2013-09-19 13:50:14 +02:00
Antony Lesuisse 3d6a073acb [MERGE] html module description
bzr revid: al@openerp.com-20130628100407-3k5wy3767lbc3788
2013-06-28 12:04:07 +02:00
Christophe Matthieu 68080eb17f [IMP] description.html to index.html
bzr revid: chm@openerp.com-20130603142201-l3pdz4s5ggxjdf8w
2013-06-03 16:22:01 +02:00
Christophe Matthieu 71d93466e7 [IMP] css app description relative href
bzr revid: chm@openerp.com-20130531093901-41uqp52xeef8yu37
2013-05-31 11:39:01 +02:00
Christophe Matthieu 2d68063080 [IMP] css
bzr revid: chm@openerp.com-20130530152741-mdzjtuvalkmvmanh
2013-05-30 17:27:41 +02:00
Christophe Matthieu 33a40f131a [IMP] parse description html to change image src to [module]/static/description/image_url
bzr revid: chm@openerp.com-20130530142902-bv4ol10s4n119c8i
2013-05-30 16:29:02 +02:00
Christophe Matthieu 9f8d8b82c0 [MERGE] from trunk
bzr revid: chm@openerp.com-20130530135242-6nmbjvixrst9llsh
2013-05-30 15:52:42 +02:00
Christophe Matthieu 4bf6a7ea4c [IMP] parse description html to change image src to [module]/static/description/image_url
bzr revid: chm@openerp.com-20130530135147-oij26myykrngrig1
2013-05-30 15:51:47 +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
Fabien Pinckaers 8e45eea5d1 [IMP] merge from fva + small changes in .py loading
bzr revid: fp@openerp.com-20130406144259-2gg6hte6dueaxcwt
2013-04-06 16:42:59 +02:00
Vo Minh Thu 307ca374d6 [MERGE] forward merge 7.0 until revision 4919.
bzr revid: vmt@openerp.com-20130404130704-24vsmczw34cssytd
2013-04-04 15:07:04 +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
Frédéric van der Essen 18b74e942b [IMP] load description from 'description.html' file in module directory
bzr revid: fva@openerp.com-20130325173625-ntb9z3bgcr85ozpl
2013-03-25 18:36:25 +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
Christophe Simonis 5032dad17d [FIX] module: install_from_urls: restrict to administrators. Urls must come from apps server.
lp bug: https://launchpad.net/bugs/1129299 fixed

bzr revid: chs@openerp.com-20130218175559-ygo0goytspg119bl
2013-02-18 18:55:59 +01:00
Christophe Simonis b3300f6074 [FIX] signal registry change when uninstall modules
bzr revid: chs@openerp.com-20130123153345-x7jm13eieqgeg5i7
2013-01-23 16:33:45 +01:00
Christophe Simonis 3574038ffd [FIX] apps: install_from_url: fix install condition + better logging
bzr revid: chs@openerp.com-20130117132924-ejzbkh5przqi6hwf
2013-01-17 14:29:24 +01:00
Olivier Dony df69f4b08a [FIX] ir.module: installation from urls: better logging + fix mixing local and remote modules in one call
(empty module URL means local module is available and should be installed)

bzr revid: odo@openerp.com-20130117012312-kwr1iaf590ll4wm1
2013-01-17 02:23:12 +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
Antony Lesuisse c7d6df8fa3 [MERGE] module update_list signal wsgi handlers
bzr revid: al@openerp.com-20121219025908-hd8megr7fc6m4o7m
2012-12-19 03:59:08 +01:00
Christophe Simonis 0c7f17c0ac merge upstream
bzr revid: chs@openerp.com-20121217172614-3z1pstu5th26wuuc
2012-12-17 18:26:14 +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
Antony Lesuisse 1db5e67ed4 [MERGE] autoinstall at least one dependency must be to install by rco
bzr revid: al@openerp.com-20121211185310-jq6cci7740n54b4a
2012-12-11 19:53:10 +01:00
Raphael Collet fbc37241cc [IMP] modify the condition to auto-install a module: at least one dependency must be 'to install'
bzr revid: rco@openerp.com-20121211144010-3bbszb3ajxr3doup
2012-12-11 15:40:10 +01:00
Christophe Simonis 236df95b22 merge upstream
bzr revid: chs@openerp.com-20121210132406-9ro3amw6s6pzeez4
2012-12-10 14:24:06 +01:00
Antony Lesuisse 3d2a09a973 multiprocessing signaling manually backported from 6.1
bzr revid: al@openerp.com-20121208181151-lfy956ysnok5b5hf
2012-12-08 19:11:51 +01:00
Christophe Simonis a208447a3d merge upstream
bzr revid: chs@openerp.com-20121128184100-rkr90mrx38fh9q4l
2012-11-28 19:41:00 +01:00
Christophe Simonis e03f111704 [FIX] module: do not recreate categories when updating modules
bzr revid: chs@openerp.com-20121128183701-6d7p1jqu1hdlshcp
2012-11-28 19:37:01 +01:00
Christophe Simonis 9cdc77b6ea [IMP] modules: go home after restart of server
bzr revid: chs@openerp.com-20121031120301-b6680zyxq7u1wxq4
2012-10-31 13:03:01 +01:00
Vo Minh Thu 72f59ff45e [FIX] modules: avoid to have the docutils' warnings rendered inline.
The html rendering of the __openerp__.py description is done using docutils.
This patch removes the warnings that docutils inserts in the resulting document
and log them. Docutils still generates spurious output on stderr though.
(An alternative is to use the `report_level` option but in that case it seems
we can never witness the warnings being created.)

bzr revid: vmt@openerp.com-20121025130111-7l157hexh6ew9w34
2012-10-25 15:01:11 +02:00
Christophe Simonis 9dffee0522 merge upstream
bzr revid: chs@openerp.com-20121024114831-5eyxqxd7y066v30d
2012-10-24 13:48:31 +02:00
Fabien Pinckaers 2067192d37 [IMP] rename columns for importation
bzr revid: fp@tinyerp.com-20121024084409-ad4kuccw6bki3zdg
2012-10-24 10:44:09 +02:00
Mayur Maheshwari (OpenERP) e1dfd1fadc [IMP]all: imporve string state to status
bzr revid: mma@tinyerp.com-20121012122419-mtiw3wpxlcbl4y1r
2012-10-12 17:54:19 +05:30
Christophe Simonis 7d3f3d475b merge upstream
bzr revid: chs@openerp.com-20121010115500-xz9oqr2g8vzr79jq
2012-10-10 13:55:00 +02:00
Olivier Dony 2a96eb4944 [MERGE] Sync with trunk
bzr revid: odo@openerp.com-20121003161807-3nwp7kvc3s2eh2xf
2012-10-03 18:18:07 +02:00
Christophe Simonis 5eccc93177 [FIX] base: modules: install_from_urls: an empty url mean nothing to download
bzr revid: chs@openerp.com-20121002132535-l0tajxiqydn7ahcv
2012-10-02 15:25:35 +02:00