Merge lp:~unifield-team/unifield-addons/uf-507 into lp:unifield-addons

Proposed by jftempo
Status: Merged
Merged at revision: 4504
Proposed branch: lp:~unifield-team/unifield-addons/uf-507
Merge into: lp:unifield-addons
Diff against target: 27 lines (+10/-0)
1 file modified
stock/stock.py (+10/-0)
To merge this branch: bzr merge lp:~unifield-team/unifield-addons/uf-507
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+82386@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2011-09-22 17:54:52 +0000
3+++ stock/stock.py 2011-11-16 11:25:29 +0000
4@@ -1329,6 +1329,14 @@
5 specify if we display a log or not
6 '''
7 return True
8+
9+ def _hook_log_picking_modify_message(self, cr, uid, ids, context=None, *args, **kwargs):
10+ '''
11+ stock>stock.py>log_picking
12+ update the message to be displayed by the function
13+ '''
14+ message = kwargs['message']
15+ return message
16
17 def log_picking(self, cr, uid, ids, context=None):
18 """ This function will create log messages for picking.
19@@ -1367,6 +1375,8 @@
20 res = self._hook_picking_get_view(cr, uid, ids, context=context, pick=pick)
21 context.update({'view_id': res and res[1] or False})
22 message += state_list[pick.state]
23+ # modify the message to be displayed
24+ message = self._hook_log_picking_modify_message(cr, uid, ids, context=context, message=message, pick=pick,)
25 # conditional test for message log
26 if self._hook_log_picking_log_cond(cr, uid, ids, context=context, pick=pick,):
27 self.log(cr, uid, pick.id, message, context=context)

Subscribers

People subscribed via source and target branches

to all changes: