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.
17 lines
560 B
17 lines
560 B
# Copyright 2018 Rémy Taymans <remytaymans@gmail.com>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
|
|
from odoo.http import request
|
|
|
|
from odoo.addons.portal.controllers.portal import CustomerPortal
|
|
|
|
|
|
class EaterWebsiteAccount(CustomerPortal):
|
|
def _prepare_portal_layout_values(self):
|
|
values = super(
|
|
EaterWebsiteAccount, self
|
|
)._prepare_portal_layout_values()
|
|
partner = request.env.user.partner_id.commercial_partner_id
|
|
values.update({"eaters": partner.child_eater_ids})
|
|
return values
|