From d6cab4d92f770e6a36b042654c060bda8af1de05 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 25 Apr 2013 15:17:45 +0200 Subject: [PATCH] [IMP] only work on manual fields [FIX] set state to manual after creating the database field --- unserialize_field/ir_model_fields.py | 1 + unserialize_field/ir_model_fields.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/unserialize_field/ir_model_fields.py b/unserialize_field/ir_model_fields.py index 4c478546d..10986035f 100644 --- a/unserialize_field/ir_model_fields.py +++ b/unserialize_field/ir_model_fields.py @@ -33,6 +33,7 @@ class ir_model_fields(Model): for this in self.browse(cr, uid, ids, context=context): pool_obj = self.pool.get(this.model_id.model) self.create_database_column(cr, uid, pool_obj, this.name) + this.write({'state': 'manual'}) while True: ids = pool_obj.search( cr, uid, diff --git a/unserialize_field/ir_model_fields.xml b/unserialize_field/ir_model_fields.xml index 7be28d00c..17f6701bb 100644 --- a/unserialize_field/ir_model_fields.xml +++ b/unserialize_field/ir_model_fields.xml @@ -10,7 +10,7 @@