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.

19 lines
748 B

  1. # -*- coding: utf-8 -*-
  2. from openerp import http
  3. from openerp.http import request
  4. from openerp.addons.easy_my_coop.controllers.main import WebsiteSubscription as Base
  5. class WebsiteSubscription(Base):
  6. @http.route()
  7. def display_become_cooperator_page(self, **kwargs):
  8. response = (super(WebsiteSubscription, self)
  9. .display_become_cooperator_page(**kwargs))
  10. cmp = request.env['res.company']._company_default_get()
  11. response.qcontext.update({
  12. 'display_info_session': cmp.display_info_session_confirmation,
  13. 'info_session_required': cmp.info_session_confirmation_required,
  14. 'info_session_text': cmp.info_session_confirmation_text,
  15. })
  16. return response