[IMP] improved get font method
bzr revid: dizzy.zala@gmail.com-20130911102959-i7fnvt4pom219r9i
This commit is contained in:
parent
6efdf7615c
commit
9676487680
|
@ -24,13 +24,17 @@ import re
|
|||
import os
|
||||
from openerp.addons.base.res import res_company
|
||||
|
||||
supported_fonts = []
|
||||
|
||||
class base_config_settings(osv.osv_memory):
|
||||
_name = 'base.config.settings'
|
||||
_inherit = 'res.config.settings'
|
||||
|
||||
def _get_font(self, cr, uid, context=None):
|
||||
font_list = res_company.get_font_list()
|
||||
return font_list
|
||||
global supported_fonts
|
||||
if not supported_fonts:
|
||||
supported_fonts.extend(res_company.get_font_list())
|
||||
return supported_fonts
|
||||
|
||||
_columns = {
|
||||
'module_multi_company': fields.boolean('Manage multiple companies',
|
||||
|
|
Loading…
Reference in New Issue