From 2b26a5f2c811943a9af1e10c6ae809f213a9be83 Mon Sep 17 00:00:00 2001 From: Houzefa Abbasbhay Date: Mon, 16 Dec 2013 17:16:10 +0100 Subject: [PATCH] Declare the dependency on py3o.template - fix #3 --- __openerp__.py | 3 +++ py3o_report.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/__openerp__.py b/__openerp__.py index eb7eddd5..206e5709 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -15,6 +15,9 @@ The py3o.template package is required; install it with: 'depends': [ 'base' ], + 'external_dependencies': { + 'python': ['py3o.template'] + }, 'data': [ 'ir_report.xml', ], diff --git a/py3o_report.py b/py3o_report.py index 73391661..0ff89e1f 100644 --- a/py3o_report.py +++ b/py3o_report.py @@ -32,7 +32,7 @@ class py3o_report(report_sxw): [('code', '=', lang_code)], context=context)[0] return lang_obj.browse(cr, uid, lang, context=context) - + def format_date(self, date, values): ''' Return a date formatted according to the language extracted from the "values" argument (which should be the result of get_values). '''