This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from odoo.addons.website_sale.controllers.main import WebsiteSale | |
| class WebsiteSaleInherit(WebsiteSale): | |
| @http.route(['/shop/checkout'], type='http', auth="public", website=True) | |
| def checkout(self, **post): | |
| # use super to call prevously defined checkout methods so we not overriding the method but extend it. | |
| res = super(WebsiteSale, self).checkout(**post) | |
| # code your bugs in here ;) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from odoo import http, tools, _ | |
| class WebsiteSale(http.Controller): | |
| @http.route(['/shop/checkout'], type='http', auth="public", website=True) | |
| def checkout(self, **post): | |
| # we have base code in here |
NewerOlder