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
889 B

  1. from odoo import http
  2. from odoo.http import request
  3. from odoo.addons.easy_my_coop_website.controllers.main import WebsiteSubscription as Base
  4. class WebsiteSubscription(Base):
  5. def fill_values(self, values, is_company, logged, load_from_user=False):
  6. values = super(WebsiteSubscription, self).fill_values(values,
  7. is_company,
  8. logged,
  9. load_from_user)
  10. cmp = request.env['res.company']._company_default_get()
  11. values.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 values