diff --git a/currency_rate_update/__init__.py b/currency_rate_update/__init__.py index 192c60647..f5d0d7942 100755 --- a/currency_rate_update/__init__.py +++ b/currency_rate_update/__init__.py @@ -30,4 +30,3 @@ import currency_rate_update import company -import wizard diff --git a/currency_rate_update/__openerp__.py b/currency_rate_update/__openerp__.py index 7ce9e464a..db4db3ae3 100755 --- a/currency_rate_update/__openerp__.py +++ b/currency_rate_update/__openerp__.py @@ -3,7 +3,7 @@ # Copyright (c) 2008 Camtocamp SA # @author JB Aubort, Nicolas Bessi, Joel Grand-Guillaume # European Central Bank and Polish National Bank invented by Grzegorz Grzelak -# $Id: $ +# Ported to OpenERP 7.0 by Lorenzo Battistini # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsability of assessing all potential @@ -29,7 +29,7 @@ ############################################################################## { "name" : "Currency Rate Update", - "version" : "0.6", + "version" : "0.7", "author" : "Camptocamp", "website" : "http://camptocamp.com", "category" : "Financial Management/Configuration", @@ -79,14 +79,16 @@ found in database. Thanks to main contributors: Grzegorz Grzelak, Alexis de Lattre """, - "depends" : ["base", - "account"], #Added to ensure account security groups are present - "init_xml" : ["security/security.xml"], - "update_xml" : [ - "currency_rate_update.xml", - "company_view.xml", - ], - "demo_xml" : [], + "depends" : [ + "base", + "account", #Added to ensure account security groups are present + ], + "data" : [ + "currency_rate_update.xml", + "company_view.xml", + "security/security.xml", + ], + "demo" : [], "active": False, - 'installable': False + 'installable': True } diff --git a/currency_rate_update/company.py b/currency_rate_update/company.py index 06b9db76f..6696aa57b 100644 --- a/currency_rate_update/company.py +++ b/currency_rate_update/company.py @@ -29,8 +29,9 @@ ############################################################################## import netsvc -from osv import fields, osv -class res_company(osv.osv): +from openerp.osv import fields, osv + +class res_company(osv.Model): """override company to add currency update""" def _multi_curr_enable(self, cr, uid, ids, field_name, arg, context={}): @@ -161,4 +162,5 @@ class res_company(osv.osv): ' not set currency is active on two company' ), } -res_company() + + diff --git a/currency_rate_update/company_view.xml b/currency_rate_update/company_view.xml index c7afffa96..1e9698da7 100755 --- a/currency_rate_update/company_view.xml +++ b/currency_rate_update/company_view.xml @@ -4,13 +4,14 @@ res.company.form.inherit res.company - form - - - + + + + +