From 3b925793a356adc562725a79a48ad5959cfb846c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulius=20Sladkevi=C4=8Dius?= Date: Wed, 18 Jun 2014 18:56:49 +0300 Subject: [PATCH] reconcile_partial() return reconcile record id It should be similar like it's done with reconcile(). That would help a lot when needs to make automatic partial reconciliations. --- addons/account/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 3d8d8302f32..97489b78a64 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -823,7 +823,7 @@ class account_move_line(osv.osv): 'line_partial_ids': map(lambda x: (4,x,False), merges+unmerge) }, context=context) move_rec_obj.reconcile_partial_check(cr, uid, [r_id] + merges_rec, context=context) - return True + return r_id def reconcile(self, cr, uid, ids, type='auto', writeoff_acc_id=False, writeoff_period_id=False, writeoff_journal_id=False, context=None): account_obj = self.pool.get('account.account')