[PRT] web_no_crawler/12.0

This commit is contained in:
Stefan Rijnhart
2020-06-25 17:30:45 +02:00
parent 03acd2bb49
commit 8697d5fc48
7 changed files with 32 additions and 551 deletions

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2018 Ventor, Xpansa Group (<https://ventor.tech/>)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

View File

@@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2018 Ventor, Xpansa Group (<https://ventor.tech/>)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
import openerp
from openerp import http
from odoo import http
from odoo.addons.web.controllers.main import Home
class Main(openerp.addons.web.controllers.main.Home):
class Main(Home):
@http.route('/robots.txt', type='http', auth="none")
def robots(self):