Skip to content

Commit

Permalink
[IMP] return new duplicate id in copy() from partner
Browse files Browse the repository at this point in the history
  • Loading branch information
Foram Katharotiya (OpenERP) committed Jul 24, 2013
1 parent b03ad78 commit edff0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/purchase/partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def copy(self, cr, uid, id, default=None, context=None):

default.update({'purchase_order_ids': []})

super(res_partner, self).copy(cr, uid, id, default=default, context=context)
return super(res_partner, self).copy(cr, uid, id, default=default, context=context)

def _commercial_fields(self, cr, uid, context=None):
return super(res_partner, self)._commercial_fields(cr, uid, context=context) + ['property_product_pricelist_purchase']
Expand Down

0 comments on commit edff0d2

Please sign in to comment.