mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] currency_rate_update - change on_changes in non private methods
(lp:c2c-addons/6.1 rev 18)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user