1 # -*- coding: utf-8 -*-
3 from openerp
.osv
import orm
6 class print_report(orm
.Model
):
7 _inherit
= 'pos.receipt'
9 def print_report(self
, cr
, uid
, ids
, context
=None):
11 To get the date and print the report
12 @param self: The object pointer.
13 @param cr: A database cursor
14 @param uid: ID of the user currently logged in
15 @param context: A standard dictionary
16 @return : retrun report
20 datas
= {'ids': context
.get('active_ids', [])}
22 'type': 'ir.actions.report.xml',
23 'report_name': 'bikecoop_l10n_fr.receipt',