Merge lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio into lp:addons-vauxoo/7.0

Proposed by Julio Serna-http://www.vauxoo.com
Status: Merged
Merged at revision: 999
Proposed branch: lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio
Merge into: lp:addons-vauxoo/7.0
Diff against target: 19 lines (+4/-3)
1 file modified
project_conf/model/project.py (+4/-3)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio
Reviewer Review Type Date Requested Status
Moisés López - http://www.vauxoo.com Approve
Julio Serna-http://www.vauxoo.com Pending
Review via email: mp+215062@code.launchpad.net

Description of the change

get name of stage with read without sent context for dont use lang of user

To post a comment you must log in.
Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) :
review: Approve
Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

Julio,
La prueba que hiciste, cuando decia No Receive, pero tambien decia, Si My
Emails
En que resultó?
Pusiste el resultado de cada pruena en algun lado?
El abr 9, 2014 6:07 PM, "Julio Serna-http://www.vauxoo.com" <
<email address hidden>> escribió:

> Julio Serna-http://www.vauxoo.com has proposed merging
> lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio into
> lp:addons-vauxoo/7.0.
>
> Requested reviews:
> Moisés López - http://www.vauxoo.com (moylop260)
>
> For more details, see:
>
> https://code.launchpad.net/~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio/+merge/215062
>
> get name of stage with read without sent context for dont use lang of user
> --
>
> https://code.launchpad.net/~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio/+merge/215062
> You are requested to review the proposed merge of
> lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio into
> lp:addons-vauxoo/7.0.
>
> === modified file 'project_conf/model/project.py'
> --- project_conf/model/project.py 2013-09-12 20:26:13 +0000
> +++ project_conf/model/project.py 2014-04-09 23:06:52 +0000
> @@ -37,11 +37,12 @@
> Send mail automatically to change task to Backlog and to Testing
> Leader.
> '''
> context = context or {}
> -
> + #Dont send context to dont get language of user in read method
> if ids.get('stage_id'):
> - if ids['stage_id'][1] == 'Backlog':
> + type = self.pool.get('project.task.type').read(cr, uid,
> ids['stage_id'][0], ['name'])
> + if type.get('name', False) == 'Backlog':
>
> self.send_mail_task(cr,uid,ids,'template_send_email_task_new',context)
> - elif ids['stage_id'][1] == 'Testing Leader':
> + elif type.get('name', False) == 'Testing Leader':
>
> self.send_mail_task(cr,uid,ids,'template_send_email_task_end',context)
>
> def send_mail_task(self,cr,uid,ids,template,context=None):
>
>
>

Revision history for this message
Julio Serna-http://www.vauxoo.com (hearthebreaker) wrote :

Moy,
EL resultado de las pruebas te las puse en la descripción de la tarea.

2014-04-10 9:21 GMT-05:00 Moisés López - http://www.vauxoo.com <
<email address hidden>>:

> Julio,
> La prueba que hiciste, cuando decia No Receive, pero tambien decia, Si My
> Emails
> En que resultó?
> Pusiste el resultado de cada pruena en algun lado?
> El abr 9, 2014 6:07 PM, "Julio Serna-http://www.vauxoo.com" <
> <email address hidden>> escribió:
>
> > Julio Serna-http://www.vauxoo.com has proposed merging
> > lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio into
> > lp:addons-vauxoo/7.0.
> >
> > Requested reviews:
> > Moisés López - http://www.vauxoo.com (moylop260)
> >
> > For more details, see:
> >
> >
> https://code.launchpad.net/~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio/+merge/215062
> >
> > get name of stage with read without sent context for dont use lang of
> user
> > --
> >
> >
> https://code.launchpad.net/~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio/+merge/215062
> > You are requested to review the proposed merge of
> > lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio into
> > lp:addons-vauxoo/7.0.
> >
> > === modified file 'project_conf/model/project.py'
> > --- project_conf/model/project.py 2013-09-12 20:26:13 +0000
> > +++ project_conf/model/project.py 2014-04-09 23:06:52 +0000
> > @@ -37,11 +37,12 @@
> > Send mail automatically to change task to Backlog and to Testing
> > Leader.
> > '''
> > context = context or {}
> > -
> > + #Dont send context to dont get language of user in read method
> > if ids.get('stage_id'):
> > - if ids['stage_id'][1] == 'Backlog':
> > + type = self.pool.get('project.task.type').read(cr, uid,
> > ids['stage_id'][0], ['name'])
> > + if type.get('name', False) == 'Backlog':
> >
> > self.send_mail_task(cr,uid,ids,'template_send_email_task_new',context)
> > - elif ids['stage_id'][1] == 'Testing Leader':
> > + elif type.get('name', False) == 'Testing Leader':
> >
> > self.send_mail_task(cr,uid,ids,'template_send_email_task_end',context)
> >
> > def send_mail_task(self,cr,uid,ids,template,context=None):
> >
> >
> >
>
> --
>
> https://code.launchpad.net/~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio/+merge/215062
> You proposed
> lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio for
> merging.
>

--
Julio Serna
Vauxoo
http://www.vauxoo.com

Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

