Add domain on company according rules for issue965

This commit is contained in:
Cédric Krier committed 2009-04-10 11:27:26 +02:00
1 parent 1eff180c04
commit 5e0eaffdc7
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ class Sale(ModelWorkflow, ModelSQL, ModelView):
company = fields.Many2One('company.company', 'Company', required=True,
states={
'readonly': "state != 'draft' or bool(lines)",
})
}, domain="[('id', '=', context.get('company', 0))]")
reference = fields.Char('Reference', readonly=True, select=1)
description = fields.Char('Description', states={
'readonly': "state != 'draft'",