Hemendra Paregi(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-polish2-improvement_override_action_project_issue-hpa
into lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-polish2-improvement_override_action_project_issue-hpa/+merge/82245
hello,
=====================project_issue.py====================
# - update last action date
# - Every-time the user change a stage is changed.
# - Every-time the user change the state.
# - Every-time the user send a new email.
changes done as per your suggestion.
Thanks,
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-polish2-improvement_override_action_project_issue-hpa/+merge/82245
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-polish2-improvement_override_action_project_issue-hpa.
=== modified file 'project_issue/project_issue.py'
--- project_issue/project_issue.py 2011-11-11 08:11:52 +0000
+++ project_issue/project_issue.py 2011-11-15 06:17:28 +0000
@@ -48,6 +48,18 @@
_order = "priority, create_date desc"
_inherit = ['mail.thread']
+ def write(self, cr, uid, ids, vals, context=None):
+ # update last action date
+ # - EveryTime the user change a stage is changed
+ # - EveryTime the user change the state
+ # - EveryTime the user send a new email
+
+ attrs = ['type_id', 'state', 'message_ids']
+ for attr in attrs:
+ if attr in vals:
+ vals['date_action_last'] = time.strftime('%Y-%m-%d %H:%M:%S')
+ return super(project_issue, self).write(cr, uid, ids, vals, context)
+
def case_open(self, cr, uid, ids, *args):
"""
@param self: The object pointer
_______________________________________________
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