[MIG] module_auto_update: Migration to 15.0

pull/2248/head
Miku Laitinen 2021-12-27 17:32:14 +02:00
parent 995e574d62
commit ae00f76f38
11 changed files with 36 additions and 26 deletions

View File

@ -5,7 +5,7 @@
{
"name": "Module Auto Update",
"summary": "Automatically update Odoo modules",
"version": "14.0.1.0.1",
"version": "15.0.1.0.0",
"category": "Extra Tools",
"website": "https://github.com/OCA/server-tools",
"author": "LasLabs, "

View File

@ -4,8 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-27 15:28+0000\n"
"PO-Revision-Date: 2021-12-27 15:28+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@ -20,18 +22,9 @@ msgid "Auto-Upgrade Modules"
msgstr ""
#. module: module_auto_update
#: model:ir.model.fields,field_description:module_auto_update.field_ir_module_module__display_name
msgid "Display Name"
msgstr ""
#. module: module_auto_update
#: model:ir.model.fields,field_description:module_auto_update.field_ir_module_module__id
msgid "ID"
msgstr ""
#. module: module_auto_update
#: model:ir.model.fields,field_description:module_auto_update.field_ir_module_module____last_update
msgid "Last Modified on"
#: code:addons/module_auto_update/models/module.py:0
#, python-format
msgid "Checksum upgrade complete."
msgstr ""
#. module: module_auto_update
@ -40,6 +33,9 @@ msgid "Module"
msgstr ""
#. module: module_auto_update
#: model:ir.model.fields,field_description:module_auto_update.field_ir_module_module__smart_search
msgid "Smart Search"
#: code:addons/module_auto_update/models/module.py:0
#, python-format
msgid ""
"No checksum change detected in installed modules and all modules installed, "
"nothing to do."
msgstr ""

View File

@ -6,7 +6,7 @@ import json
import logging
import os
from odoo import api, exceptions, models, tools
from odoo import _, api, exceptions, models, tools
from odoo.modules.module import get_module_path
from ..addon_hash import addon_hash
@ -143,7 +143,20 @@ class Module(models.Model):
"No checksum change detected in installed modules "
"and all modules installed, nothing to do."
)
return
return {
"type": "ir.actions.client",
"tag": "display_notification",
"params": {
"message": _(
"No checksum change detected in installed modules "
"and all modules installed, nothing to do."
),
"type": "success",
"sticky": False,
},
}
_logger.info(
"Marking the following modules to upgrade, "
"for their checksums changed: %s...",
@ -174,3 +187,12 @@ class Module(models.Model):
)
_logger.info("Checksum upgrade complete.")
return {
"type": "ir.actions.client",
"tag": "display_notification",
"params": {
"message": _("Checksum upgrade complete."),
"type": "success",
"sticky": False,
},
}

View File

@ -1 +0,0 @@
en text