From d9ef089939170cadc1adda15b82c9044d11504f7 Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Tue, 18 Mar 2014 11:10:34 +0100 Subject: [PATCH] [FIX] fix a typo and uses the correct type in the invoice_count functional field of res_partner (addon account) bzr revid: ged@openerp.com-20140318101034-0w72fjd2sxgy963q --- addons/account/partner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/partner.py b/addons/account/partner.py index 0089ac2a66d..04926a12785 100644 --- a/addons/account/partner.py +++ b/addons/account/partner.py @@ -169,7 +169,7 @@ class res_partner(osv.osv): for partner in self.browse(cr, uid, ids, context): res[partner.id] = { 'invoice_count': len(partner.invoice_ids), - 'journam_item_count': len(partner.journal_item_ids), + 'journal_item_count': len(partner.journal_item_ids), } except: pass @@ -203,7 +203,7 @@ class res_partner(osv.osv): fnct_search=_credit_search, string='Total Receivable', multi='dc', help="Total amount this customer owes you."), 'debit': fields.function(_credit_debit_get, fnct_search=_debit_search, string='Total Payable', multi='dc', help="Total amount you have to pay to this supplier."), 'debit_limit': fields.float('Payable Limit'), - 'invoice_count': fields.function(_invoice_journal_item_count, string="Invoices", type='html', multi="invoice_journal"), + 'invoice_count': fields.function(_invoice_journal_item_count, string="Invoices", type='integer', multi="invoice_journal"), 'journal_items_ids': fields.one2many('account.move.line', 'partner_id', 'Journal Items'), 'journal_item_count': fields.function(_invoice_journal_item_count, string="Journal Items", type="integer", multi="invoice_journal"), 'property_account_payable': fields.property(