[FIX] account_invoice: fixed message added to the wrong document.

bzr revid: tde@openerp.com-20120601121547-z5nm17l6r3jhpzol
This commit is contained in:
Thibault Delavallée
2012-06-01 14:15:47 +02:00
parent cd19f68eb9
commit 5e64e5bf56
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1275,7 +1275,7 @@ class account_invoice(osv.osv):
# TODO: use currency's formatting function
msg = _("Invoice '%s' is paid partially: %s%s of %s%s (%s%s remaining)") % \
(name, pay_amount, code, invoice.amount_total, code, total, code)
self.message_append_note(cr, uid, ids, body=msg, context=context)
self.message_append_note(cr, uid, [inv_id], body=msg, context=context)
self.pool.get('account.move.line').reconcile_partial(cr, uid, line_ids, 'manual', context)
# Update the stored value (fields.function), so we write to trigger recompute
+1
View File
@@ -186,6 +186,7 @@ class crm_case_resource_type(osv.osv):
'section_id': fields.many2one('crm.case.section', 'Sales Team'),
}
def _links_get(self, cr, uid, context=None):
"""Gets links value for reference field"""
obj = self.pool.get('res.request.link')