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
| <tree decoration-success="state=='confirm'" decoration-danger="state=='reject'"> | |
| <field name="product_id"/> | |
| <field name="state" invisible="1"/> | |
| </tree> | |
| <!-- Here is the detail for available color --> | |
| decoration-bf - shows the line in BOLD | |
| decoration-it - shows the line in ITALICS | |
| decoration-danger - shows the line in LIGHT RED | |
| decoration-info - shows the line in LIGHT BLUE |
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
| sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb | |
| sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb | |
| sudo apt-get install -f | |
| sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin | |
| sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin |
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