~koi-accounting-modules-maintainer/koi-accounting-modules/7.0

« back to all changes in this revision

Viewing changes to koi_account_aeroo_report/wizard/wizard_query_bank_voucher_line.py

  • Committer: Andhitia Rama
  • Date: 2015-06-26 08:32:51 UTC
  • mfrom: (235.1.1 koi_account)
  • Revision ID: andhitia.r@gmail.com-20150626083251-c73stqxesyuj8ccx
Merge dgn trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
 
33
33
    def button_print_ods(self, cr, uid, ids, data, context=None):
 
34
    
 
35
        if context is None:
 
36
            context = {}
34
37
 
35
38
        if not self._check_date(cr, uid, ids):
36
39
            raise osv.except_osv(_('Warning!'),_('Invalid start or end date'))
37
40
            return False
38
41
 
39
 
 
40
 
        wizard = self.browse(cr, uid, ids)[0]
41
 
 
42
 
        datas = {}
 
42
        datas = {'ids': context.get('active_ids', [])}
 
43
        datas['model'] = 'account.account'
43
44
        datas['form'] = self.read(cr, uid, ids)[0]
 
45
 
44
46
 
45
 
        
46
47
        return  { 
47
48
                'type' : 'ir.actions.report.xml',
48
49
                'report_name' : 'report_bank_voucher_line_ods',