diff options
Diffstat (limited to 'odoo/service/model.py')
| -rw-r--r-- | odoo/service/model.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/service/model.py b/odoo/service/model.py index ba243bf432c..78a07460a38 100644 --- a/odoo/service/model.py +++ b/odoo/service/model.py @@ -137,7 +137,7 @@ def check(f): time.sleep(wait_time) except IntegrityError as inst: registry = odoo.registry(dbname) - for key in registry._sql_error.keys(): + for key in pycompat.keys(registry._sql_error): if key in inst[0]: raise ValidationError(tr(registry._sql_error[key], 'sql_constraint') or inst[0]) if inst.pgcode in (errorcodes.NOT_NULL_VIOLATION, errorcodes.FOREIGN_KEY_VIOLATION, errorcodes.RESTRICT_VIOLATION): |
