Skip to content

Commit 71dfd66

Browse files
committed
🚑 database_expiration: there is no such parameter as database_expiration_message
1 parent 6d7134b commit 71dfd66

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

database_expiration/__manifest__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright 2020 Eugene Molotov <https://it-projects.info/team/em230418>
2+
# Copyright 2021 Denis Mudarisov <https://github.com/trojikman>
23
# License MIT (https://opensource.org/licenses/MIT).
34

45
{
@@ -7,7 +8,7 @@
78
"category": "Hidden",
89
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version=13.0",
910
"images": [],
10-
"version": "14.0.1.0.0",
11+
"version": "14.0.1.1.1",
1112
"application": False,
1213
"author": "IT-Projects LLC, Eugene Molotov",
1314
"support": "apps@it-projects.info",

database_expiration/doc/changelog.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
`1.1.1`
2+
-------
3+
4+
- **Fix:** in cases when the database expires today or tomorrow no reminder was shown
5+
16
`1.1.0`
27
-------
38

4-
- **New**: ```database_expiration_warning_delay`` option
9+
- **New**: ``database_expiration_warning_delay`` option
510
- **New**: Ability to add hyperlink in warning/expiration message
611

712
`1.0.0`

database_expiration/models/ir_http.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright 2020 Eugene Molotov <https://it-projects.info/team/em230418>
2+
# Copyright 2021 Denis Mudarisov <https://github.com/trojikman>
23
# License MIT (https://opensource.org/licenses/MIT).
34

45
import logging
@@ -61,12 +62,10 @@ def session_info(self):
6162
)
6263
res["database_block_is_warning"] = True
6364
elif delta.days == 1:
64-
res[
65-
"database_expiration_message"
66-
] = "Your database will expire tomorrow"
65+
res["database_block_message"] = "Your database will expire tomorrow"
6766
res["database_block_is_warning"] = True
6867
elif delta.days == 0:
69-
res["database_expiration_message"] = "Your database will expire today"
68+
res["database_block_message"] = "Your database will expire today"
7069
res["database_block_is_warning"] = True
7170

7271
if res.get("database_block_message"):

0 commit comments

Comments
 (0)