Commit Graph

981 Commits (acf2c04a79d2496258eb62f4921025d092a6ca8c)

Author SHA1 Message Date
Brenton Hughes 890d8766e6 [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
2021-12-27 16:49:36 +02:00
OCA-git-bot 351e4d88fd [ADD] setup.py 2021-12-20 07:53:42 +00:00
OCA-git-bot 7af8e27e59 [UPD] README.rst 2021-12-20 07:53:41 +00:00
OCA-git-bot 8e8a3ccf29 [UPD] addons table in README.md 2021-12-20 07:53:41 +00:00
oca-ci 857f7467e6 [UPD] Update base_cron_exclusion.pot 2021-12-20 07:51:43 +00:00
OCA-git-bot fb29f3bad3 Merge PR #2225 into 15.0
Signed-off-by LoisRForgeFlow
2021-12-20 07:50:00 +00:00
Koen Loodts 4871adfd4f [MIG] onchange_helper: Migration to 15.0 2021-12-14 13:05:39 +01:00
Koen Loodts b6ca5fa740 [IMP] onchange_helper: black, isort, prettier 2021-12-14 12:52:29 +01:00
OCA-git-bot f462bcf731 [UPD] README.rst 2021-12-14 12:51:58 +01:00
oca-travis 333f7f02a4 [UPD] Update onchange_helper.pot 2021-12-14 12:51:58 +01:00
Kevin Khao aaf38d0d62 [14.0][MIG] onchange_helper: Migration to 14.0 2021-12-14 12:51:58 +01:00
OCA-git-bot c1b11e9f87 [UPD] README.rst 2021-12-14 12:51:58 +01:00
oca-travis 01d42b2867 [UPD] Update onchange_helper.pot 2021-12-14 12:51:58 +01:00
Laurent-Corron ee9854807e [MIG] onchange_helper: Migration to 13.0 2021-12-14 12:51:58 +01:00
laurent.corron 70da5fc226 [IMP] onchange_helper: black, isort 2021-12-14 12:51:58 +01:00
黎伟杰 dd20ed5447 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (1 of 1 strings)

Translation: server-tools-12.0/server-tools-12.0-onchange_helper
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-onchange_helper/zh_CN/
2021-12-14 12:51:58 +01:00
黎伟杰 ae3163d2ec Added translation using Weblate (Chinese (Simplified)) 2021-12-14 12:51:58 +01:00
OCA-git-bot ca7831243e [UPD] README.rst 2021-12-14 12:51:58 +01:00
OCA Transbot 8f76829dd6 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-12.0/server-tools-12.0-onchange_helper
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-onchange_helper/
2021-12-14 12:51:58 +01:00
oca-travis 1e410eb977 [UPD] Update onchange_helper.pot 2021-12-14 12:51:58 +01:00
OCA-git-bot 5add8fe18c [ADD] icon.png 2021-12-14 12:51:58 +01:00
OCA-git-bot 8a16887a3f [UPD] README.rst 2021-12-14 12:51:58 +01:00
Benoit cdd16e9f8b [FIX] don't remove computed fields with inverse method of the onchange values 2021-12-14 12:51:58 +01:00
sbejaoui 9a86c4542a [UPD] - Update documentation 2021-12-14 12:51:58 +01:00
sbejaoui 12ae856aeb [IMP] - get default values for non record onchange call
other improvement:

set onchange_specs to all fields as _onchange_spec()
retrun onchange fields for default view
return field value if it's set in onchange_fields (usuful to get default value for a field)
2021-12-14 12:51:58 +01:00
sbejaoui 652dccf46d [IMP] - read may be harmful to performance 2021-12-14 12:51:58 +01:00
sbejaoui 49b48e493a [IMP] - Adapt unit tests 2021-12-14 12:51:58 +01:00
sebastienbeau b0ecf7c74f [FWP] - Forward porting changes from #1253 2021-12-14 12:51:58 +01:00
sbejaoui a6a3d22fb0 [12.0][MIG] - onchange_helper migration to 12.0 2021-12-14 12:51:58 +01:00
oca-travis 91d73b430b [UPD] Update onchange_helper.pot 2021-12-14 12:51:58 +01:00
OCA Transbot 9814add46c OCA Transbot updated translations from Transifex 2021-12-14 12:51:58 +01:00
Andrea 9d7bd5219e [11.0][MIG] onchange_helper + add tests 2021-12-14 12:51:58 +01:00
OCA Transbot 2ac1de20e5 OCA Transbot updated translations from Transifex 2021-12-14 12:51:58 +01:00
Alexis de Lattre 2b56285b59 [FIX] avoid a crash when value is False for a M2O field 2021-12-14 12:51:58 +01:00
Alexis de Lattre a0e0dd8f45 [MIG] module onchange_helper to v10.0 2021-12-14 12:51:58 +01:00
Florian da Costa a2b21c8bd5 Add onchange_helper module 2021-12-14 12:51:58 +01:00
Ivàn Todorovich 588c799749 [MIG] base_view_inheritance_extension: Migration to 15.0
* Removed `list_add` and `list_remove`, they've been deprecated and
implemented in Odoo core since several versions ago.

* Removed `move`, as it has also already been implemented in core several
versions ago.

* Replaced `python_dict` by `update`, that performs an operation similar
to :meth:`dict.update`, but on the ast.Dict.
2021-12-13 17:16:38 -03:00
Ivàn Todorovich 76836d2e24 [IMP] base_view_inheritance_extension: pre-commit execution 2021-12-13 11:58:55 -03:00
OCA-git-bot 042a6baef4 base_view_inheritance_extension 14.0.1.1.0 2021-12-13 11:58:45 -03:00
OCA-git-bot ca8b5a7f1a [UPD] README.rst 2021-12-13 11:58:45 -03:00
Ivàn Todorovich 628cd9f6a6 [UPD] base_view_inheritance_extension: readme - deprecate list_add and list_remove 2021-12-13 11:58:45 -03:00
Ivàn Todorovich a362d72130 [IMP] base_view_inheritance_extension: real python_dict 2021-12-13 11:58:45 -03:00
OCA-git-bot 574bb61334 base_view_inheritance_extension 14.0.1.0.1 2021-12-13 11:58:45 -03:00
OCA-git-bot 11b443e8cc [UPD] README.rst 2021-12-13 11:58:45 -03:00
oca-travis 46099c73f2 [UPD] Update base_view_inheritance_extension.pot 2021-12-13 11:58:45 -03:00
Julien Coux 5f00f4b05c Fix apply inheritance specs on views (pre_locate) 2021-12-13 11:58:45 -03:00
Alexis de Lattre 8bc0f3e523 [MIG] base_view_inheritance_extension to v14 2021-12-13 11:58:45 -03:00
OCA-git-bot e84cd3a725 base_view_inheritance_extension 13.0.1.0.1 2021-12-13 11:58:45 -03:00
Carlos Lopez 1c1a9c4a8e FIX: add missing params on function apply_inheritance_specs 2021-12-13 11:58:45 -03:00
OCA Transbot b9ab5dfe92 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_view_inheritance_extension
Translate-URL: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-base_view_inheritance_extension/
2021-12-13 11:58:45 -03:00