|
@ -6,14 +6,15 @@ from openerp.addons.easy_my_coop.controllers.main import WebsiteSubscription as |
|
|
|
|
|
|
|
|
class WebsiteSubscription(Base): |
|
|
class WebsiteSubscription(Base): |
|
|
|
|
|
|
|
|
@http.route() |
|
|
|
|
|
def display_become_cooperator_page(self, **kwargs): |
|
|
|
|
|
response = (super(WebsiteSubscription, self) |
|
|
|
|
|
.display_become_cooperator_page(**kwargs)) |
|
|
|
|
|
|
|
|
def fill_values(self, values, is_company, logged, load_from_user=False): |
|
|
|
|
|
values = super(WebsiteSubscription, self).fill_values(values, |
|
|
|
|
|
is_company, |
|
|
|
|
|
logged, |
|
|
|
|
|
load_from_user) |
|
|
cmp = request.env['res.company']._company_default_get() |
|
|
cmp = request.env['res.company']._company_default_get() |
|
|
response.qcontext.update({ |
|
|
|
|
|
|
|
|
values.update({ |
|
|
'display_info_session': cmp.display_info_session_confirmation, |
|
|
'display_info_session': cmp.display_info_session_confirmation, |
|
|
'info_session_required': cmp.info_session_confirmation_required, |
|
|
'info_session_required': cmp.info_session_confirmation_required, |
|
|
'info_session_text': cmp.info_session_confirmation_text, |
|
|
'info_session_text': cmp.info_session_confirmation_text, |
|
|
}) |
|
|
}) |
|
|
return response |
|
|
|
|
|
|
|
|
return values |