Exceptions:\n""") % (start_date, end_date, report_total, report_except, report_later)
summary += '\n'.join(report)
- self.pool.get('res.users').message_append_note(cr, uid, [uid], body=summary, context=context)
+ procurement_obj.message_append_note(cr, uid, ids, body=summary, context=context)
if use_new_cursor:
cr.commit()
location_obj = self.pool.get('stock.location')
procurement_obj = self.pool.get('procurement.order')
wf_service = netsvc.LocalService("workflow")
- report = []
offset = 0
ids = [1]
if automatic:
offset += len(ids)
if use_new_cursor:
cr.commit()
- if user_id and report:
- # Chatter: old res.request is now a chatter on res.users, id=uid
- self.pool.get('res.users').message_append_note(cr, uid, [user_id], body='\n'.join(report), subject=_('Orderpoint report'), context=context)
if use_new_cursor:
cr.commit()
cr.close()