mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[PRT] web_no_crawler/12.0
This commit is contained in:
@@ -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).
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user