Commit Graph

150 Commits

Author SHA1 Message Date
Christophe Simonis cb29f9efac [FIX] base: reset `latest_version` field when uninstalling a module. 2015-07-29 12:00:15 +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
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 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
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
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
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
Christophe Simonis bbf705dbcf [FIX] modules: correct "openerp" update
bzr revid: chs@openerp.com-20121002100639-lx61srh0v119avj0
2012-10-02 12:06:39 +02:00
Christophe Simonis 86b91826a3 [FIX] apps: reload client when updating a module
bzr revid: chs@openerp.com-20120928113143-drizsnkiev35r8y1
2012-09-28 13:31:43 +02:00
Fabien Pinckaers a48c57df40 [IMP] no certificate
bzr revid: fp@tinyerp.com-20120926121536-9836j42ulu8wcir8
2012-09-26 14:15:36 +02:00
Olivier Dony 550751b358 [IMP] translations: wip, remove unnecessary code, support loading PO comments and storing them, split ir.translation view data in separate XML file
bzr revid: odo@openerp.com-20120913142920-ggpeqth4s2wwqwd2
2012-09-13 16:29:20 +02:00
Christophe Simonis 2b00459e1e [IMP] flake8 openerp/addons/base/module/module.py
bzr revid: chs@openerp.com-20120911130037-vmi1s1b92ihqwutj
2012-09-11 15:00:37 +02:00
Christophe Simonis 700d229760 merge
bzr revid: chs@openerp.com-20120911120807-8wvvh0tubdoqkwa0
2012-09-11 14:08:07 +02:00
Christophe Simonis 8458885ff1 [WIP]
bzr revid: chs@openerp.com-20120911120257-zm1ho30fpb6vln59
2012-09-11 14:02:57 +02:00
Christophe Simonis a37175f85a [FIX] correct config wizard to not crash if a module is not found
bzr revid: chs@openerp.com-20120911115003-8a9a0f8dsoirkx9i
2012-09-11 13:50:03 +02:00
Olivier Dony 9a577ef431 [MERGE] Sync with trunk
bzr revid: odo@openerp.com-20120911114104-vk8afbjq9ao1dqr2
2012-09-11 13:41:04 +02:00
Fabien Meghazi 60d217e4a6 [FIX] Fix al fix
bzr revid: fme@openerp.com-20120911103853-dcx4u5gmsjzorny3
2012-09-11 12:38:53 +02:00
Antony Lesuisse 89fb9bc090 [FIX] remove depenency on requests 4 insertions(+), 6 deletions(-)
bzr revid: al@openerp.com-20120911103002-xdztbyonwfsfjgjk
2012-09-11 12:30:02 +02:00
Christophe Simonis 8b68252da4 [WIP] restart server + update of server via apps
bzr revid: chs@openerp.com-20120907144102-qi35brwee3wh9fwb
2012-09-07 16:41:02 +02:00
Christophe Simonis 9c103b9a09 merge upstream
bzr revid: chs@openerp.com-20120905132230-0r6pv4nlegt3x0mb
2012-09-05 15:22:30 +02:00
Christophe Simonis 5dbbe6eabe [IMP] apps: restart server when updated needed
bzr revid: chs@openerp.com-20120905132139-lkk0uue7hmkw9k9n
2012-09-05 15:21:39 +02:00
Christophe Simonis 9f9de9914a [FIX] automatically adapt version numbers of modules
bzr revid: chs@openerp.com-20120824142323-m503lc6tfj4vntop
2012-08-24 16:23:23 +02:00
Antonin Bourguignon b28a956248 [IMP] module: properly translate module's description
bzr revid: abo@openerp.com-20120823173418-1qed27su2x0jy1ku
2012-08-23 19:34:18 +02:00
Antonin Bourguignon c43b1f298b [IMP] module: set two distinct fields for module's description: one for the RST and the other for the HTML
this way, we keep translatable the  text field

bzr revid: abo@openerp.com-20120823161959-3hewgtegb5h1yw93
2012-08-23 18:19:59 +02:00
Vo Minh Thu 33e9e66f71 [FIX] uninstall: pass IDs instead of names to _module_data_uninstall().
bzr revid: vmt@openerp.com-20120823161008-is5xqfe4et8xx51k
2012-08-23 18:10:08 +02:00
Christophe Simonis b59d9213d6 merge upstream
bzr revid: chs@openerp.com-20120823155420-svuhqxa1kmn3mtf4
2012-08-23 17:54:20 +02:00
Vo Minh Thu e82f52926c [FIX] setup.py: added docutils dependency introduced at revision 4341.3.1.
bzr revid: vmt@openerp.com-20120823083505-evk7pw3drx28rj1z
2012-08-23 10:35:05 +02:00
Antonin Bourguignon 0b29e7579d [IMP] avoid re-computing the module's field by setting it to
bzr revid: abo@openerp.com-20120822174635-agqupq0iyqc0rn9v
2012-08-22 19:46:35 +02:00
Christophe Simonis 8736e1102a [IMP] remove apps
bzr revid: chs@openerp.com-20120822174413-dln0k2refi86g0lj
2012-08-22 19:44:13 +02:00
pso (OpenERP) fda6918042 [MERGE] Merged PNA's branch to make description as function field with type html
bzr revid: pso@tinyerp.com-20120821113341-kh8wv7d297lrxvz4
2012-08-21 17:03:41 +05:30