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

  1. # Copyright 2018 Rémy Taymans <remytaymans@gmail.com>
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from odoo.http import request
  4. from odoo.addons.portal.controllers.portal import CustomerPortal
  5. class EaterWebsiteAccount(CustomerPortal):
  6. def _prepare_portal_layout_values(self):
  7. values = super(EaterWebsiteAccount,
  8. self)._prepare_portal_layout_values()
  9. partner = request.env.user.partner_id.commercial_partner_id
  10. values.update({
  11. 'eaters': partner.child_eater_ids,
  12. })
  13. return values