Merge lp:~vauxoo/addons-vauxoo/7.0-project_task_work_validate_ids_exists-dev-ernesto into lp:addons-vauxoo/7.0

Status: Merged
Merged at revision: 920
Proposed branch: lp:~vauxoo/addons-vauxoo/7.0-project_task_work_validate_ids_exists-dev-ernesto
Merge into: lp:addons-vauxoo/7.0
Diff against target: 33 lines (+6/-3)
1 file modified
project_task_work/model/project_task_work.py (+6/-3)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/7.0-project_task_work_validate_ids_exists-dev-ernesto
Reviewer Review Type Date Requested Status
hbto [Vauxoo] http://www.vauxoo.com Approve
Luis Ernesto García Medina - http://www.vauxoo.com Pending
Isaac López Zúñiga Pending
Review via email: mp+193846@code.launchpad.net

Description of the change

Se arregló el error que marcaba al eliminar una linea de una tarea existente e intentar guardar los cambios

propuesta de la tarea 4026 de agrinos

To post a comment you must log in.
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'project_task_work/model/project_task_work.py'
2--- project_task_work/model/project_task_work.py 2013-04-26 08:21:33 +0000
3+++ project_task_work/model/project_task_work.py 2013-11-04 20:36:20 +0000
4@@ -71,7 +71,8 @@
5 def _get_project(self, cr, uid, ids, fieldname, arg, context=None):
6 if context is None:
7 context = {}
8- res = {}
9+ res = {}.fromkeys(ids,None)
10+ ids = self.exists(cr, uid, ids, context=context)
11 for ptw_brw in self.browse(cr, uid, ids, context=context):
12
13 res[ptw_brw.id] = \
14@@ -88,7 +89,8 @@
15 def _get_issue(self, cr, uid, ids, fieldname, arg, context=None):
16 if context is None:
17 context = {}
18- res = {}
19+ res = {}.fromkeys(ids,None)
20+ ids = self.exists(cr, uid, ids, context=context)
21 pi_obj = self.pool.get('project.issue')
22 ptw_brws = self.browse(cr, uid, ids, context=context)
23 for ptw_brw in ptw_brws:
24@@ -103,7 +105,8 @@
25 def _get_partner(self, cr, uid, ids, fieldname, arg, context=None):
26 if context is None:
27 context = {}
28- res = {}
29+ res = {}.fromkeys(ids,None)
30+ ids = self.exists(cr, uid, ids, context=context)
31 for ptw_brw in self.browse(cr, uid, ids, context=context):
32
33 res[ptw_brw.id] = \