Enterado gracias
El abr 10, 2014 10:09 AM, "Julio Serna-http://www.vauxoo.com" <
<email address hidden>> escribió:

> Moy,
> EL resultado de las pruebas te las puse en la descripción de la tarea.
>
>
> 2014-04-10 9:21 GMT-05:00 Moisés López - http://www.vauxoo.com <
> <email address hidden>>:
>
> > Julio,
> > La prueba que hiciste, cuando decia No Receive, pero tambien decia, Si My
> > Emails
> > En que resultó?
> > Pusiste el resultado de cada pruena en algun lado?
> > El abr 9, 2014 6:07 PM, "Julio Serna-http://www.vauxoo.com" <
> > <email address hidden>> escribió:
> >
> > > Julio Serna-http://www.vauxoo.com has proposed merging
> > > lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio into
> > > lp:addons-vauxoo/7.0.
> > >
> > > Requested reviews:
> > > Moisés López - http://www.vauxoo.com (moylop260)
> > >
> > > For more details, see:
> > >
> > >
> >
> https://code.launchpad.net/~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio/+merge/215062
> > >
> > > get name of stage with read without sent context for dont use lang of
> > user
> > > --
> > >
> > >
> >
> https://code.launchpad.net/~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio/+merge/215062
> > > You are requested to review the proposed merge of
> > > lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio into
> > > lp:addons-vauxoo/7.0.
> > >
> > > === modified file 'project_conf/model/project.py'
> > > --- project_conf/model/project.py 2013-09-12 20:26:13 +0000
> > > +++ project_conf/model/project.py 2014-04-09 23:06:52 +0000
> > > @@ -37,11 +37,12 @@
> > > Send mail automatically to change task to Backlog and to
> Testing
> > > Leader.
> > > '''
> > > context = context or {}
> > > -
> > > + #Dont send context to dont get language of user in read method
> > > if ids.get('stage_id'):
> > > - if ids['stage_id'][1] == 'Backlog':
> > > + type = self.pool.get('project.task.type').read(cr, uid,
> > > ids['stage_id'][0], ['name'])
> > > + if type.get('name', False) == 'Backlog':
> > >
> > > self.send_mail_task(cr,uid,ids,'template_send_email_task_new',context)
> > > - elif ids['stage_id'][1] == 'Testing Leader':
> > > + elif type.get('name', False) == 'Testing Leader':
> > >
> > > self.send_mail_task(cr,uid,ids,'template_send_email_task_end',context)
> > >
> > > def send_mail_task(self,cr,uid,ids,template,context=None):
> > >
> > >
> > >
> >
> > --
> >
> >
> https://code.launchpad.net/~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio/+merge/215062
> > You proposed
> > lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio for
> > merging.
> >
>
>
>
> --
> Julio Serna
> Vauxoo
> http://www.vauxoo.com
>
>
> https://code.launchpad.net/~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio/+merge/215062
> You are reviewing the proposed merge of
> lp:~vauxoo/addons-vauxoo/7.0-addons-vauxoo-project_conf-dev-julio into
> lp:addons-vauxoo/7.0.
>

Revision history for this message
Julio Serna-http://www.vauxoo.com (hearthebreaker) wrote :

LinkedIn
------------

Me gustaría añadirte a mi red profesional en LinkedIn.

-julio

julio serna
desarrollador en Vauxoo
León y alrededores, México

Confirma que conoces a julio serna:
https://www.linkedin.com/e/-5pfvio-hwwns21b-20/isd/5888059067582132224/dDIpaL9R/?hs=false&tok=2WagR3X4WQ0Ck1

--
Estás recibiendo invitaciones a conectar. Haz clic para darte de baja:
http://www.linkedin.com/e/-5pfvio-hwwns21b-20/uuUzNfrkrXtdgadONNFdw6tksuXrlNdulZ8udeBoJHp/goo/mp%2B215062%40code%2Elaunchpad%2Enet/20061/I7341751446_1/?hs=false&tok=2d97CwczeQ0Ck1

(c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, EE.UU.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'project_conf/model/project.py'
2--- project_conf/model/project.py 2013-09-12 20:26:13 +0000
3+++ project_conf/model/project.py 2014-04-09 23:06:52 +0000
4@@ -37,11 +37,12 @@
5 Send mail automatically to change task to Backlog and to Testing Leader.
6 '''
7 context = context or {}
8-
9+ #Dont send context to dont get language of user in read method
10 if ids.get('stage_id'):
11- if ids['stage_id'][1] == 'Backlog':
12+ type = self.pool.get('project.task.type').read(cr, uid, ids['stage_id'][0], ['name'])
13+ if type.get('name', False) == 'Backlog':
14 self.send_mail_task(cr,uid,ids,'template_send_email_task_new',context)
15- elif ids['stage_id'][1] == 'Testing Leader':
16+ elif type.get('name', False) == 'Testing Leader':
17 self.send_mail_task(cr,uid,ids,'template_send_email_task_end',context)
18
19 def send_mail_task(self,cr,uid,ids,template,context=None):