~unifield-team/unifield-addons/uf-1919

« back to all changes in this revision

Viewing changes to stock/stock.py

  • Committer: Quentin THEURET
  • Date: 2013-04-04 14:13:46 UTC
  • Revision ID: qt@tempo-consulting.fr-20130404141346-wu9dyybczb68m6fa
UF-1919 [FIX] Don't display res.log messages for PACK

Show diffs side-by-side

added added

removed removed

Lines of Context:
1437
1437
            # modify the message to be displayed
1438
1438
            message = self._hook_log_picking_modify_message(cr, uid, ids, context=context, message=message, pick=pick,)
1439
1439
            # conditional test for message log
1440
 
            if self._hook_log_picking_log_cond(cr, uid, ids, context=context, pick=pick,):
 
1440
            log_cond = self._hook_log_picking_log_cond(cr, uid, ids, context=context, pick=pick,)
 
1441
            if log_cond and log_cond != 'packing':
1441
1442
                self.log(cr, uid, pick.id, message, context=context)
1442
 
            else:
 
1443
            elif not log_cond:
1443
1444
                self._hook_custom_log(cr, uid, ids, context=context, message=message, pick=pick,)
1444
1445
        return True
1445
1446