You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

16 lines
478 B

# -*- 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
class Main(openerp.addons.web.controllers.main.Home):
@http.route('/robots.txt', type='http', auth="none")
def robots(self):
return http.request.make_response(
"User-agent: *\nDisallow: /",
[('Content-Type', 'text/plain')],
)