Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-state_sync_with_kanban-hr_applicant-mma
into lp:~openerp-dev/openobject-addons/trunk-state_sync_with_kanban.
Requested reviews:
OpenERP R&D Team (openerp-dev)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-state_sync_with_kanban-hr_applicant-mma/+merge/103622
Hello Sir ,
I have fix the issue of applicant, set a inbox filter as default in search
and set read message state when reply from object
Thanks.
mma
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-state_sync_with_kanban-hr_applicant-mma/+merge/103622
Your team OpenERP R&D Team is requested to review the proposed merge of
lp:~openerp-dev/openobject-addons/trunk-state_sync_with_kanban-hr_applicant-mma
into lp:~openerp-dev/openobject-addons/trunk-state_sync_with_kanban.
=== modified file 'hr_recruitment/hr_recruitment.py'
--- hr_recruitment/hr_recruitment.py 2012-04-19 12:47:15 +0000
+++ hr_recruitment/hr_recruitment.py 2012-04-26 07:35:22 +0000
@@ -156,7 +156,7 @@
if stage_ids:
return self.write(cr, uid, [applicant_id], {'stage_id': stage_ids[0]}, context=context)
else:
- return cr.execute("""UPDATE hr_applicant SET state=%s WHERE id=%s""", (field_value, hr_applicant_id))
+ return cr.execute("""UPDATE hr_applicant SET state=%s WHERE id=%s""", (field_value, applicant_id))
_columns = {
=== modified file 'mail/mail_message.py'
--- mail/mail_message.py 2012-04-20 10:44:06 +0000
+++ mail/mail_message.py 2012-04-26 07:35:22 +0000
@@ -587,8 +587,11 @@
res = ir_mail_server.send_email(cr, uid, msg,
mail_server_id=message.mail_server_id.id,
context=context)
+
+ mail_ids = self.search(cr, uid, [('res_id', '=', message.res_id),('model', '=', message.model),('state', '=', 'received')])
if res:
message.write({'state':'sent', 'message_id': res, 'message_state': 'read'})
+ self.write(cr, uid, mail_ids, {'message_state':'read'}, context=context)
else:
message.write({'state':'exception'})
message.refresh()
=== modified file 'mail/mail_message_view.xml'
--- mail/mail_message_view.xml 2012-04-20 10:44:06 +0000
+++ mail/mail_message_view.xml 2012-04-26 07:35:22 +0000
@@ -215,7 +215,7 @@
<field name="res_model">mail.message</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
- <field name="context">{'search_default_type_email': 1}</field>
+ <field name="context">{'search_default_type_email': 1, 'search_default_inbox': 1}</field>
<field name="search_view_id" ref="view_email_message_search"/>
</record>
=== modified file 'project/project.py'
--- project/project.py 2012-04-19 11:52:19 +0000
+++ project/project.py 2012-04-26 07:35:22 +0000
@@ -752,6 +752,7 @@
'priority': '2',
'progress': 0,
'sequence': 10,
+ 'type_id': 1,
'active': True,
'user_id': lambda obj, cr, uid, context: uid,
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'project.task', context=c)
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp