~unifield-team/unifield-wm/us-903

« back to all changes in this revision

Viewing changes to msf_outgoing/msf_outgoing.py

  • Committer: chloups208
  • Date: 2011-12-09 14:04:35 UTC
  • mto: This revision was merged to the branch mainline in revision 509.
  • Revision ID: chloups208@chloups208-laptop-20111209140435-km4xgzjevpp1w6pu
uf-651 msf_tools module added

Show diffs side-by-side

added added

removed removed

Lines of Context:
674
674
                # update the shipment_date of the corresponding sale order if the date is not set yet - with current date
675
675
                if new_packing.sale_id and not new_packing.sale_id.shipment_date:
676
676
                    # get the date format
677
 
                    tools_obj = self.pool.get('msf.tools')
678
 
                    date_format = tools_obj.get_date_format(cr, uid, context=context)
 
677
                    date_tools = self.pool.get('date.tools')
 
678
                    date_format = date_tools.get_date_format(cr, uid, context=context)
679
679
                    so_obj.write(cr, uid, [new_packing.sale_id.id], {'shipment_date': time.strftime('%Y-%m-%d'),}, context=context)
680
680
                    so_obj.log(cr, uid, new_packing.sale_id.id, _("Shipment Date of the Sale Order '%s' has been updated to %s."%(new_packing.sale_id.name, time.strftime(date_format))))
681
681