summaryrefslogtreecommitdiff
path: root/addons/edi/models
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2011-11-08 13:07:54 +0100
committerOlivier Dony <odo@openerp.com>2011-11-08 13:07:54 +0100
commitdc844d92b6652206bfdf60ca20006ae10edb60f7 (patch)
tree3a8bdb79b343ac05083c52bb130f7966ee10856c /addons/edi/models
parenta09b95aebbbb5f2b572e766c151a27f9cc3fa354 (diff)
[IMP] edi: cleanup comments, copyright years, etc.
bzr revid: odo@openerp.com-20111108120754-vzhmszqy02a4ovkt
Diffstat (limited to 'addons/edi/models')
-rw-r--r--addons/edi/models/res_company.py4
-rw-r--r--addons/edi/models/res_currency.py44
-rw-r--r--addons/edi/models/res_partner.py4
3 files changed, 5 insertions, 47 deletions
diff --git a/addons/edi/models/res_company.py b/addons/edi/models/res_company.py
index 2cf863e6d3d..665dfb9487d 100644
--- a/addons/edi/models/res_company.py
+++ b/addons/edi/models/res_company.py
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
##############################################################################
#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2011 Tiny SPRL (<http://tiny.be>).
+# OpenERP, Open Source Business Applications
+# Copyright (c) 2011 OpenERP S.A. <http://openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
diff --git a/addons/edi/models/res_currency.py b/addons/edi/models/res_currency.py
index 46f250ce347..d057f4e5bbc 100644
--- a/addons/edi/models/res_currency.py
+++ b/addons/edi/models/res_currency.py
@@ -61,46 +61,4 @@ class res_currency(osv.osv, EDIMixin):
if rate:
self.pool.get('res.currency.rate').create(cr, SUPERUSER_ID, {'currency_id': currency_id,
'rate': rate}, context=context)
- return currency_id
-
-
-
-
-#class res_currency(osv.osv):
-# """Helper subclass for res.currency providing util methods for working with
-# currencies in the context of EDI import/export. The res.currency object
-# itself is not EDI-exportable by itself"""
-# _inherit = "res.currency"
-#
-#
-#
-#
-# def edi_export_currency(self, cr, uid, edi_record, currency, context=None):
-# """Returns a dict representation of the given currency, suitable for
-# inclusion in an EDI document.
-#
-# :param EDIMixin edi_record: record for which the currency is being exported
-# :param browse_record currency: currency record to export
-# :return: dict containing the address representation for the currency record,
-# similar to a normal EDI Many2One record, with some extra data.
-# """
-# result = edi_record.edi_m2o(cr, uid, currency_id, context=context)
-# currency = self.pool.get('res.partner').browse(currency_id)
-# result.update(symbol=currency.symbol,
-# rate=currency.rate)
-# return result
-#
-# def edi_import_currency(self, cr, uid, edi_record, currency, context=None):
-# """Retrieve and possibly create a currency EDI specification``[external_id,value]`` for the
-# given model, returning the corresponding database ID:
-#
-# :param EDIMixin edi_record: record for which the currency is being exported
-# :param browse_record currency: currency record to export
-# :return: dict containing the address representation for the currency record,
-# similar to a normal EDI Many2One record, with some extra data.
-# """
-# result = edi_record.edi_m2o(cr, uid, currency_id, context=context)
-# currency = self.pool.get('res.partner').browse(currency_id)
-# result.update(symbol=currency.symbol,
-# rate=currency.rate)
-# return result \ No newline at end of file
+ return currency_id \ No newline at end of file
diff --git a/addons/edi/models/res_partner.py b/addons/edi/models/res_partner.py
index ed82272ea2e..18ec01eb765 100644
--- a/addons/edi/models/res_partner.py
+++ b/addons/edi/models/res_partner.py
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
##############################################################################
#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
+# OpenERP, Open Source Business Applications
+# Copyright (c) 2011 OpenERP S.A. <http://openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as