summaryrefslogtreecommitdiff
path: root/odoo/addons/base/module
AgeCommit message (Collapse)Author
2017-11-27[MOV] base: move module_* wizard into wizard/Thibault Delavallée
2017-11-27[MOV] base: move module_* models into models/Thibault Delavallée
2017-11-27[MOV] base: move module_* views into views/Thibault Delavallée
2017-11-27[MOV] base: move module_* report into report/Thibault Delavallée
2017-11-27[MOV] base: move module_* data and demo into data/Thibault Delavallée
2017-11-21[FIX] base_module_uninstall: ondelete cascadeAdrian Torres
Before this commit, whenever an ir_module_module that had been installed/uninstalled at least once would be unlinked, an Exception would be raised since the field module_id references an ir_module_module and it is a required field. This commit fixes this by adding an ondelete='cascade' to the field. Fixes #20720
2017-11-02[MERGE] forward port branch 11.0 up to ee2b9fae351Christophe Simonis
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-21[MERGE] forward port branch 11.0 up to d70518d04f8Christophe Simonis
2017-10-19[IMP] base: Make 'name' attribute required for 'filter' tagMitali Patel
Purpose ======= The attribute name isn't required on the <filter> tag. If not set, it can't be selected with a xpath and it can't be overwritten. A lot of PR are coming from the community just to add a name on a filter because: - It can't be selected with a xpath. - It can't be used with `default_search_foo` on an action context. Specification ============= Make the atttribute name required
2017-10-16[FIX][P3] base, tools: prevent crash when importing translation .po file ↵alexkuhn
(#20191) With Odoo v11 running on Python3: 1. Go to Settings -> Translation -> Import Translation 2. Choose a valid .po file (e.g. generated with the menu Export Translation) 3. Click Import There is a server error. There are two bugs behind this error: 1. we open a temporary file that cannot insert bytes ('w+') 2. the name of the temporary file is an integer (its file descriptor) Python2 processed some implicit conversion between str and bytes, so that the 1st error doesn't occur. The name of a temporary file in Python2 is '<fopen>'. We made the following corrections to the code: 1. open the temporary file with w+b access (write bytes) 2. enhanced a conditional statement so that we skip instructions in case where the field name of the tempfile is a string Related Ticket: opw-775445
2017-10-11[FIX] base: avoid confusion between synchronize and update termsMartin Trigaux
The action "Load a Translation" is wrongfully considered as only for installation of a new language (while it is for update too). The action "Synchronize Terms" is wrongfully considered as to refresh translations of installed language (while it is to generate empty translations). Rename to "Generate Missing Terms" The res.lang tree view encourage this misconception with a "update terms" that actually triggers a synchronize terms action. Change the triggered action to the "Load & Update" Move the list of languages to always visible in settings. This list is not very technical and will avoid to go to debug mode for basic actions like updating the sources of checking what languages are installed. Going less often to dev mode will hide the misleading "Synchronize Terms" action for normal users. Closes #19911
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-09-14[IMP] base: improve view rng validation (#17902)Mitali Patel
Split big universal RNG into view-specific schemas and moved rng based view validation into view_validation.py file. Adapt old views, and remove deprecated tag `version="7.0"` from views.
2017-08-30[REF] base: do not style 'installed' as a 'success' in apps kanbanstefanorigano
2017-08-28[REF] base: set new apps list designstefanorigano
2017-08-28[ADD] base: direct support for binding an action to a modelRaphael Collet
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-07-17[IMP] base: rename Holidays module category to Leaves as this is the App nameDipali Tank
2017-07-06[IMP] base: Reload the webclient on language installYannick Tivisse
PURPOSE ======= When I install a language, I shouldn't have to refresh the page to see the newly installed language. Example : I install a language, then click on my user (upper right corner) and try to select this language. The newly installed language is not available. I first need to reload my page.
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-06-19[IMP] base: Remove seemingly unused wizardYannick 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[REF] report: remove the report moduleLaurent Smet
The content of the report module is now dispatched in the 'base' and the 'web' modules.
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-25[MERGE] forward port branch saas-15 up to ab68a1c6740Christophe Simonis
2017-04-24[MERGE] forward port branch 10.0 up to 3f6e573c67aChristophe Simonis
2017-04-21[MERGE] forward port branch saas-11 up to a0ff1f2ad84Christophe Simonis
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-23[MERGE] forward port branch 10.0 up to 6804085b8ceChristophe Simonis