[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
This commit is contained in:
Martin Trigaux 2014-02-17 14:48:19 +01:00
parent ae0e712cb9
commit 5c63d1a232
2 changed files with 4 additions and 2 deletions

View File

@ -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= {

View File

@ -99,7 +99,7 @@
<label for="font" />
<div>
<div>
<field name="font" class="oe_inline" domain="[('mode', 'in', ('normal', 'regular', 'all', 'book'))]" />
<field name="font" class="oe_inline" />
<button string="(reload fonts)" name="act_discover_fonts" type="object" class="oe_link"/>
</div>
</div>