| 1 |
# Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 |
from odoo.http import request |
| 3 |
|
| 4 |
from odoo.addons.account.controllers.portal import PortalAccount |
| 5 |
|
| 6 |
|
| 7 |
class PortalAccountMy(PortalAccount): |
| 8 |
|
| 9 |
def _prepare_my_account_rendering_values(self, *args, **kwargs): |
| 10 |
# EXTENDS 'portal' |
| 11 |
rendering_values = super()._prepare_my_account_rendering_values(*args, **kwargs) |
| 12 |
rendering_values.update({ |
| 13 |
'l10n_my_identification_types': dict(rendering_values['partner_sudo']._fields['l10n_my_identification_type'].selection), |
| 14 |
'l10n_my_edi_industrial_classifications': request.env['l10n_my_edi.industry_classification'].sudo().search([]), |
| 15 |
}) |
| 16 |
return rendering_values |