Browse Source

.

pull/6/head
Mathias Markl 7 years ago
parent
commit
05d91f40f5
  1. 2
      muk_converter/__manifest__.py
  2. 2
      muk_converter/models/store.py

2
muk_converter/__manifest__.py

@ -20,7 +20,7 @@
{
"name": "MuK Converter",
"summary": """Universal Converter""",
"version": '11.0.1.1.2',
"version": '11.0.1.1.3',
"category": 'Extra Tools',
"license": "AGPL-3",
"website": "https://www.mukit.at",

2
muk_converter/models/store.py

@ -65,5 +65,5 @@ class Store(models.Model):
param = self.env['ir.config_parameter'].sudo()
max_store = param.get_param("muk_converter.max_store", default=20)
records = self.search([], order='used_date asc')
if len(records) > max_store:
if len(records) > int(max_store):
records[max_store:].unlink()
Loading…
Cancel
Save