[IMP] edi: cleanup comments, copyright years, etc.
bzr revid: odo@openerp.com-20111108120754-vzhmszqy02a4ovkt
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<data>
|
||||
<!-- EDI Export + Send email Action -->
|
||||
<record id="ir_actions_server_edi_invoice" model="ir.actions.server">
|
||||
<field name="code"><![CDATA[if not object.partner_id.opt_out: object.edi_export_and_email(template_ext_id='account.email_template_edi_invoice', context=context)]]></field>
|
||||
<field name="code">if not object.partner_id.opt_out: object.edi_export_and_email(template_ext_id='account.email_template_edi_invoice', context=context)</field>
|
||||
<field eval="6" name="sequence"/>
|
||||
<field name="state">code</field>
|
||||
<field name="type">ir.actions.server</field>
|
||||
|
||||
@@ -45,8 +45,6 @@ technical OpenERP documentation at http://doc.openerp.com
|
||||
],
|
||||
'js': [
|
||||
'static/src/js/edi.js',
|
||||
#'static/src/js/edi_invoice.js',
|
||||
#'static/src/js/edi_sale_purchase_order.js',
|
||||
],
|
||||
"css": [
|
||||
"static/src/css/edi.css"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
return currency_id
|
||||
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<data>
|
||||
<!--Export edi document -->
|
||||
<record id="ir_actions_server_edi_purchase" model="ir.actions.server">
|
||||
<field name="code"><![CDATA[if not object.partner_id.opt_out: object.edi_export_and_email(template_ext_id='purchase.email_template_edi_purchase', context=context)]]></field>
|
||||
<field name="code">if not object.partner_id.opt_out: object.edi_export_and_email(template_ext_id='purchase.email_template_edi_purchase', context=context)</field>
|
||||
<field name="state">code</field>
|
||||
<field name="type">ir.actions.server</field>
|
||||
<field name="model_id" ref="purchase.model_purchase_order"/>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<data>
|
||||
<!-- EDI Export + Send email Action -->
|
||||
<record id="ir_actions_server_edi_sale" model="ir.actions.server">
|
||||
<field name="code"><![CDATA[if not object.partner_id.opt_out: object.edi_export_and_email(template_ext_id='sale.email_template_edi_sale', context=context)]]></field>
|
||||
<field name="code">if not object.partner_id.opt_out: object.edi_export_and_email(template_ext_id='sale.email_template_edi_sale', context=context)</field>
|
||||
<field name="state">code</field>
|
||||
<field name="type">ir.actions.server</field>
|
||||
<field name="model_id" ref="sale.model_sale_order"/>
|
||||
|
||||
Reference in New Issue
Block a user