summaryrefslogtreecommitdiff
path: root/odoo/addons/base/module/module.py
AgeCommit message (Collapse)Author
2017-11-27[MOV] base: move module_* models into models/Thibault Delavallée
2017-10-31[MERGE] forward port branch saas-16 up to 810b6aa7600Christophe Simonis
2017-10-31[MERGE] forward port branch saas-15 up to d1fcca1504aChristophe Simonis
2017-10-31[MERGE] forward port branch 10.0 up to dcce040a637Christophe Simonis
2017-10-27[FIX] base: load translation files in correct dependency orderWolfgang Taferner
Fixes #19824 opw-776928
2017-10-02[MERGE] forward port branch saas-16 up to b3d0897f2d8Christophe Simonis
2017-09-28[IMP] module: make internal methods privateOlivier Dony
Only methods that are meant to be accessed by the client-side directly (or via RPC) should be public. All others should be private by default.
2017-09-28[IMP] module: verify and log admin operationsOlivier Dony
Verifies that admin operations on modules/apps are indeed performed by an administrator, regardless of ACLs on `ir.module`. Also logs these important operations, whether completed or blocked.
2017-08-24[MERGE] forward port branch saas-17 up to 877e7098719Christophe Simonis
2017-08-24[IMP] base: log user id triggering module (un)installationsRichard Mathot
After a few tickets with clients asking "who installed this app?", we will be able to answer with this.
2017-08-20[FIX] P3: remove pycompat.{keys,items,values} helpersOlivier Dony
Now that we're closer to switching to P3 for good, these helpers have outlived their usefulness, and mostly add noise. All remaining dict.iter*() or dict.view*() must be converted to the normal keys(), values() or items() calls. Whenever the result is likely to be used for more than the scope of a loop, or when the dict needs to be modified during iteration, the calls must be wrapped in a ``list()``, to protect the new P3 semantics. Those cases are very exceptional. Also removed some dead code or improved the API to remove unnecessary conversions.
2017-08-20[FIX] P3: text model typesXavier Morel
* remove references to basestring & unicode (use relevant pycompat helpers) * remove some str calls (either entirely or replaced by relevant helper, either text or native) * use better API to avoid unnecessary conversions * remove some XML declarations in views
2017-08-20[FIX] P3: fix base64 and StringIO usesXavier Morel
* StringIO removed from stdlib, replace with io * try to correctly handle BytesIO/StringIO (one is for bytes the other is for text) * fix base64: Python 3 removed bytes-encoding and bytes-bytes codecs (via #encode) so replace all calls to str.encode('base64'), also b64encode is a bytes->bytes conversion so attempt to properly handle that issue #8530
2017-08-10[MERGE] forward port branch saas-17 up to 48b2ce60ed1Christophe Simonis
2017-08-07[IMP] test_pylint: check for python3 incompatibilitiesChristophe Simonis
2017-08-02[FIX] base/module: Use a correct env to load next action on installYannick Tivisse
Bug introduced in https://github.com/odoo/odoo/commit/c8601f4384e0c95abc92d1f0b3092cfe2cb2a79d Purpose ======= If a module installation is supposed to load an action (example: a wizard like in l10n_eu_service) and if the related action is defined in this module (example: l10n_eu_service.wizard), currently we're using the environment defined on self, which is not updated after the module install, and the key is not defined in the registry. Specification ============= Instead of using the environment on self, let's use the new environment created after the cursor commit.
2017-06-30[FIX] base: check description contentMartin Trigaux
Some may say that fe346fa0 made the test fail but this is an illusion
2017-06-28[ADD] base: new wizard to uninstall a module (#17284)Raphael Collet
The "Uninstall" button on the module form no longer changes the state of modules, so that cancelling the wizard will not unexpectedly perform the uninstallation. The uninstallation is performed only by clicking on the "Confirm" button on the wizard. Moreover, the wizard provides clearer information about the impact of the uninstallation: what apps/modules will be uninstalled and what documents (models) will be lost.
2017-06-19[IMP] base: Load actions todo on button_immediate_installYannick Tivisse
2017-05-15[FIX] P3: urllib, urllib2 and urlparseXavier Morel
In Python 3, all of these were "consolidated" under urllib(.request, .parse, .errors) which is inconvenient. Since we already have hard dependencies on requests and werkzeug(.urls, which is a backport of Python 3's unicode-aware urllib.parse) migrate *everything* to that. A sticking point is urllib2.URLError, those were (mostly) replaced by the slightly more general IOError which URLError extends.
2017-05-10[FIX] P3: list -> iterable builtins (#16811)xmo-odoo
In Python 3: * various builtins and dict methods were changed to return view/iterable objects rather than lists * and the separate Python 2 view/iterable builtins and methods were removed altogether This is problematic when using these items as list (which the happens repeatedly in Odoo), but more viciously when iterating *multiple times* over them (which also happens, which I've messed up multiple times while writing this, and which is a pain to debug even when you've just created the issue). Convert all code using these to semantics-matching cross-version helper functions to get the LCD behaviour between P2 and P3, and forbid the builtins via lint. issue #8530
2017-05-08[REM] odoo/report: remove deprecated stuffLaurent Smet
- RML Reports - Webkit Reports (most part already removed by 13b9982c6298021289707ed364e3c1d622a09f13) - LocalService in netsvc.py - rename attributes like rml_% to report_% - rename ir.actions.report.xml to ir.actions.report - allow rendering directly on an ir.actions.report by calling render method - remove 'controller' report_type - remove unused res.font stuff - remove print_report method in models.py (not used) - restore removed call to pdftotext process in test_reports
2017-04-28[FIX] Various P3-related import changesxmo-odoo
* LDAP import: python-ldap is not python3-compatible, pyldap is Warning: only supported from debian Stretch (current testing)? https://packages.debian.org/search?searchon=names&keywords=pyldap * implicitly relative imports * imports of moved or removed stdlib modules issue #8530
2017-04-11[#8530] convert exception handlers to except..as syntaxXavier Morel
Futurize fixers: * lib2to3.fixes.fix_except
2017-04-06[IMP] base: add individual module exclusionsRaphael Collet
2017-04-06[IMP] base: add boolean field 'exclusive' on module categoriesRaphael Collet
When set, this flag restricts the installation of several modules from the same category.
2017-02-02[MERGE] forward port branch 10.0 up to 8a0151b4bcdChristophe Simonis
2017-01-27[FIX] module: allow disabling 1-click installOlivier Dony
As discussed on issue #15225, it should be possible for system administrators to disable the 1-click installation system. The plan is to disable the feature by default, but make it relatively easy to turn on when it is explicitly desired. 1. At the moment we cannot guarantee that all Apps published on the Odoo Apps Store are safe. And it is a security risk to let end-users deploy Python code on their Odoo servers without requiring any review/deployment by a competent system administrator. We will work on improving the validation process of the Store, but this will require time, and won't probably be a 100% safe process in any case. 2. The one-click install feature is however really useful to help non-technical users install Apps, as long as the feature has been explicitly allowed by the system administrator. This is a common feature in other software suites as well. So we'd like to keep it as an opt-in feature. 3. Administrators of multi-tenant servers, cloud hosting services, etc. understandably expect to be able to turn off the feature for security/control reasons. 4. By turning off the feature by default, but still exposing it in the UI, we keep it *discoverable* for users. The error message should be helpful to direct users to their sysadmins. 5. By using the permissions of the download folder as a flag for turning off the feature, we avoid introducing an extra server parameter. The folder is still created (read-only) by default, for the sole purpose of making it easier to locate. Fixes #15225
2017-01-03[IMP] base: tighten `ir.model.data` access rightsRaphael Collet
2016-11-15[MERGE] forward port branch saas-12 up to ca20038Christophe Simonis
2016-10-03[FIX] base: call correct method to get module iconChristophe Simonis
2016-09-23[ADD] base: add OPL-1 module licenseDavid Monjoie
This allows people to create modules under the 'Odoo Proprietary License' version 1.0 rather than having to rely on the rather vague 'Other Priorietary' license. The text of the license can be found at: https://www.odoo.com/loempia/static/examples/LICENSE This should already have been in Odoo 9 but was mistakenly left out.
2016-09-02[FIX] base: adapt importsRaphael Collet
2016-09-02[REF] openerp: move `openerp` to `odoo`Raphael Collet