[FIX] font: correct action for reloading
bzr revid: mat@openerp.com-20131014145339-p1uz9iwfyf3uhyhr
This commit is contained in:
parent
59efdc209a
commit
3bc24a9f3b
|
@ -75,6 +75,9 @@ class base_config_settings(osv.osv_memory):
|
||||||
user.company_id.write({'font': wizard.font.id,'rml_header': self._change_header(user.company_id.rml_header,font_name), 'rml_header2': self._change_header(user.company_id.rml_header2, font_name), 'rml_header3': self._change_header(user.company_id.rml_header3, font_name)})
|
user.company_id.write({'font': wizard.font.id,'rml_header': self._change_header(user.company_id.rml_header,font_name), 'rml_header2': self._change_header(user.company_id.rml_header2, font_name), 'rml_header3': self._change_header(user.company_id.rml_header3, font_name)})
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
def act_discover_fonts(self, cr, uid, ids, context=None):
|
||||||
|
return self.pool.get("res.font").discover_fonts(cr, uid, ids, context)
|
||||||
|
|
||||||
# Preferences wizard for Sales & CRM.
|
# Preferences wizard for Sales & CRM.
|
||||||
# It is defined here because it is inherited independently in modules sale, crm,
|
# It is defined here because it is inherited independently in modules sale, crm,
|
||||||
# plugin_outlook and plugin_thunderbird.
|
# plugin_outlook and plugin_thunderbird.
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<field name="font" class="oe_inline"/>
|
<field name="font" class="oe_inline"/>
|
||||||
<button string="(reload fonts)" name="base.act_discover_fonts" type="object" class="oe_link"/>
|
<button string="(reload fonts)" name="act_discover_fonts" type="object" class="oe_link"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</group>
|
</group>
|
||||||
|
|
Loading…
Reference in New Issue