Randhir Mayatra (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-mail_subtype-rma into lp:openobject-addons.
Requested reviews: Amit Patel (OpenERP) (apa-tiny) For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-mail_subtype-rma/+merge/135074 Hello sir, I have add the subtype in project. Thank you. -- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-mail_subtype-rma/+merge/135074 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-mail_subtype-rma.
=== modified file 'mail/data/mail_data.xml' --- mail/data/mail_data.xml 2012-11-02 15:24:30 +0000 +++ mail/data/mail_data.xml 2012-11-20 07:35:31 +0000 @@ -29,6 +29,7 @@ <record id="mt_comment" model="mail.message.subtype"> <field name="name">Discussions</field> + <field name="default" eval="False"/> </record> </data> </openerp> === modified file 'mail/static/src/xml/mail_followers.xml' --- mail/static/src/xml/mail_followers.xml 2012-10-29 13:09:37 +0000 +++ mail/static/src/xml/mail_followers.xml 2012-11-20 07:35:31 +0000 @@ -12,11 +12,12 @@ <span class="oe_unfollow">Unfollow</span> <span class="oe_following">Following</span> </button> + <t t-if="widget.comment"> + <h5 class="oe_comment"><t t-raw="widget.comment"/></h5> + </t> <div class="oe_subtype_list"></div> </div> - <t t-if="widget.comment"> - <h5 class="oe_comment"><t t-raw="widget.comment"/></h5> - </t> + <hr size="2"></hr> <div class='oe_follower_title_box'> <h4 class='oe_follower_title'>Followers</h4> <a href='#' class="oe_invite">Invite others</a> === modified file 'project/project.py' --- project/project.py 2012-11-15 12:38:51 +0000 +++ project/project.py 2012-11-20 07:35:31 +0000 @@ -1109,11 +1109,13 @@ def set_kanban_state_normal(self, cr, uid, ids, context=None): self.write(cr, uid, ids, {'kanban_state': 'normal'}, context=context) - return False + self.case_block_send_note(cr, uid, ids, context=context) + return True def set_kanban_state_done(self, cr, uid, ids, context=None): self.write(cr, uid, ids, {'kanban_state': 'done'}, context=context) - return False + self.case_open_send_note(cr, uid, ids, context=context) + return True def _store_history(self, cr, uid, ids, context=None): for task in self.browse(cr, uid, ids, context=context): @@ -1295,8 +1297,17 @@ context=context) def create_send_note(self, cr, uid, ids, context=None): - return self.message_post(cr, uid, ids, body=_("Task has been <b>created</b>."), context=context) - + return self.message_post(cr, uid, ids, body=_("Task has been <b>created</b>."), subtype="project.mt_task_new", context=context) + + def case_open_send_note(self, cr, uid, ids, context=None): + return self.message_post(cr, uid, ids, body=_("Task has been <b>started</b>."), subtype="project.mt_task_started", context=context) + + def case_close_send_note(self, cr, uid, ids, context=None): + return self.message_post(cr, uid, ids, body=_("Task has been <b>done</b>."), subtype="project.mt_task_closed", context=context) + + def case_block_send_note(self, cr, uid, ids, context=None): + return self.message_post(cr, uid, ids, body=_("Task has been <b>blocked</b>."), subtype="project.mt_task_blocked", context=context) + def case_draft_send_note(self, cr, uid, ids, context=None): return self.message_post(cr, uid, ids, body=_('Task has been set as <b>draft</b>.'), context=context) === modified file 'project/project_data.xml' --- project/project_data.xml 2012-11-15 15:09:45 +0000 +++ project/project_data.xml 2012-11-20 07:35:31 +0000 @@ -104,20 +104,32 @@ </record> <record id="mt_task_new" model="mail.message.subtype"> - <field name="name">New</field> + <field name="name">Task created</field> <field name="res_model">project.task</field> + <field name="default" eval="False"/> </record> <record id="mt_task_closed" model="mail.message.subtype"> - <field name="name">Closed</field> - <field name="res_model">project.task</field> + <field name="name">Done</field> + <field name="res_model">project.task</field> + </record> + <record id="mt_task_started" model="mail.message.subtype"> + <field name="name">Task Started</field> + <field name="res_model">project.task</field> + </record> + <record id="mt_task_blocked" model="mail.message.subtype"> + <field name="name">Tasks Blocked</field> + <field name="res_model">project.task</field> + <field name="default" eval="False"/> </record> <record id="mt_task_canceled" model="mail.message.subtype"> <field name="name">Canceled</field> <field name="res_model">project.task</field> + <field name="default" eval="False"/> </record> <record id="mt_task_change" model="mail.message.subtype"> <field name="name">Stage Changed</field> <field name="res_model">project.task</field> + <field name="default" eval="False"/> </record> <!-- notify all employees of module installation --> === modified file 'project/project_view.xml' --- project/project_view.xml 2012-11-15 12:38:51 +0000 +++ project/project_view.xml 2012-11-20 07:35:31 +0000 @@ -152,7 +152,7 @@ </notebook> </sheet> <div class="oe_chatter"> - <field name="message_follower_ids" widget="mail_followers" help="Follow this project to automatically follow all related tasks and issues."/> + <field name="message_follower_ids" widget="mail_followers" help="Follow this project to automatically track the events associated to tasks and issues of this project."/> <field name="message_ids" widget="mail_thread"/> </div> </form>
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp