From c8fd86722d037d8b14eb7b68905eeec488a395e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 25 Mar 2016 10:44:39 +0100 Subject: [PATCH] Remove Party Language configuration The Party language is now a property for which the default value is no more managed by default method. Also it is probably better to leave the field empty if user doesn't know than having a default value set like that a choice can be done at run time. issue5198 review20111002 --- configuration.py | 3 --- party.py | 7 ------- view/configuration_form.xml | 2 -- 3 files changed, 12 deletions(-) diff --git a/configuration.py b/configuration.py index 6a426cef04..9fd3c00dca 100644 --- a/configuration.py +++ b/configuration.py @@ -13,6 +13,3 @@ class Configuration(ModelSingleton, ModelSQL, ModelView): 'Party Sequence', domain=[ ('code', '=', 'party.party'), ])) - party_lang = fields.Property(fields.Many2One("ir.lang", 'Party Language', - help=('The value set on this field will preset the language on new ' - 'parties'))) diff --git a/party.py b/party.py index 69b5e766c4..67428618df 100644 --- a/party.py +++ b/party.py @@ -115,13 +115,6 @@ class Party(ModelSQL, ModelView): 'write_uid', 'write_date')) return [Address.default_get(fields_names)] - @staticmethod - def default_lang(): - Configuration = Pool().get('party.configuration') - config = Configuration(1) - if config.party_lang: - return config.party_lang.id - @staticmethod def default_code_readonly(): Configuration = Pool().get('party.configuration') diff --git a/view/configuration_form.xml b/view/configuration_form.xml index 60ad6027a9..66eb72e89b 100644 --- a/view/configuration_form.xml +++ b/view/configuration_form.xml @@ -4,6 +4,4 @@ this repository contains the full copyright notices and license terms. -->