** Also affects: ocb-addons/6.1
   Importance: Undecided
       Status: New

** Also affects: ocb-addons/7.0
   Importance: Undecided
       Status: New

** Changed in: ocb-addons/6.1
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (Addons).
https://bugs.launchpad.net/bugs/1091268

Title:
  Useless duplicates origin when merging purchase orders

Status in OpenERP Community Backports (Addons):
  New
Status in OpenERP Community Backports (Addons) 6.1 series:
  Fix Released
Status in OpenERP Community Backports (Addons) 7.0 series:
  New
Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  When merging multiple purchase orders from wizard, origin field is 
concatenated even if the origin is the same:
  eg: :MO/00005 :MO/00005 :MO/00005 :MO/00005 :MO/00003 :MO/00003 :MO/00003

  It should be avoided, at least because the origin field is limited to
  64 chars. I'm attaching a patch to fix this

  if porder.origin and not porder.origin in order_infos['origin'] : # Do not 
add duplicates origin, totally useless
     order_infos['origin'] = (order_infos['origin'] or '') + ' ' + porder.origin

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1091268/+subscriptions

-- 
Mailing list: https://launchpad.net/~openerp-community-reviewer
Post to     : openerp-community-reviewer@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community-reviewer
More help   : https://help.launchpad.net/ListHelp

Reply via email to