[FIX] currency_rate_update - change on_changes in non private methods

(lp:c2c-addons/6.1  rev 18)
This commit is contained in:
Yannick Vaucher
2012-02-03 14:53:02 +01:00
parent a0108c04c0
commit 4ecf20ea60
2 changed files with 4 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ class res_company(osv.osv):
return True
def _on_change_auto_currency_up(self, cr, uid, id, value):
def on_change_auto_currency_up(self, cr, uid, id, value):
"""handle the activation of the currecny update on compagnies.
There are two ways of implementing multi_company currency,
the currency is shared or not. The module take care of the two
@@ -117,7 +117,7 @@ class res_company(osv.osv):
return {}
def _on_change_intervall(self, cr, uid, id, interval) :
def on_change_intervall(self, cr, uid, id, interval) :
###Function that will update the cron
###freqeuence
self.pool.get('currency.rate.update').save_cron(

View File

@@ -8,8 +8,8 @@
<field name="arch" type="xml">
<notebook position="inside">
<page string="Currency auto update configuration">
<field name="auto_currency_up" on_change="_on_change_auto_currency_up(auto_currency_up)"/>
<field name="interval_type" on_change="_on_change_intervall(interval_type)"/>
<field name="auto_currency_up" on_change="on_change_auto_currency_up(auto_currency_up)"/>
<field name="interval_type" on_change="on_change_intervall(interval_type)"/>
<field name="multi_company_currency_enable"/>
<separator string="Currency updates services" colspan="4"/>
<field name="services_to_use" colspan="4" nolabel="1"/>