[REPORT] ~pos.receipt: client name and mobile
[burette/bikecoop_l10n_fr.git] / wizard / pos_receipt.py
1 # -*- coding: utf-8 -*-
2
3 from openerp.osv import orm
4
5
6 class print_report(orm.Model):
7 _inherit = 'pos.receipt'
8
9 def print_report(self, cr, uid, ids, context=None):
10 """
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
17 """
18 if context is None:
19 context = {}
20 datas = {'ids': context.get('active_ids', [])}
21 return {
22 'type': 'ir.actions.report.xml',
23 'report_name': 'bikecoop_l10n_fr.receipt',
24 'datas': datas,
25 }