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.

21 lines
750 B

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