|
@ -35,6 +35,7 @@ class ir_model_fields(orm.Model): |
|
|
commit_org = cr.commit |
|
|
commit_org = cr.commit |
|
|
cr.commit = lambda *args: None |
|
|
cr.commit = lambda *args: None |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
for this in self.browse(cr, uid, ids, context=context): |
|
|
for this in self.browse(cr, uid, ids, context=context): |
|
|
pool_obj = self.pool.get(this.model_id.model) |
|
|
pool_obj = self.pool.get(this.model_id.model) |
|
|
self.create_database_column(cr, uid, pool_obj, this.name, |
|
|
self.create_database_column(cr, uid, pool_obj, this.name, |
|
@ -53,8 +54,9 @@ class ir_model_fields(orm.Model): |
|
|
this.serialization_field_id.name, |
|
|
this.serialization_field_id.name, |
|
|
this.name, context=context) |
|
|
this.name, context=context) |
|
|
offset += 1 |
|
|
offset += 1 |
|
|
|
|
|
|
|
|
|
|
|
finally: |
|
|
cr.commit = commit_org |
|
|
cr.commit = commit_org |
|
|
|
|
|
|
|
|
return True |
|
|
return True |
|
|
|
|
|
|
|
|
def create_database_column(self, cr, uid, pool_obj, field_name, |
|
|
def create_database_column(self, cr, uid, pool_obj, field_name, |
|
|