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

« back to all changes in this revision

Viewing changes to oecn_account_print/report/rml_parse.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:
220
220
        return nums
221
221
 
222
222
    def _get_account_name(self,id):
223
 
        account_name = self.pool.get('account.account').browse(self.cr, self.uid, [id],{})[0]
 
223
        account_name = self.pool.get('account.account').name_get(self.cr, self.uid, [id],{})[0]
224
224
        #Account move print use Account here:
225
 
        return account_name.code + '\n' + account_name.name
 
225
        return account_name[1]
226
226
 
227
227
    def _get_account_partner(self, id,name):
228
228
        value = 'account.account,' + str(id)