[IMP] partner_profiles_portal: refactor position profil creation
This commit is contained in:
committed by
Stéphan Sainléger
parent
a4c1c467c5
commit
9438f19140
20
partner_profiles_portal/wizard/create_position_profile.py
Normal file
20
partner_profiles_portal/wizard/create_position_profile.py
Normal 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
|
Reference in New Issue
Block a user