website.py 502 B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import models, _
  4. from odoo.addons.http_routing.models.ir_http import url_for
  5. class Website(models.Model):
  6. _inherit = "website"
  7. def get_suggested_controllers(self):
  8. suggested_controllers = super(Website, self).get_suggested_controllers()
  9. suggested_controllers.append((_('References'), url_for('/customers'), 'website_customer'))
  10. return suggested_controllers