summaryrefslogtreecommitdiff
path: root/openerp/modules/module.py
AgeCommit message (Collapse)Author
2016-09-02[REF] openerp: move `openerp` to `odoo`Raphael Collet
2016-08-18[MIG] openerp.modules: convert code to the new APIRaphael Collet
Also, convert function `init_models` to a registry method.
2016-08-11[IMP] all: clean usage of `safe_eval`Raphael Collet
Specifically: do not import `safe_eval` as `eval`, keep it explicit instead.
2016-07-15[MERGE] forward port branch saas-11 up to a62b8cfChristophe Simonis
2016-07-14[MERGE] forward port branch 9.0 up to fd9eb2eChristophe Simonis
2016-07-12[FIX] modules: choose the right addons pathJairo Llopis
When launching a server with two similar addons path, e.g.: - /home/alice/dev - /home/alice/devodoo launching the server in dev mode may crash due to the poor matching using `path.startswith(...)` method which may make `/home/alice/devodoo/bob/main.xml` match in addons folder `/home/alice/dev` and with a non-exitant local path `odoo/bob/main.xml`. Instead of relying on the name, use the `os.path.commonprefix()` method to match on real paths and avoid partial matching. commonprefix will only work if the folder name ends with the appropriate separator (which is not guarantee for a user provided addons-path) so force a trailing `/` using os.path.join(..., '')`. Closes #12359
2016-06-16[MIG] models: convert class BaseModel to the new APIRaphael Collet
2016-02-02[MERGE] forward port of branch saas-9 up to 469e04eChristophe Simonis
2016-02-02[MERGE] forward port of branch saas-7 up to e765569Christophe Simonis
2016-01-29[MERGE] forward port of branch 9.0 up to a842199Denis Ledoux
2016-01-29[MERGE] forward port of branch saas-6 up to 2616defDenis Ledoux
2016-01-29[MERGE] forward port of branch 8.0 up to edeb5a8Denis Ledoux
2016-01-29[FIX] module finder path parameter should be optionalxmo-odoo
According to PEP302, the signature of `Finder.find_module` should be `find_module(fullname, path=None)`. Ever since it was introduced in 64ec5f36df the addons import hook defines the second parameter as mandatory, which is an issue for systems relying on the specified behaviour (and not needing to provide a path) like the stdlib's `pkgutil.find_loader`. fixes #10670
2016-01-26[IMP] Remove 'author' and 'website' on odoo modules' manisfestYannick Tivisse
And use the default values : - author : 'Odoo S.A.' - website: https://www.odoo.com/
2015-11-27[IMP] modules: change API and improve code of function `init_module_models`Raphael Collet
The function invokes methods `_auto_init`, `init` and `_auto_end` on models, and now uses the new API. This enables to define those methods in the new API.
2015-11-27[IMP] models: in method `_auto_init`, pass the todo list by the contextRaphael Collet
Returning the todo list is unsafe: several models override the method and do not return its result!
2015-10-07[MERGE] Forward-port 9.0 up to 422f3b5dMartin Trigaux
2015-10-07[ADD] Import hook to translate odoo importsXavier Morel
Allows importing the core ``openerp`` as ``odoo`` (e.g. ``from odoo.tools import cache``) and importing modules as e.g. ``odoo.addons.purchase`` **from modules**. From the openerp core, imports *must* remain to ``openerp``, as those run before import hooks can be installed. * AddonsHook allows Odoo imports to be imported as both odoo.addons.* or openerp.addons.* and will load addons to both names simultanously * OdooHook makes the Odoo core accessible as odoo as well as openerp
2015-09-29[FIX] models: process the new-API fields to recompute in batchRaphael Collet
When a new field has to be computed for the first time on existing records, mark that field as todo, invalidate it in cache, and perform all recomputations at once at the very end.
2015-09-28[IMP] unittest2 > unittestLeonardo Rochael Almeida
The `unittest2` package is simply a backport of `unittest` from the Standard Library of Python 2.7 to previous versions. There is no reason to use it any longer. Closes #6941
2015-09-08[LEGAL] Switch to LGPLv3 LicenseOlivier Dony
99% of the contributors have signed the CLA The rest of them have been contacted by email and are free to either sign the CLA or ask for their contributions to be removed from Odoo Community Edition. See also: - https://www.odoo.com/cla - https://www.odoo.com/blog/odoo-news-5/post/adapting-our-open-source-license-245
2015-08-20[IMP] openerp: Add authors 'Odoo SA' and website 'http://www.odoo.com'Yannick Tivisse
in 'load_information_from_description_file' method
2015-06-02[LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate textOlivier Dony
- Preserved explicit 3rd-party copyright notices - Explicit boilerplate should not be necessary - copyright law applies automatically in all countries thanks to Berne Convention + WTO rules, and a reference to the applicable license is clear enough.
2015-02-03[MERGE] forward port of branch 8.0 up to 4af53deChristophe Simonis
ignore .po and .pot changes
2015-01-28[FIX] mail: prevent sending mail during registry loadingSamus CTO
2015-01-19[MERGE] forward port of branch 8.0 up to 0aab81cChristophe Simonis
2015-01-15[IMP] test discovery, documentation, deprecation warningsXavier Morel
* document and warn that checks and fast_suite in tests sub-packages are deprecated and have no effect * avoid iterating all currently loaded modules when looking for test modules in a tests sub-package * replace use of __import__ by importlib Fixes #3152
2014-12-31[REF] remove vim modelines and resulting trailing blank linesLeonardo Donelli
Let 2015 be a year without modelines! cf #4174
2014-09-15[MERGE] forward port of branch 8.0 up to 780dd98Christophe Simonis
2014-09-12[IMP] modules: add support for loading module description from ↵Daniel Reis
README.{md,rst,txt} Showcase the feature by moving auth_ldap's description to README.rst (Manual rebase of PR #1759)
2014-09-05[MERGE] forward port of branch 8.0 up to ed1c173Christophe Simonis
2014-08-22[ADD] doc: new documentation, with training tutorials, and new scaffoldingRaphael Collet
2014-08-06[IMP] Store relative path in arch_fsFabien Meghazi
2014-07-07[FIX] data-dir managementChristophe Simonis
- sessions are now shared between series. - use site data dir instead of user data dir if user has no home dir. - in http and module handling, `data-dir` was used before being initialized, using the default value instead of user input (fixes #308, #904)
2014-07-06[MERGE] new v8 api by rcoRaphael Collet
A squashed merge is required as the conversion of the apiculture branch from bzr to git was not correctly done. The git history contains irrelevant blobs and commits. This branch brings a lot of changes and fixes, too many to list exhaustively. - New orm api, objects are now used instead of ids - Environements to encapsulates cr uid context while maintaining backward compatibility - Field compute attribute is a new object oriented way to define function fields - Shared browse record cache - New onchange protocol - Optional copy flag on fields - Documentation update - Dead code cleanup - Lots of fixes
2014-07-01[IMP] test display sql query counterAntony Lesuisse
2014-06-29[IMP] test impprove HTTPCase openerAntony Lesuisse
Simplify website crawler using the generic HTTPCase opener
2014-06-29[IMP] module loading and tests profilingAntony Lesuisse
Add a loglevel 25 to log some INFO to runbot Add timers for loading and testing Silence empty test suite ir_logging use relative pathname, warning this doesnt work for --addons-path modules yet.
2014-06-22[IMP] js testingChristophe Simonis
- output "error" if any qunit tests failed - failed js tests are logged as errors - when running phantomjs considere empty waiting condition or initialisation code as "true" - lint phantomtest.js file
2014-05-30Allow initialize_sys_path() to be called more than onceFabien Meghazi
2014-05-29Moved get_module_root in openerp.modules.moduleFabien Meghazi
2014-05-05[FIX] module: do not crash in case of not found moduleMartin Trigaux
bzr revid: mat@openerp.com-20140505121840-f84u36mng3p1gstn
2014-03-26[MERGE] upstreamFabien Meghazi
bzr revid: fme@openerp.com-20140326152307-d0rn3yuzel11457g
2014-03-19[IMP] Allow openerp.modules.load_information_from_description_file() to take ↵Fabien Meghazi
an optional mod_path argument bzr revid: fme@openerp.com-20140319085708-prrs0m4gjvuu4o86
2014-03-18[PATCH] slechm@openerp.com
bzr revid: chm@openerp.com-20140318122250-22bt2bcfzvxowkvf
2014-03-17[IMP] tests prepend modules names when loggingAntony Lesuisse
bzr revid: al@openerp.com-20140317021317-4o3l1uf2ts62w1di
2014-02-27[MERGE] trunkAntony Lesuisse
bzr revid: al@openerp.com-20140227161819-p9chmskfifo0rygs
2014-02-18[IMP] slightly improve error message at the end of a module's failed testsXavier Morel
bzr revid: xmo@openerp.com-20140218101847-mwsd2zolpze1xdhf
2014-02-18[FIX] run_unit_tests lying about its return value: it only ever returns a ↵Xavier Morel
bool, never None bzr revid: xmo@openerp.com-20140218095632-r4aq7gnzj4hq9u64
2014-02-18[ADD] hooks to enable/disable tests running during installXavier Morel
also add flag for post_install run, but not used yet bzr revid: xmo@openerp.com-20140218095452-pptez5rlpdez1ttl