[FIX] sale: copy_quotation must propagate the context

This commit is contained in:
Guewen Baconnier 2014-07-09 11:39:58 +02:00 committed by Martin Trigaux
parent 0b947b26e1
commit 39f3e40329
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ class sale_order(osv.osv):
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 {