summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openerp/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openerp/models.py b/openerp/models.py
index 28eefcf0bc1..94a2fea3914 100644
--- a/openerp/models.py
+++ b/openerp/models.py
@@ -374,10 +374,10 @@ class BaseModel(object):
context = {}
cr.execute("""
UPDATE ir_model
- SET name=%s, info=%s, state='base', transient=%s
+ SET transient=%s
WHERE model=%s
RETURNING id
- """, [self._description, self.__doc__, self._transient, self._name])
+ """, [self._transient, self._name])
if not cr.rowcount:
cr.execute('SELECT nextval(%s)', ('ir_model_id_seq',))
model_id = cr.fetchone()[0]