[MIG] partner_profiles_portal : Migration to 16.0

This commit is contained in:
Boris Gallet
2024-03-13 11:58:08 +01:00
committed by Stéphan Sainléger
parent df455303fa
commit faf5507f26
26 changed files with 2649 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# Copyright 2022 Elabore (https://elabore.coop)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class CreatePositionProfile(models.TransientModel):
_inherit = "create.position.profile"
edit_structure_profiles = fields.Boolean(
string="Manage structure's profiles"
)
def _compute_position_profile_values(self):
values = super(CreatePositionProfile, self)._compute_position_profile_values()
values.update(
{
"edit_structure_profiles": self.edit_structure_profiles
}
)
return values