From 05d91f40f5d20149173c48d35bab72aa610dce34 Mon Sep 17 00:00:00 2001 From: Mathias Markl Date: Sat, 26 May 2018 10:34:31 +0200 Subject: [PATCH] . --- muk_converter/__manifest__.py | 2 +- muk_converter/models/store.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/muk_converter/__manifest__.py b/muk_converter/__manifest__.py index 2ebe6a9..8fde0f1 100644 --- a/muk_converter/__manifest__.py +++ b/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", diff --git a/muk_converter/models/store.py b/muk_converter/models/store.py index 7af4af3..3e09f91 100644 --- a/muk_converter/models/store.py +++ b/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()