Skip to content
Snippets Groups Projects
Commit 19c73809 authored by Xavier Morel's avatar Xavier Morel
Browse files

[FIX] small potential encoding issue in custom models

parent 42bd6e52
Branches
Tags
No related merge requests found
......@@ -200,6 +200,8 @@ class ir_model(osv.osv):
def instanciate(self, cr, user, model, context=None):
class x_custom_model(osv.osv):
_custom = True
if isinstance(model, unicode):
model = model.encode('utf-8')
x_custom_model._name = model
x_custom_model._module = False
a = x_custom_model._build_model(self.pool, cr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment