[FIX] website_sale_option: make options work
authorRichard Mathot <rim@openerp.com>
Thu, 7 Aug 2014 07:50:16 +0000 (09:50 +0200)
committerRichard Mathot <rim@openerp.com>
Thu, 7 Aug 2014 07:51:27 +0000 (09:51 +0200)
addons/website_sale_options/models/sale_order.py

index f16feae..85eaab2 100644 (file)
@@ -45,7 +45,7 @@ class sale_order(osv.Model):
                 line.write({
                         "name": _("%s\nOption for: %s") % (line.name, linked.product_id.name_get()[0][1]),
                         "linked_line_id": linked_line_id
-                    }, context=context)
+                    })
 
             # select linked product
             option_ids = [l.id for l in so.order_line if l.linked_line_id.id == line.id]