Set party lang as a configuration option

This commit is contained in:
Nicolas Évrard committed 2011-03-29 15:17:39 +02:00
1 parent c0eb2ed70d
commit 5f488eaffc
3 files changed
+10

No files matched your search

+3
View File
@@ -14,5 +14,8 @@ class Configuration(ModelSingleton, ModelSQL, ModelView):
('company', 'in', [Eval('company'), False]),
('code', '=', 'party.party'),
], required=True))
party_lang = fields.Property(fields.Many2One("ir.lang", 'Party Language',
help=('The value set on this field will preset the language on new '
'parties')))
Configuration()