From 6b3a7811d1560a01673c0faa104a67cccd564476 Mon Sep 17 00:00:00 2001 From: "Mayur Maheshwari (OpenERP)" Date: Mon, 30 Apr 2012 13:03:46 +0530 Subject: [PATCH 1/6] [IMP]mail,crm:added a message_state field in mail.thread object and related filter for that and fix a issue of hr_applicant bzr revid: mma@tinyerp.com-20120430073346-dig7dbbpc73ww20p --- addons/crm/crm_lead_menu.xml | 2 +- addons/crm/crm_lead_view.xml | 1 + addons/hr_recruitment/hr_recruitment.py | 2 +- addons/hr_recruitment/hr_recruitment_menu.xml | 2 +- addons/hr_recruitment/hr_recruitment_view.xml | 1 + addons/mail/mail_message.py | 6 ++---- addons/mail/mail_message_view.xml | 2 -- addons/mail/mail_thread.py | 3 +++ addons/project/project_view.xml | 3 ++- 9 files changed, 12 insertions(+), 10 deletions(-) diff --git a/addons/crm/crm_lead_menu.xml b/addons/crm/crm_lead_menu.xml index 3cd45fd5cd1..5fc8891edb4 100644 --- a/addons/crm/crm_lead_menu.xml +++ b/addons/crm/crm_lead_menu.xml @@ -9,7 +9,7 @@ ['|', ('type','=','lead'), ('type','=',False)] - {'default_type': 'lead', 'search_default_section_id': section_id, 'stage_type': 'lead'} + {'default_type': 'lead', 'search_default_section_id': section_id, 'stage_type': 'lead', 'search_default_inbox': 1} <img src="http://www.thaicrmsoftware.com/wp-content/uploads/2011/11/lead-conversion.jpg" align="right" style="padding: 6px" width="306" height="223"> <h2>Create your first OpenERP Lead </h2> diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 95577080c20..30c4fef7bf5 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -324,6 +324,7 @@ search + hr.applicant kanban,tree,form,graph,calendar - {'search_default_filter_inprogress':1,'search_default_filter_new':1,"search_default_department_id": department_id} + {'search_default_filter_inprogress':1, 'search_default_filter_new':1, "search_default_department_id": department_id, 'search_default_inbox': 1} From this menu you can track applicants in the recruitment process and manage all operations: meetings, interviews, phone calls, etc. If you setup the email gateway, applicants and their attached CV are created automatically when an email is sent to jobs@yourcompany.com. If you install the document management modules, all documents (CV and motivation letters) are indexed automatically, so that you can easily search through their content. diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml index 76b73e9aca3..08f20cd3722 100644 --- a/addons/hr_recruitment/hr_recruitment_view.xml +++ b/addons/hr_recruitment/hr_recruitment_view.xml @@ -179,6 +179,7 @@ search + - @@ -168,7 +167,6 @@ search - diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 8cd8ef415c3..fc8e475b199 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -72,6 +72,7 @@ class mail_thread(osv.osv): _columns = { 'message_ids_social': fields.function(_get_message_ids, method=True, type='one2many', obj='mail.message', string='Temp messages', _fields_id = 'res_id'), + 'message_state': fields.selection([('read', 'Read'),('unread', 'Unread')], 'Message State'), } #------------------------------------------------------ @@ -569,6 +570,7 @@ class mail_thread(osv.osv): data.update(custom_values) res_id = model_pool.create(cr, uid, data, context=context) self.message_append_dict(cr, uid, [res_id], msg_dict, context=context) + self.write(cr, uid, [res_id], {'message_state':'unread'}, context) return res_id def message_update(self, cr, uid, ids, msg_dict, vals={}, default_act=None, context=None): @@ -587,6 +589,7 @@ class mail_thread(osv.osv): to determine the model of the thread to update (instead of the current model). """ + self.write(cr, uid, ids, {'message_state':'unread'}, context=context) return self.message_append_dict(cr, uid, ids, msg_dict, context=context) def message_thread_followers(self, cr, uid, ids, context=None): diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index f86caeadef0..fe64e67a328 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -489,6 +489,7 @@ + @@ -529,7 +530,7 @@ kanban,tree,form,calendar,gantt,graph - {"search_default_project_id": project_id} + {"search_default_project_id": project_id, 'search_default_inbox': 1} A task represents a work that has to be done. Each user works in his own list of tasks where he can record his task work in hours. He can work and close the task itself or delegate it to another user. If you delegate a task to another user, you get a new task in pending state, which will be reopened when you have to review the work achieved. If you install the project_timesheet module, task work can be invoiced based on the project configuration. With the project_mrp module, sales orders can create tasks automatically when they are confirmed. From b8edef18546912987deac879cf98b2b442b0959a Mon Sep 17 00:00:00 2001 From: "Mayur Maheshwari (OpenERP)" Date: Tue, 1 May 2012 12:16:56 +0530 Subject: [PATCH 2/6] [IMP]project_issue:added filter in project.issue bzr revid: mma@tinyerp.com-20120501064656-1yyp5ikdl7lfkhuf --- addons/project_issue/project_issue_menu.xml | 2 +- addons/project_issue/project_issue_view.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/project_issue/project_issue_menu.xml b/addons/project_issue/project_issue_menu.xml index dd61992a555..79dedafc261 100644 --- a/addons/project_issue/project_issue_menu.xml +++ b/addons/project_issue/project_issue_menu.xml @@ -12,7 +12,7 @@ kanban,tree,calendar - {"search_default_user_id": uid, "search_default_draft": 1,"search_default_todo": 1,"search_default_project_id":project_id} + {"search_default_user_id": uid, "search_default_draft": 1,"search_default_todo": 1,"search_default_project_id":project_id, 'search_default_inbox': 1} Issues such as system bugs, customer complaints, and material breakdowns are collected here. You can define the stages assigned when solving the project issue (analysis, development, done). With the mailgateway module, issues can be integrated through an email address (example: support@mycompany.com) diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml index f01442f7ecf..d3d831f8162 100644 --- a/addons/project_issue/project_issue_view.xml +++ b/addons/project_issue/project_issue_view.xml @@ -157,6 +157,7 @@ + From e8e1e67b68f0bbaaeb2a15dee95a9494395645ec Mon Sep 17 00:00:00 2001 From: "Mayur Maheshwari (OpenERP)" Date: Wed, 2 May 2012 11:35:14 +0530 Subject: [PATCH 3/6] [IMP]project_issue: fix the issue of message_state bzr revid: mma@tinyerp.com-20120502060514-t1x8ed4tbicpnmc1 --- addons/project_issue/project_issue.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index 90697d4bb80..2b81306c6d2 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -443,6 +443,7 @@ class project_issue(crm.crm_case, osv.osv): vals.update(custom_values) res_id = self.create(cr, uid, vals, context) + self.write(cr, uid, [res_id], {'message_state':'unread'}, context) self.message_append_dict(cr, uid, [res_id], msg, context=context) self.convert_to_bug(cr, uid, [res_id], context=context) return res_id @@ -481,6 +482,7 @@ class project_issue(crm.crm_case, osv.osv): vals.update(vls) res = self.write(cr, uid, ids, vals) + self.write(cr, uid, ids, {'message_state':'unread'}, context) self.message_append_dict(cr, uid, ids, msg, context=context) return res From bae6dcbe57324f93c704d412f67e6af9e74807df Mon Sep 17 00:00:00 2001 From: "Mayur Maheshwari (OpenERP)" Date: Wed, 2 May 2012 17:01:35 +0530 Subject: [PATCH 4/6] [IMP]project: put a attrs on stage field when project and stage is not there bzr revid: mma@tinyerp.com-20120502113135-7wquldksmtmvxbx0 --- addons/project/project_view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index fe64e67a328..56e106c7928 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -299,7 +299,7 @@ - +