[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
This commit is contained in:
Gery Debongnie 2014-03-18 11:10:34 +01:00
parent 649198db8a
commit d9ef089939
1 changed files with 2 additions and 2 deletions

View File

@ -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(