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.

20 lines
914 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. def fill_values(self, values, is_company, logged, load_from_user=False):
  7. values = super(WebsiteSubscription, self).fill_values(values,
  8. is_company,
  9. logged,
  10. load_from_user)
  11. cmp = request.env['res.company']._company_default_get()
  12. values.update({
  13. 'display_info_session': cmp.display_info_session_confirmation,
  14. 'info_session_required': cmp.info_session_confirmation_required,
  15. 'info_session_text': cmp.info_session_confirmation_text,
  16. })
  17. return values