From ddfa27794db72b40013f1b39ad6463887e62dd0a Mon Sep 17 00:00:00 2001 From: "psi(OpenERP)" <> Date: Fri, 16 Jul 2010 10:38:56 +0530 Subject: [PATCH 1/2] [FIX] scrum: Demo data bzr revid: mra@mra-laptop-20100716050856-yxmd77pubp1mr649 --- addons/project_scrum/project_scrum_demo.xml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/addons/project_scrum/project_scrum_demo.xml b/addons/project_scrum/project_scrum_demo.xml index a4fad8eb307..d162a396abe 100644 --- a/addons/project_scrum/project_scrum_demo.xml +++ b/addons/project_scrum/project_scrum_demo.xml @@ -247,16 +247,7 @@ Demo :Bugfix - memory leak - - - - Create a script for migration and testing - - - - - - + Add on top or bottom and shortcuts From e3606ed329a77235988b82c2185830160f907f86 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Fri, 16 Jul 2010 11:01:23 +0530 Subject: [PATCH 2/2] [FIX] account: Action number bzr revid: mra@mra-laptop-20100716053123-wpfqfc06sjo4qq5b --- addons/account/invoice.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index f3b62f0fd27..48a39a1bcfd 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -892,7 +892,7 @@ class account_invoice(osv.osv): self.write(cr, uid, [inv.id], {'move_id': move_id,'period_id':period_id, 'move_name':new_move_name}) self.pool.get('account.move').post(cr, uid, [move_id]) self._log_event(cr, uid, ids) - + return True def line_get_convert(self, cr, uid, x, part, date, context=None): @@ -925,11 +925,11 @@ class account_invoice(osv.osv): reference = obj_inv.reference if not number: tmp_context = { - 'fiscalyear_id': inv.period_id.fiscalyear_id.id + 'fiscalyear_id': obj_inv.period_id.fiscalyear_id.id } - if inv.journal_id.invoice_sequence_id: - sequence_id = inv.journal_id.invoice_sequence_id.id - number = self.pool.get('ir.sequence').get_id(cr, uid, + if obj_inv.journal_id.invoice_sequence_id: + sequence_id = obj_inv.journal_id.invoice_sequence_id.id + number = self.pool.get('ir.sequence').get_id(cr, uid, sequence_id, 'id', context=tmp_context)