From 2bc053eb4051e7a7c25f757735b4b1c1c76ff52e Mon Sep 17 00:00:00 2001 From: Olivier Laurent Date: Wed, 20 May 2009 13:22:31 +0200 Subject: [PATCH] pep8 bzr revid: olt@tinyerp.com-20090520112231-8g0vphnuvyyy5gv1 --- addons/report_intrastat/report_intrastat.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/addons/report_intrastat/report_intrastat.py b/addons/report_intrastat/report_intrastat.py index e9387c0571e..d941bebcc4d 100644 --- a/addons/report_intrastat/report_intrastat.py +++ b/addons/report_intrastat/report_intrastat.py @@ -33,8 +33,10 @@ class res_country(osv.osv): _defaults = { 'intrastat': lambda *a: False, } + res_country() + class report_intrastat_code(osv.osv): _name = "report.intrastat.code" _description = "Intrastat code" @@ -42,14 +44,17 @@ class report_intrastat_code(osv.osv): 'name': fields.char('Intrastat Code', size=16), 'description': fields.char('Description', size=64), } + report_intrastat_code() + class product_template(osv.osv): _name = "product.template" _inherit = "product.template" _columns = { 'intrastat_id': fields.many2one('report.intrastat.code', 'Intrastat code'), } + product_template() class report_intrastat(osv.osv): @@ -57,9 +62,9 @@ class report_intrastat(osv.osv): _description = "Intrastat report" _auto = False _columns = { - 'name': fields.many2one('account.period', 'Period', readonly=True,select=True), - 'supply_units':fields.float('Supply Units', readonly=True), - 'ref':fields.char('Origin',size=64, readonly=True), + 'name': fields.many2one('account.period', 'Period', readonly=True, select=True), + 'supply_units': fields.float('Supply Units', readonly=True), + 'ref': fields.char('Origin', size=64, readonly=True), 'code': fields.char('Country code', size="2", readonly=True), 'intrastat_id': fields.many2one('report.intrastat.code', 'Intrastat code', readonly=True), 'weight': fields.float('Weight', readonly=True), @@ -128,8 +133,6 @@ class report_intrastat(osv.osv): and inv_country.intrastat=true group by inv.period_id,intrastat.id,inv.type,pt.intrastat_id, inv_country.code,inv.number, inv.currency_id )""") + report_intrastat() - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: -