--- /dev/null
+# -*- coding: utf-8 -*-
+
+from openerp.osv import orm
+
+
+class print_report(orm.Model):
+ _inherit = 'pos.receipt'
+
+ def print_report(self, cr, uid, ids, context=None):
+ """
+ To get the date and print the report
+ @param self: The object pointer.
+ @param cr: A database cursor
+ @param uid: ID of the user currently logged in
+ @param context: A standard dictionary
+ @return : retrun report
+ """
+ if context is None:
+ context = {}
+ datas = {'ids': context.get('active_ids', [])}
+ return {
+ 'type': 'ir.actions.report.xml',
+ 'report_name': 'bikecoop_l10n_fr.receipt',
+ 'datas': datas,
+ }