From 5f488eaffc86dc00a7a868c6a3edc3e84ab98f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Tue, 29 Mar 2011 15:17:39 +0200 Subject: [PATCH] Set party lang as a configuration option --- configuration.py | 3 +++ configuration.xml | 2 ++ party.py | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/configuration.py b/configuration.py index 97e148dea7..120c090844 100644 --- a/configuration.py +++ b/configuration.py @@ -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() diff --git a/configuration.xml b/configuration.xml index 7fcb04d385..416e826d74 100644 --- a/configuration.xml +++ b/configuration.xml @@ -11,6 +11,8 @@ this repository contains the full copyright notices and license terms. -->