summaryrefslogtreecommitdiff
path: root/odoo/modules
AgeCommit message (Collapse)Author
2019-06-27[MERGE] forward port branch 12.0 up to cd21c016b06Christophe Simonis
2019-06-27[MERGE] forward port branch saas-11.3 up to 2f2bc67c067Christophe Simonis
2019-06-27[MERGE] forward port branch 11.0 up to b1d43cc80e2Christophe Simonis
2019-06-26[MERGE] forward port branch saas-15 up to cf18c9bae11Christophe Simonis
2019-06-26[MERGE] forward port branch saas-14 up to 2a89adef2a2Christophe Simonis
2019-06-20[IMP] core: add support for multi-version migration scriptsChristophe Simonis
A special folder named `0.0.0` can contain scripts that are run on upgrade of any version. They are useful to make some sanity checks or other verifications to ensure database consistency. The first version of this patch used the more eye-catching `any` for the migration folder, but it was problematic for upgrading from an older version that doesn't contain this patch. Using a version "number" containing two dots is required to avoid it being prefixed with the server version (see `convert_version` method) and resulting in a version like `10.0.any`. Such version would have been executed, even without this patch, when upgrading from an older major server version (9.0.1.0 < 10.0.any). closes odoo/odoo#34268 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-01-15[MERGE] forward port branch 11.0 up to 4f2f2995346Christophe Simonis
2019-01-28[MERGE] forward port branch saas-12.1 up to d3b8422c9c4Christophe Simonis
closes odoo/odoo#30614
2019-01-18[MERGE] forward port branch 12.0 up to f854e01a983Christophe Simonis
2019-01-16[MERGE] forward port branch saas-11.3 up to 83cc046e9a9Christophe Simonis
2018-12-21[REV] Revert "[FIX] modules: load demo data fallback"Olivier Dony
This reverts commit 5f4a9451828fff1919c74e421001bc111c5c138d. The cure is worse than the original disease. The main installation cursor often holds exclusive locks (due to DDL changes) on vital tables such as res_users. As a result, using another cursor to perform changes while the main cursor is waiting is extremely deadlock-prone. And these deadlocks can't be detected by PostgreSQL as they mix Python-SQL locking, which leads to deadlocked HTTP workers. Related to: - opw-1916918 - #29528
2018-12-13[FIX] modules: load demo data fallbackNicolas Martinelli
- Create a new DB with `base_automation`, without demo data - Switch to developer mode - Go to Settings, then 'Load demo data', validate A traceback occurs. An error since the demo data in `base_automation_demo.xml` are pointing to `model_base_automation_lead_test`, which is a test model. It is therefore not created whithout demo data. The error is: ``` bad query: b'RELEASE SAVEPOINT "5159....."' ``` However, that's not the real crash. Indeed, in case the installation of demo data crashes, `demo_failure_todo` is supposed to handle the situation like a boss. But in this case, the DB cursor seems unusable. Therefore, the following crashes like a gros caca: ``` python todo = env.ref('base.demo_failure_todo', raise_if_not_found=False) ``` Solution: use a new cursor. opw-1916918 closes odoo/odoo#29528
2019-01-18[IMP] fields: allow reuse of the m2m relation if explicitly givenRaphael Collet
This allows a model to have several fields using the same relation on purpose, for instance to show the related items filtered by domains. Also adapt the code to handle multiple many2many inverses. closes odoo/odoo#30338
2018-11-29[MERGE] forward port branch 12.0 up to 82a1e1dcc33Christophe Simonis
2018-11-29[REM] pycompat: remove python 2 shims and helpersAdrian Torres
Odoo no longer supports python 2, thus some of these helpers can and have been replaced by python 3 built-ins, therefore there is no need for them to stay defined. The removed helpers are: * izip, imap and ifilter * unichr, text_type * implements_to_string, implements_iterator * string_types, integer_types * to_native The python 2 shims have also been removed, and only the python 3 helpers have been kept, because they can still be usable (i.e. accepting both bytes and str for functions that can only accept one of the two) [REM] pyjsparser: remove PY3 shims They're no longer necessary as Odoo doesn't officially support python 2 anymore. closes odoo/odoo#28519
2018-11-29[REF] *: replace deprecated pycompat helpers for builtinsAdrian Torres
This commit replaces calls to pycompat helpers that were intended for python 2 <-> python 3 interoperability for python 3 builtins, as python 2 is no longer officially supported by Odoo. This includes: * calls to imap/izip/ifilter replaced by map/zip/filter * uses of text_type replaced by str * uses of unichr replaced by chr * calls to implements_to_string, implements_iterator removed * string_types and integer_types replaced by str, int respectively * calls to to_native replaced by calls to to_text This is done in preparation to the removal of these deprecated helpers in the following commit.
2018-11-01[FIX] odoo: fix addons paths on windows with use of normcaseAndreas Perhab
This is necessary to get --dev=xml working on windows, because the xml import uses normcase in file_open and the case normalized filename is then used to find the addon path (which was not found before on windows) With this fix arch_fs is now correctly filled in windows and --dev=xml works. closes odoo/odoo#28331
2018-10-29[MERGE] forward port branch 11.0 up to ee0ff262f08Christophe Simonis
2018-10-29[MERGE] forward port branch saas-15 up to 953dfe92c24Christophe Simonis
closes odoo/odoo#28255
2018-10-29[MERGE] forward port branch saas-14 up to 1916fdc1d00Christophe Simonis
2018-10-23[FIX] migration: use correct migration prefix in docstringPedro M. Baeza
Migration files must contain `-` in its name for being executed
2018-11-02[MERGE] forward port branch saas-11.4 up to f6ca72b3ce9Christophe Simonis
2018-10-19[FIX] loading: set dbdemo if demo install successAdrian Torres
opw-1896028 closes odoo/odoo#27945
2018-11-22[FIX] odoo: ormcache invalidation on loading registryRaphael Collet
Do not propagate cache invalidations to other workers when simply loading the registry. Only do it when installing/upgrading/uninstalling modules.
2018-09-25[FIX] ir_ui_view: do not check arch twice upon install/upgradeRaphael Collet
After a module upgrade, validate the architecture of the module's views that are impacted by updates, but have not been checked yet. Before this patch, views were checked twice on average. This patch speeds up the installation of modules by about 15% without demo data. With demo data, the speedup is around 10%.
2018-09-24[IMP] core: require install mode for db bootstrapOlivier Dony
The registry loading system should not alter databases unless it is asked to do so, by a module installation or update instruction. This property should hold true as well for database bootstrap, and this is what this commit changes.. In order to avoid any behavior change for command-line users, an implicit `-i base` is assumed when starting the server from the command-line with `-d <db>`, causing the db boostrap to happen if the database did not exist yet.
2018-09-21[FIX] base: put loaded XML ids in a set (no need for a dict)Raphael Collet
This is simpler, cleaner, and has a smaller memory footprint.
2018-08-21Revert "[FIX] manual creation of serialized field from the interface"Christophe Simonis
Non applicable since b0646f9d2c983481f20bea31f8f6427bbfccb245. This reverts commit 03395ea103f1e933576bad2a32ae7842818e7dfd.
2018-08-21[MERGE] forward port branch saas-14 up to aafa6e38c4aChristophe Simonis
2018-08-20[FIX] manual creation of serialized field from the interfaceBenoit
2018-08-06[IMP] *: only show 'learn more' when there is a web page describing the moduleFabien Pinckaers
2018-08-01[MERGE] forward port branch saas-11.4 up to 8d9366197e1Christophe Simonis
2018-07-24[MERGE] forward port branch saas-11.2 up to 3c521f6d05cChristophe Simonis
2018-07-23[MERGE] forward port branch 11.0 up to 219d2296d67Christophe Simonis
2018-07-23[MERGE] forward port branch saas-15 up to c4ee29345a6Christophe Simonis
2018-07-23[MERGE] forward port branch saas-14 up to 9ee882564f6Christophe Simonis
2018-07-23[MERGE] forward port branch 9.0 up to af2e480e419Christophe Simonis
2018-07-19[FIX] undefined variables (potential nameerror)Xavier Morel
Backport 9ec0455abc041b855dcab18e8e185baf806b9f14 and 6a601fe6dc848cdeca2ab8429210e3b5087275d9 as they fixed various possible NameError but did so in later sub-releases.
2018-07-16[IMP] base: disable demo data if they can't installXavier Morel
Task 1856935 Currently, if installing a module's demo data fails (because the module was uninstalled and some were left over and can't be reinstalled, or because they're broken, or…) the installation of the module fails and further installations are skipped (?). Since demo data are non-essential (though required to run tests), rather than fail everything if they fail just roll them back and notify the user. This change generates a warning log *and* shows a notification popup to the end user.
2018-07-16[IMP] de-commit-ify db/module installXavier Morel
Try to remove cr.commit (and rollback) from module and db install: * put a savepoint around test data loading * remove a bunch of commits sprinkled throughout * remove rollback on data loading failure (assuming it bubbles up, the entire module's installation should be rolled back) * add commit right before the tests are run, so they can run isolated and still see whatever was done when installing their module * convert a few explicit closing to context managers
2018-07-11[IMP] allow installing demo data post db initAdrian Torres
Intended for demo / throwaway databases only Task-ID: 1856493
2018-07-05[MERGE] forward port branch saas-11.3 up to 2214bffefb2Christophe Simonis
2018-07-05[MERGE] forward port branch saas-11.2 up to 45329c0cf2cChristophe Simonis
2018-07-05[MERGE] forward port branch 11.0 up to 84210074e55Christophe Simonis
2018-07-05[MERGE] forward port branch saas-15 up to b06c09db604Christophe Simonis
2018-07-05[MERGE] forward port branch saas-14 up to 92e5da6b8fdChristophe Simonis
2018-07-05[MERGE] forward port branch 9.0 up to b5c50fa824aChristophe Simonis
2018-06-15[MERGE] forward port branch saas-11.3 up to 50860317ccdChristophe Simonis
Note: 1aacc962620982528a3dfc90d2c1dd0027359375 has been ignored and will be forward-ported later
2018-06-15[MERGE] forward port branch saas-11.2 up to b170a753e18Christophe Simonis
2018-06-15[MERGE] forward port branch 11.0 up to b05e4d5f958Christophe Simonis