From 1019526c86cf925e95424543f2bdc692da76ad2c Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Wed, 22 Oct 2008 15:41:22 +0200 Subject: [PATCH] Use number for select on fields --- trytond/ir/export.py | 2 +- trytond/ir/model.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trytond/ir/export.py b/trytond/ir/export.py index 8161b63cf9..a85c7de2dc 100644 --- a/trytond/ir/export.py +++ b/trytond/ir/export.py @@ -22,6 +22,6 @@ class ExportLine(OSV): _description = __doc__ name = fields.Char('Field name', size=64) export = fields.Many2One('ir.export', 'Exportation', - select=True) + select=1) ExportLine() diff --git a/trytond/ir/model.py b/trytond/ir/model.py index 1f3d536bdf..ebe543a56b 100644 --- a/trytond/ir/model.py +++ b/trytond/ir/model.py @@ -33,7 +33,7 @@ class ModelField(OSV): name = fields.Char('Name', required=True) relation = fields.Char('Model Relation') model = fields.Many2One('ir.model', 'Model', required=True, - select=True, ondelete='cascade') + select=1, ondelete='cascade') field_description = fields.Char('Field Description', translate=True) ttype = fields.Char('Field Type')