From 5c63d1a23296ae44bb6aa8ba2d9b700bdf28959a Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 17 Feb 2014 14:48:19 +0100 Subject: [PATCH] [FIX] fonts: move domain on field instead of view and use capitalised version of mode (would not found any otherwise) bzr revid: mat@openerp.com-20140217134819-d6bwviupxtpwdl4x --- addons/base_setup/res_config.py | 4 +++- addons/base_setup/res_config_view.xml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/base_setup/res_config.py b/addons/base_setup/res_config.py index 763d0784603..955591e8824 100644 --- a/addons/base_setup/res_config.py +++ b/addons/base_setup/res_config.py @@ -41,7 +41,9 @@ class base_config_settings(osv.osv_memory): help="""This installs the module google_docs."""), 'module_google_calendar': fields.boolean('Allow the users to synchronize their calendar with Google Calendar', help="""This installs the module google_calendar."""), - 'font': fields.many2one('res.font', string="Report Font", help="Set the font into the report header, it will be used as default font in the RML reports of the user company"), + 'font': fields.many2one('res.font', string="Report Font", domain=[('mode', 'in', ('Normal', 'Regular', 'all', 'Book'))], + help="Set the font into the report header, it will be used as default font in the RML reports of the user company"), + } _defaults= { diff --git a/addons/base_setup/res_config_view.xml b/addons/base_setup/res_config_view.xml index 73fc9f83830..66fdcf91633 100644 --- a/addons/base_setup/res_config_view.xml +++ b/addons/base_setup/res_config_view.xml @@ -99,7 +99,7 @@