Change select=1|2 to select=True

issue2305
review269003
This commit is contained in:
Mathias Behrle
2012-03-05 10:53:05 +01:00
parent 1562001c64
commit fd04a7c776
+1 -1
View File
@@ -47,7 +47,7 @@ class PriceList(ModelSQL, ModelView):
_description = __doc__
name = fields.Char('Name', required=True, translate=True)
company = fields.Many2One('company.company', 'Company', required=True,
select=1, domain=[
select=True, domain=[
('id', If(Eval('context', {}).contains('company'), '=', '!='),
Eval('context', {}).get('company', 0)),
])