Browse Source

publish muk_autovacuum - 12.0

pull/9/head
MuK IT GmbH 6 years ago
parent
commit
4ef84796e3
  1. 2
      muk_autovacuum/__manifest__.py
  2. 4
      muk_autovacuum/models/rules.py
  3. 1
      muk_autovacuum/views/rules.xml

2
muk_autovacuum/__manifest__.py

@ -20,7 +20,7 @@
{ {
'name': 'MuK Autovacuum', 'name': 'MuK Autovacuum',
'summary': 'Configure automatic garbage collection', 'summary': 'Configure automatic garbage collection',
'version': '12.0.2.1.6',
'version': '12.0.2.1.8',
'category': 'Extra Tools', 'category': 'Extra Tools',
'license': 'AGPL-3', 'license': 'AGPL-3',
'author': 'MuK IT', 'author': 'MuK IT',

4
muk_autovacuum/models/rules.py

@ -18,6 +18,7 @@
################################################################################### ###################################################################################
import time import time
import base64
import logging import logging
import datetime import datetime
import dateutil import dateutil
@ -241,6 +242,7 @@ class AutoVacuumRules(models.Model):
return { return {
'datetime': datetime, 'datetime': datetime,
'dateutil': dateutil, 'dateutil': dateutil,
'timezone': timezone,
'time': time, 'time': time,
'uid': self.env.uid, 'uid': self.env.uid,
'user': self.env.user 'user': self.env.user
@ -257,6 +259,8 @@ class AutoVacuumRules(models.Model):
'datetime': datetime, 'datetime': datetime,
'dateutil': dateutil, 'dateutil': dateutil,
'timezone': timezone, 'timezone': timezone,
'b64encode': base64.b64encode,
'b64decode': base64.b64decode,
'date_format': DEFAULT_SERVER_DATE_FORMAT, 'date_format': DEFAULT_SERVER_DATE_FORMAT,
'datetime_format': DEFAULT_SERVER_DATETIME_FORMAT, 'datetime_format': DEFAULT_SERVER_DATETIME_FORMAT,
'Warning': Warning, 'Warning': Warning,

1
muk_autovacuum/views/rules.xml

@ -128,6 +128,7 @@
<li><code>uid</code>, <code>user</code>: User on which the rule is triggered</li> <li><code>uid</code>, <code>user</code>: User on which the rule is triggered</li>
<li><code>env</code>: Odoo Environment on which the rule is triggered</li> <li><code>env</code>: Odoo Environment on which the rule is triggered</li>
<li><code>model</code>: Odoo Model of the record on which the rule is triggered</li> <li><code>model</code>: Odoo Model of the record on which the rule is triggered</li>
<li><code>b64encode</code>, <code>b64decode</code>: Base64 converter</li>
<li><code>time</code>, <code>datetime</code>, <code>dateutil</code>, <code>timezone</code>: useful Python libraries</li> <li><code>time</code>, <code>datetime</code>, <code>dateutil</code>, <code>timezone</code>: useful Python libraries</li>
<li><code>date_format</code>, <code>datetime_format</code>: server date and time formats</li> <li><code>date_format</code>, <code>datetime_format</code>: server date and time formats</li>
<li><code>logger.info(message)</code>: Python logging framework</li> <li><code>logger.info(message)</code>: Python logging framework</li>

Loading…
Cancel
Save