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.

22 lines
772 B

5 years ago
5 years ago
5 years ago
  1. from odoo import http
  2. from odoo.http import request
  3. from odoo.addons.easy_my_coop_website.controllers.main import (
  4. WebsiteSubscription as Base,
  5. )
  6. class WebsiteSubscription(Base):
  7. def fill_values(self, values, is_company, logged, load_from_user=False):
  8. values = super(WebsiteSubscription, self).fill_values(
  9. values, is_company, logged, load_from_user
  10. )
  11. cmp = request.env["res.company"]._company_default_get()
  12. values.update(
  13. {
  14. "display_info_session": cmp.display_info_session_confirmation,
  15. "info_session_required": cmp.info_session_confirmation_required,
  16. "info_session_text": cmp.info_session_confirmation_text,
  17. }
  18. )
  19. return values