From 2e87342e766029a3ae382e45634c0c8d6c7b0e69 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 21 Aug 2017 09:04:04 +0200 Subject: [PATCH] [SEC] fix vulnerable use of pickle (#355) the module is still not ported to v9, but this will save trouble when it finally is --- account_tax_update/__openerp__.py | 2 +- account_tax_update/model/update_tax_config.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/account_tax_update/__openerp__.py b/account_tax_update/__openerp__.py index 3e1146636..9ef9181f9 100644 --- a/account_tax_update/__openerp__.py +++ b/account_tax_update/__openerp__.py @@ -21,7 +21,7 @@ ############################################################################## { "name": "Update tax wizard", - "version": "1.0.44", + "version": "9.0.1.0.45", "author": "Therp BV, Camptocamp SA,Odoo Community Association (OCA)", "category": 'Base', 'complexity': "normal", diff --git a/account_tax_update/model/update_tax_config.py b/account_tax_update/model/update_tax_config.py index d202a4f33..8a137b8a6 100644 --- a/account_tax_update/model/update_tax_config.py +++ b/account_tax_update/model/update_tax_config.py @@ -21,9 +21,10 @@ ############################################################################## from datetime import datetime -import pickle + from openerp.osv import orm, fields from openerp.tools.translate import _ +from openerp.tools.misc import pickle class UpdateTaxConfig(orm.Model):