Skip to content

Commit

Permalink
[FIX] sale: copy_quotation must propagate the context
Browse files Browse the repository at this point in the history
  • Loading branch information
guewen authored and mart-e committed Jul 30, 2014
1 parent 0b947b2 commit 39f3e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sale/sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def unlink(self, cr, uid, ids, context=None):
return osv.osv.unlink(self, cr, uid, unlink_ids, context=context)

def copy_quotation(self, cr, uid, ids, context=None):
id = self.copy(cr, uid, ids[0], context=None)
id = self.copy(cr, uid, ids[0], context=context)
view_ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'sale', 'view_order_form')
view_id = view_ref and view_ref[1] or False,
return {
Expand Down

0 comments on commit 39f3e40

Please sign in to comment.