From: Guewen Baconnier Date: Wed, 9 Jul 2014 09:39:58 +0000 (+0200) Subject: [FIX] sale: copy_quotation must propagate the context X-Git-Tag: 8.0.0~25^2~24^2~48^2~7 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=39f3e403293e51f1e6e544638831dd090bcc0847;p=odoo%2Fodoo.git [FIX] sale: copy_quotation must propagate the context --- diff --git a/addons/sale/sale.py b/addons/sale/sale.py index af62b01..264c2d9 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -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 {