related_backorder_ids causes problem with return picking

Bug #1303655 reported by Romain Deheele - Camptocamp
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenERP Connector - E-Commerce
Fix Released
Undecided
Unassigned

Bug Description

Hello,

If a picking has a backorder, and we do a return picking (Return Products button on "done" picking)
This next error occurs :
IntegrityError: duplicate key value violates unique constraint "stock_picking_name_uniq"
DETAIL: Key (name, company_id)=(OUT/01014, 1) already exists.
except_osv: ('Constraint Error', 'Reference must be unique per Company!')

To create the incoming picking, the wizard uses a copy method.
This copy includes related_backorder_ids, the previous error occurs when OE tries to create the first related backorder.

Regards,

Romain

Related branches

Changed in openerp-connector-ecommerce:
status: New → Fix Committed
Changed in openerp-connector-ecommerce:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.