[FIX]: Fixed buildbot warning.

bzr revid: atp@tinyerp.co.in-20101230053510-3emb189tm9i4t4ea
This commit is contained in:
atp (Open ERP) 2010-12-30 11:05:10 +05:30
parent acacf36ebb
commit 22bced5963
8 changed files with 5 additions and 12 deletions

View File

@ -21,7 +21,7 @@
#
##############################################################################
from osv import fields, osv
from osv import osv
class account_invoice_line(osv.osv):
_inherit = "account.invoice.line"

View File

@ -344,7 +344,6 @@ if __name__ == "__main__":
parser.error("incorrect number of arguments")
import sys
import StringIO
fname = sys.argv[1]
f = fname

View File

@ -52,7 +52,6 @@ class account_analytic_account(osv.osv):
account_to_invoice_map.setdefault(rec['account_id'], []).append(rec['invoice_id'])
for account in self.browse(cr, uid, ids, context=context):
invoiced = {}
invoice_ids = filter(None, list(set(account_to_invoice_map.get(account.id, []))))
for invoice in obj_invoice.browse(cr, uid, invoice_ids, context=context):
res.setdefault(account.id, 0.0)

View File

@ -213,11 +213,11 @@
<field name="ref_tax_code_id" ref="vat_code_input_S"/> -->
</record>
<!-- *-* revise the ΦΠΑ.. -->
<!-- revise the tax.. -->
<record id="ovat19" model="account.tax.template">
<field name="chart_template_id" ref="l10n_gr_chart_template"/>
<field name="name">Εκροές 19</field>
<field name="name">Outputs 19</field>
<field eval="0.19" name="amount"/>
<field name="type">percent</field>
<field name="type_tax_use">purchase</field>

View File

@ -25,7 +25,6 @@ import logging
import optparse
import sys
import xmlrpclib
import email
class rpc_proxy(object):
def __init__(self, uid, passwd, host='localhost', port=8069, path='object', dbname='openerp'):
@ -56,11 +55,10 @@ class email_parser(object):
# pass message as bytes because we don't know its encoding until we parse its headers
# and hence can't convert it to utf-8 for transport
res_id = self.rpc('email.server.tools', 'process_email', self.model, xmlrpclib.Binary(message), custom_values)
except Exception, e:
except Exception:
logger = logging.getLogger('mail-gateway')
logger.warning('Failed to process incoming email. Source of the failed mail is available at debug level.', exc_info=True)
logger.debug('Source of the mail that failed to parse:', message)
res_id = False
if __name__ == '__main__':
parser = optparse.OptionParser(usage='usage: %prog [options]', version='%prog v1.0')

View File

@ -23,8 +23,6 @@ from osv import fields, osv
from _common import rounding
import time
from tools import config
from tools.misc import ustr
from tools.translate import _
import decimal_precision as dp

View File

@ -41,7 +41,6 @@ class sale_order_1(report_sxw.rml_parse):
def sale_order_lines(self, sale_order):
result = []
sub_total = {}
info = []
order_lines = []
res = {}
obj_order_line = self.pool.get('sale.order.line')

View File

@ -19,7 +19,7 @@
#
##############################################################################
from osv import fields, osv
from osv import osv
class wiki_wiki_page_open(osv.osv_memory):
""" wizard Open Page """