From 7538b0a2802c9e6a3c84c4bc2f6be3428c121a3a Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Wed, 2 Jun 2010 16:28:32 +0530 Subject: [PATCH 1/4] Task-ID 847 :sends an email to the scrum master and/or the product owner with the detail of the scrum daily meeting and add the missing demo data bzr revid: sbh@tinyerp.com-20100602105832-u3stwm4astvzh23o --- addons/scrum/scrum.py | 40 +++++++++++++++++++++ addons/scrum/scrum_demo.xml | 72 +++++++++++++++++++++++++++++++++++-- addons/scrum/scrum_view.xml | 3 ++ 3 files changed, 113 insertions(+), 2 deletions(-) diff --git a/addons/scrum/scrum.py b/addons/scrum/scrum.py index bccc991565f..9339b0cd622 100644 --- a/addons/scrum/scrum.py +++ b/addons/scrum/scrum.py @@ -24,6 +24,8 @@ import netsvc from osv import fields, osv, orm from mx import DateTime import re +import tools +from tools.translate import _ class scrum_project(osv.osv): _inherit = 'project.project' @@ -287,5 +289,43 @@ class scrum_meeting(osv.osv): _defaults = { 'date' : time.strftime('%Y-%m-%d'), } + + def button_send_to_master(self, cr, uid, ids, context={}): + meeting_id=self.browse(cr,uid,ids)[0] + user = self.pool.get('res.users').browse(cr, uid, uid, context=context) + email=meeting_id and meeting_id.sprint_id.scrum_master_id.user_email + body = "" + if email: + self.email_send(cr,uid,ids,email) + else: + raise osv.except_osv(_('Warining !'), _('%s User no Email Address!' % meeting_id.sprint_id.scrum_master_id.name)) + return True + + + + def button_send_product_owner(self, cr, uid, ids, context={}): + meeting_id=self.browse(cr,uid,ids)[0] + email=meeting_id.sprint_id.product_owner_id.user_email + if email: + self.email_send(cr,uid,ids,email) + else: + raise osv.except_osv(_('Warining !'), _('%s User no Email Address!' % meeting_id.sprint_id.scrum_master_id.name)) + + return True + + def email_send(self, cr, uid, ids,email, context={}): + email_from=tools.config.get('email_from', False) + meeting_id=self.browse(cr,uid,ids)[0] + user = self.pool.get('res.users').browse(cr, uid, uid, context=context) + user_email= email_from or user.address_id.email or email_from + body="" + + body+="Hello " + meeting_id.sprint_id.scrum_master_id.name+",\n" +" \n Daily Meeting Details of date %s for the Sprint %s " % (meeting_id.date, meeting_id.sprint_id.name) + body += '\n\nDate :%s' % (meeting_id.date) + '\n\nTasks since yesterday \n\n:%s' % (meeting_id.question_yesterday) + '\n\n Task for Today :\n\n%s' % (meeting_id.question_today )+ '\n\n Blocks encountered \n :%s' % (meeting_id.question_blocks or 'No Blocks') + body+="'\n\nThanks\n"+ user.name + sub_name=meeting_id.name or 'Scrum Meeting of %s '%meeting_id.date + tools.email_send(user_email , [email],sub_name, body, reply_to=None,openobject_id = str(meeting_id.id)) + return True + scrum_meeting() diff --git a/addons/scrum/scrum_demo.xml b/addons/scrum/scrum_demo.xml index 9f41f17a86b..34f3991894b 100644 --- a/addons/scrum/scrum_demo.xml +++ b/addons/scrum/scrum_demo.xml @@ -32,6 +32,7 @@ 6.0 This new system will enable you to migrate automatically from an old version of Open ERP to a new one. This system will migrate not only the Open ERP system but also the customers particularities. This happens without any kind of script or programming. It has been possible to carry out such a system thanks to the descriptive approach of Open ERP components. + done @@ -40,6 +41,7 @@ 111.0 The accounting module of Open ERP (financial accounting and management accounting) is being reshaped. New functionnalities will be added: intangible assets, a new way of presenting ledgers and bookings, new stock valuation calculation, and lots of predefined reports. + open @@ -48,18 +50,21 @@ 4.0 We have to develop a plug-in system which will enable to install/remove modules. The basic version of Open ERP will include only the required minimum, and you will select the modules thanks to the plug-in manager. This allows you to limit your system to your real needs: quality management, localisations, project and service management, marketing campaigns, and so on... + open Review all terms 8.0 + done Bugfixes 6.0 + open @@ -74,6 +79,7 @@ 4.0 Restrucutre the Open ERP menu to be more like others ERP. + open @@ -91,6 +97,8 @@ Review all English Terms + done + @@ -98,6 +106,8 @@ Review all french terms + done + @@ -105,6 +115,8 @@ Analytic Accounting features + done + @@ -112,6 +124,7 @@ Test and improve automatic migration system + open @@ -119,6 +132,7 @@ General accounting features + open @@ -133,7 +147,9 @@ Cash book, general ledger, accounts list, aged trial balance - Accounting Report General + Accounting Report General + open + @@ -148,6 +164,7 @@ Accounting Report Analytic + open @@ -155,6 +172,8 @@ Bugfix - memory leak + done + @@ -162,6 +181,8 @@ Bugfix - Translations + open + @@ -169,6 +190,7 @@ Finish the automated plugin system + pending @@ -183,6 +205,7 @@ Test 3.2.0 before releasing + open @@ -191,8 +214,53 @@ default values, onchange, required, add on top or bottom and shortcuts (Ctrl S, Ctrl X, ...) Editable trees + open - + + +@MRA: review work of team member check backlogs account reconcile process +@PSI: Account Modules YAML case => running + + +@MRA: review and check work of team +@PSI: Account Modules YAML case == continue + + 2010-06-02 + + + + Learn how to migration + + + + 2010-06-02 14:09:49 + + + + Create a script for migration and testing + + + + 2010-06-02 14:13:13 + + + + + Create a script for migration and testing + + + + 2010-06-02 14:13:13 + + + + Add on top or bottom and shortcuts + + + + 2010-06-02 14:13:13 + + diff --git a/addons/scrum/scrum_view.xml b/addons/scrum/scrum_view.xml index dc015c3f38a..a33774e44f4 100644 --- a/addons/scrum/scrum_view.xml +++ b/addons/scrum/scrum_view.xml @@ -328,6 +328,9 @@ + +