[REM] website_sale_digital: remove dead code

Product field type value `digital` doesn't exist anymore, see 1a1efe3fce
Moreover, `digital` as qcontext seems like it was not used anyway, see
8a1b8e880c.

closes odoo/odoo#71629

Related: odoo/enterprise#18697
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
Romain Derie
2021-06-03 12:03:13 +00:00
parent 566fe68f34
commit 6ca30e23ee
@@ -10,18 +10,6 @@ from werkzeug.utils import redirect
from odoo import http
from odoo.http import request
from odoo.addons.sale.controllers.portal import CustomerPortal
from odoo.addons.website_sale.controllers.main import WebsiteSale
class WebsiteSaleDigitalConfirmation(WebsiteSale):
@http.route()
def shop_payment_confirmation(self, **post):
response = super().shop_payment_confirmation(**post)
order_lines = response.qcontext['order'].order_line
digital_content = any(x.product_id.type == 'digital' for x in order_lines)
response.qcontext.update(digital=digital_content)
return response
class WebsiteSaleDigital(CustomerPortal):