Skip to content

Commit

Permalink
Merge pull request #60 from mdietrichc2c/fix_picking_copy
Browse files Browse the repository at this point in the history
Add copy_data to stock.picking.out (otherwise, the copy process fails)
  • Loading branch information
yvaucher committed Oct 30, 2014
2 parents d2366ce + b8999a7 commit 7b24016
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions magentoerpconnect/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ class stock_picking_out(orm.Model):
string="Magento Bindings"),
}

# Copy also has an issue on stock.picking.out.
def copy_data(self, cr, uid, id, default=None, context=None):
if default is None:
default = {}
default['magento_bind_ids'] = False
return super(stock_picking_out, self).copy_data(cr, uid, id,
default=default,
context=context)


@magento
class StockPickingAdapter(GenericAdapter):
Expand Down

0 comments on commit 7b24016

Please sign in to comment.