~openerp-chinese-team/openerp-china/openerp-china

« back to all changes in this revision

Viewing changes to oecn_account_print/report/oecn_account_print_report.py

  • Committer: JoshuaJan
  • Date: 2012-08-22 09:24:05 UTC
  • Revision ID: popkar77@gmail.com-20120822092405-349syo9uytkkzeit
修改报表样式

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
        '''
200
200
        result = []
201
201
        account_obj = self.pool.get('account.account')
 
202
        journal_obj = self.pool.get('account.journal')
202
203
        account_move_line_obj = self.pool.get('account.move.line')
203
204
        account_child_ids = account_obj.search(self.cr, self.uid, [('parent_id', 'child_of', id)])
204
205
        periods = self._get_periods()
207
208
            days = []
208
209
            all_days = []
209
210
            period_balance = 0
210
 
            account_move_line_ids = account_move_line_obj.search(self.cr, self.uid, [('account_id','in',account_child_ids),('date','<=',period.date_stop),('date','>=',period.date_start),('state','=','valid')],order='date')
 
211
            journal_ids = journal_obj.search(self.cr, self.uid, [('type','!=','situation')])
 
212
            account_move_line_ids = account_move_line_obj.search(self.cr, self.uid, [('account_id','in',account_child_ids),('date','<=',period.date_stop),('date','>=',period.date_start),('state','=','valid'),('journal_id','in',journal_ids)],order='date')
211
213
            if self.partner:
212
214
                account_move_line_ids = account_move_line_obj.search(self.cr, self.uid, [('id','in',account_move_line_ids),('partner_id','=',self.partner[0])])
213
215
            if self.product: