Commit Graph

297 Commits (05374ce4aa5a74c966d0cef0c312ddc637a72bd5)

Author SHA1 Message Date
Jairo Llopis 05374ce4aa [FIX][module_auto_update] Always store changes in lower graphs
The same problem that was fixed for the `base` addon in #948 happened with random addons that do not depend on `module_auto_update` (a.k.a. any addon) that Odoo decided to load before that one in the graph.

Now we always check for all addons if their state has changed, and make sure to trigger the udpate mechanism that stores the right value in `installed_checksum_dir` field.

If you installed and uninstalled the addon right away, you'd get a ProgrammingError saying that some columns exist no more. Checks are done now using `search_read`, which lets us limit the fields being fetched, and the environment is cleared to make sure nothing fails.

Also we now guess if this own addon has been uninstalled and skip further logic if so, given it would hit broken triggers otherwise as it did before.
2020-05-18 13:10:47 +02:00
Jairo Llopis 3bb0751a73 [FIX][module_auto_update] Record base addon checksum (#948) 2020-05-18 13:10:47 +02:00
Dave Lasley badbc61f4c [FIX] module_auto_update: Don't compute upgrade on uninstall
* `button_uninstall` calls `get_module_list`, which subsequently forces module upgrades. Add a context validation to prevent that
* Add test for button_immediate_uninstall
* Mock commit for immediate uninstall
* Fix immediate uninstall test
* Switch nesting
* Bump module version
2020-05-18 13:10:47 +02:00
Jairo Llopis c88d04a719 [REF][module_auto_update] Forward port v9 improvements
* Recompute dir hashes only when needed - By removing the recomputation from `update_list` we get faster CLI module upgrades and it only performs the autoupdate when using the autoupdate wizard or cron.
* Pass tests if addon is in readonly directory
* Set dependencies to upgrade

[FIX][module_auto_update] Pass tests if addon is in readonly directory

[FIX][module_auto_update] Set dependencies to upgrade
2020-05-18 13:10:47 +02:00
OCA Transbot 4c64d885d3 OCA Transbot updated translations from Transifex 2020-05-18 13:10:47 +02:00
Brenton Hughes 402a1aca5b [ADD] module_auto_update: Create module (#882)
* [IMP] module_auto_update: Create new module
* Add checksum_dir and checksum_installed fields to ir.module.module
  * Add checksum_dir to compute current checksum of module directory
    in addons path
  * Add checksum_installed to store checksum of module directory
    when module was last installed or upgraded
* Use checksumdir Python library to compute module directory sha1
  hashes, ignoring pyc and pyo extensions
* Extend update_list method to compare modules' checksum_dir and
  checksum_installed, then change state of modules with differing
  checksums to 'to upgrade'
* Replace Apps/Updates menu item with menu item of same name, which
  updates apps list and displays tree view of ir.module.module
  records with state 'to upgrade'
* Extend create and write methods to store computed checksum_dir as
  checksum_installed during module installation and upgrade, and
  set checksum_installed to False on uninstall
* Use context to stop checksum_installed from being updated during
  upgrade/uninstall cancellation
* Add cron job to periodically check for module upgrades by
  comparing checksums, then perform any available upgrades
* Extend upgrade_module method (called by cron and 'Apply Scheduled
  Upgrades' menu item) to call update_list
* Add post_init_hook to store checksum_installed of existing
  modules
* Add test coverage

* [FIX] module_auto_update: Fix test broken by changes
* Use dummy module to test update_list method instead of
  module_auto_update
2020-05-18 13:10:47 +02:00
OCA-git-bot e8830e8548 [ADD] setup.py 2020-05-17 12:02:06 +00:00
OCA-git-bot 7d0c763e6a [UPD] README.rst 2020-05-17 12:02:05 +00:00
oca-travis e743ebb01f [UPD] Update fetchmail_notify_error_to_sender.pot 2020-05-17 11:56:44 +00:00
OCA-git-bot dc5e1bffca Merge PR #1815 into 13.0
Signed-off-by pedrobaeza
2020-05-17 11:48:40 +00:00
OCA-git-bot d24094ad50
[UPD] pin flake8 version [ci skip] 2020-05-13 14:10:14 +02:00
OCA Transbot 2c7a14157d Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-13.0/server-tools-13.0-company_country
Translate-URL: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-company_country/
2020-04-24 15:24:57 +00:00
oca-travis 28312de21a [UPD] Update company_country.pot 2020-04-24 15:24:45 +00:00
Moises Lopez - https://www.vauxoo.com/ 3aed9ef953
Merge pull request #1805 from vauxoo-dev/13.0-company_country_forward_port_changes-luisg
[REF] company_country: Forward-port of recent changes from 12.0
2020-04-24 10:07:17 -05:00
Denis Valenchyts f9eb574f9a [MIG] fetchmail_notify_error_to_sender: Migration to 13.0
[FIX] fetchmail_notify_error_to_sender: Bug fix flake8

[FIX] fetchmail_notify_error_to_sender: Bug fix flake8
2020-04-23 18:31:43 +03:00
Denis Valenchyts 2eab597bff [IMP] fetchmail_notify_error_to_sender: black, isort, prettier 2020-04-17 13:40:28 +03:00
Rodrigo Macedo 03a8bf2c39 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (6 of 6 strings)

Translation: server-tools-12.0/server-tools-12.0-fetchmail_notify_error_to_sender
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-fetchmail_notify_error_to_sender/pt_BR/
2020-04-17 13:38:56 +03:00
黎伟杰 bde96316de Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (6 of 6 strings)

Translation: server-tools-12.0/server-tools-12.0-fetchmail_notify_error_to_sender
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-fetchmail_notify_error_to_sender/zh_CN/
2020-04-17 13:38:56 +03:00
OCA-git-bot f9e89e3123 [UPD] README.rst 2020-04-17 13:38:56 +03:00
OCA Transbot 901b4fd164 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-12.0/server-tools-12.0-fetchmail_notify_error_to_sender
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-fetchmail_notify_error_to_sender/
2020-04-17 13:38:56 +03:00
oca-travis aa6c833d8c [UPD] Update fetchmail_notify_error_to_sender.pot 2020-04-17 13:38:56 +03:00
OCA-git-bot ec0fe5f7b4 [UPD] README.rst 2020-04-17 13:38:56 +03:00
mreficent 3f4813400d [FIX] fetchmail_notify_error_to_sender: fix test 2020-04-17 13:38:56 +03:00
hveficent c633470492 [MIG] fetchmail_notify_error_to_sender: Migration to 12.0 2020-04-17 13:38:56 +03:00
OCA Git Bot 79378b0e08 [UPD] README.rst 2020-04-17 13:38:56 +03:00
oca-travis 0a03b6a220 [UPD] Update fetchmail_notify_error_to_sender.pot 2020-04-17 13:38:56 +03:00
Nedas 74e90bee6d [11.0] [MIG] [fetchmail_notify_error_to_sender] - readme, tests, fix template tech. msg issue 2020-04-17 13:38:56 +03:00
HaiDD 00d8b575a7 [MIG] fetchmail_notify_error_to_sender: Migration to 11.0 2020-04-17 13:38:56 +03:00
OCA Transbot 541ee218e2 OCA Transbot updated translations from Transifex 2020-04-17 13:38:56 +03:00
eLBati 46a8eeba31 porting fetchmail_notify_error_to_sender to 10.0 2020-04-17 13:38:56 +03:00
mreficent be7bcb393d [MIG] fetchmail_notify_error_to_sender: Migration to 10.0 2020-04-17 13:38:56 +03:00
OCA Transbot 75f71a3959 OCA Transbot updated translations from Transifex 2020-04-17 13:38:56 +03:00
mreficent ed24d7fd56 [MIG] fetchmail_notify_error_to_sender 2020-04-17 13:38:56 +03:00
Sébastien Alix 0a940ea1df Fix Travis (#616)
* [FIX] auth_from_http_remote_user - Lint

* [FIX] server_environment - Lint

* [FIX] base_module_doc_rst - Lint

* [FIX] fetchmail_notify_error_to_sender - Fix XML view, it was the 'active' field from 'fetchmail_attach_from_folder' module which was targeted by mistake (belonging to another data model)
2020-04-17 13:38:56 +03:00
OCA Transbot 5a229cc9e0 OCA Transbot updated translations from Transifex 2020-04-17 13:38:56 +03:00
eLBati 521f899b68 [ADD] module fetchmail_notify_error_to_sender 2020-04-17 13:38:56 +03:00
OCA-git-bot e0258607eb [ADD] setup.py 2020-04-16 14:30:42 +00:00
OCA-git-bot 75a7bc2d4d [UPD] README.rst 2020-04-16 14:30:41 +00:00
oca-travis 71e118f8e9 [UPD] Update mail_server_relay_disallowed.pot 2020-04-16 14:24:18 +00:00
OCA-git-bot 84976410a5 Merge PR #1762 into 13.0
Signed-off-by JordiBForgeFlow
2020-04-16 14:15:49 +00:00
Jordi Ballester Alomar 92d3db6ff2 [MIG] mail_server_relay_disallowed: Migration to 13.0 2020-04-16 01:46:47 +02:00
mreficent 2250391b60 [IMP] mail_server_relay_disallowed: black, isort 2020-04-16 01:46:45 +02:00
Adrià Gil Sorribes 41510b3a7d [ADD] Add module mail_server_relay_disallowed to v12 2020-04-16 01:45:41 +02:00
OCA Transbot bb505700b4 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-13.0/server-tools-13.0-base_search_fuzzy
Translate-URL: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-base_search_fuzzy/
2020-04-15 14:15:03 +00:00
OCA-git-bot 19f734208d [ADD] setup.py 2020-04-15 14:14:50 +00:00
OCA-git-bot 5aaa02f91c [ADD] icon.png 2020-04-15 14:14:50 +00:00
OCA-git-bot 4f81d83a31 [UPD] README.rst 2020-04-15 14:14:50 +00:00
oca-travis 4d54e0a6d2 [UPD] Update test_base_time_window.pot 2020-04-15 14:01:15 +00:00
oca-travis d5dadb63fc [UPD] Update base_time_window.pot 2020-04-15 14:01:14 +00:00
OCA-git-bot b20e6bf8b5 Merge PR #1798 into 13.0
Signed-off-by jgrandguillaume
2020-04-15 13:52:57 +00:00