diff options
| author | Damien Bouvy <dbo@odoo.com> | 2016-09-22 13:47:19 +0200 |
|---|---|---|
| committer | Damien Bouvy <dbo@odoo.com> | 2016-09-22 13:48:20 +0200 |
| commit | 03e2f70c3251242852617cf7448aa7a8fa4e73cb (patch) | |
| tree | fec0f14adba1ce1f7353064535378944a48e7e58 | |
| parent | 82b83ac7cd38303087483d5a20522ef14d59d905 (diff) | |
[FIX] website_quote: stop usnig recordset in write
and use its id instead
| -rw-r--r-- | addons/website_quote/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_quote/controllers/main.py b/addons/website_quote/controllers/main.py index f1f2d7da657..d7f804a1abe 100644 --- a/addons/website_quote/controllers/main.py +++ b/addons/website_quote/controllers/main.py @@ -149,7 +149,7 @@ class sale_quote(http.Controller): OrderLine = request.env['sale.order.line'].sudo().create(vals) OrderLine._compute_tax_id() - Option.write({'line_id': OrderLine}) + Option.write({'line_id': OrderLine.id}) return werkzeug.utils.redirect("/quote/%s/%s#pricing" % (Order.id, token)) # note dbo: website_sale code |
