diff --git a/partner_profiles_portal/__init__.py b/partner_profiles_portal/__init__.py
index c3d410e..5ea0fdc 100644
--- a/partner_profiles_portal/__init__.py
+++ b/partner_profiles_portal/__init__.py
@@ -2,3 +2,4 @@
from . import models
from . import controllers
+from . import wizard
\ No newline at end of file
diff --git a/partner_profiles_portal/__manifest__.py b/partner_profiles_portal/__manifest__.py
index 1e5d631..8f23fce 100644
--- a/partner_profiles_portal/__manifest__.py
+++ b/partner_profiles_portal/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "partner_profiles_portal",
- "version": "12.0.2.2.2",
+ "version": "12.0.2.3.0",
"author": "Elabore",
"website": "https://elabore.coop",
"maintainer": "Stéphan Sainléger",
@@ -30,6 +30,7 @@
"views/portal_partner_structure_template.xml",
"views/portal_my_account.xml",
"views/res_partner_view.xml",
+ "wizard/create_position_profile.xml",
],
# only loaded in demonstration mode
"demo": [],
diff --git a/partner_profiles_portal/i18n/fr.po b/partner_profiles_portal/i18n/fr.po
index dd3674a..9a74d59 100644
--- a/partner_profiles_portal/i18n/fr.po
+++ b/partner_profiles_portal/i18n/fr.po
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2023-05-16 12:33+0000\n"
-"PO-Revision-Date: 2023-05-16 12:33+0000\n"
+"POT-Creation-Date: 2023-05-23 15:14+0000\n"
+"PO-Revision-Date: 2023-05-23 15:14+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -94,7 +94,7 @@ msgstr "Ville :"
#: code:addons/partner_profiles_portal/controllers/portal_my_structures.py:40
#, python-format
msgid "Company"
-msgstr "Compagnie"
+msgstr "Entreprise"
#. module: partner_profiles_portal
#: model:ir.model,name:partner_profiles_portal.model_res_partner
@@ -149,7 +149,7 @@ msgid "Image"
msgstr "Image"
#. module: partner_profiles_portal
-#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:119
+#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:115
#: code:addons/partner_profiles_portal/controllers/portal_partner_profile.py:40
#: code:addons/partner_profiles_portal/controllers/portal_structure_profile.py:41
#, python-format
@@ -157,7 +157,7 @@ msgid "Invalid Email! Please enter a valid email address."
msgstr "L'email n'est pas valide, merci de renseigner un email valide !"
#. module: partner_profiles_portal
-#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:122
+#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:118
#, python-format
msgid "Invalid Public Email! Please enter a valid public email address."
msgstr "L'email public n'est pas valide, merci de renseigner un email valide !"
@@ -168,10 +168,9 @@ msgid "Logo:"
msgstr "Logo :"
#. module: partner_profiles_portal
-#: code:addons/partner_profiles_portal/models/res_partner.py:14
+#: model:ir.model.fields,field_description:partner_profiles_portal.field_create_position_profile__edit_structure_profiles
#: model:ir.model.fields,field_description:partner_profiles_portal.field_res_partner__edit_structure_profiles
#: model:ir.model.fields,field_description:partner_profiles_portal.field_res_users__edit_structure_profiles
-#, python-format
msgid "Manage structure's profiles"
msgstr "Gère les profiles de la structure"
@@ -303,7 +302,7 @@ msgstr "Les informations suivantes sont des informations publiques qui peuvent
" publiquement ce que vous souhaitez ou avez besoin."
#. module: partner_profiles_portal
-#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:134
+#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:130
#: code:addons/partner_profiles_portal/controllers/portal_structure_profile.py:34
#, python-format
msgid "This public name is already used, please find an other idea."
@@ -348,7 +347,7 @@ msgstr "ZIP /\n"
#. module: partner_profiles_portal
#: model_terms:ir.ui.view,arch_db:partner_profiles_portal.portal_my_details_profiles
-msgid "ZIP / Postal\n"
+msgid "Zip / Postal\n"
" Code"
msgstr "ZIP / Code\n"
" Postal"
@@ -365,6 +364,11 @@ msgstr "Zip / Code\n"
msgid "Zip / Postal Code"
msgstr "Zip / Code postal"
+#. module: partner_profiles_portal
+#: model:ir.model,name:partner_profiles_portal.model_create_position_profile
+msgid "create Position Profile"
+msgstr "créer un profil Position"
+
#. module: partner_profiles_portal
#: model_terms:ir.ui.view,arch_db:partner_profiles_portal.portal_structure
msgid "details"
diff --git a/partner_profiles_portal/i18n/partner_profiles_portal.pot b/partner_profiles_portal/i18n/partner_profiles_portal.pot
index bf8e588..eb9e63c 100644
--- a/partner_profiles_portal/i18n/partner_profiles_portal.pot
+++ b/partner_profiles_portal/i18n/partner_profiles_portal.pot
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2023-05-16 12:31+0000\n"
-"PO-Revision-Date: 2023-05-16 12:31+0000\n"
+"POT-Creation-Date: 2023-05-23 15:12+0000\n"
+"PO-Revision-Date: 2023-05-23 15:12+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -70,7 +70,7 @@ msgstr ""
#. module: partner_profiles_portal
#: model:ir.model.fields,field_description:partner_profiles_portal.field_res_partner__can_edit_structure_profiles_ids
#: model:ir.model.fields,field_description:partner_profiles_portal.field_res_users__can_edit_structure_profiles_ids
-msgid "Can edit main profile"
+msgid "Can edit struture profiles"
msgstr ""
#. module: partner_profiles_portal
@@ -149,7 +149,7 @@ msgid "Image"
msgstr ""
#. module: partner_profiles_portal
-#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:119
+#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:115
#: code:addons/partner_profiles_portal/controllers/portal_partner_profile.py:40
#: code:addons/partner_profiles_portal/controllers/portal_structure_profile.py:41
#, python-format
@@ -157,7 +157,7 @@ msgid "Invalid Email! Please enter a valid email address."
msgstr ""
#. module: partner_profiles_portal
-#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:122
+#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:118
#, python-format
msgid "Invalid Public Email! Please enter a valid public email address."
msgstr ""
@@ -168,10 +168,9 @@ msgid "Logo:"
msgstr ""
#. module: partner_profiles_portal
-#: code:addons/partner_profiles_portal/models/res_partner.py:14
+#: model:ir.model.fields,field_description:partner_profiles_portal.field_create_position_profile__edit_structure_profiles
#: model:ir.model.fields,field_description:partner_profiles_portal.field_res_partner__edit_structure_profiles
#: model:ir.model.fields,field_description:partner_profiles_portal.field_res_users__edit_structure_profiles
-#, python-format
msgid "Manage structure's profiles"
msgstr ""
@@ -298,7 +297,13 @@ msgid "The following information are public information that might be\n"
msgstr ""
#. module: partner_profiles_portal
-#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:134
+#: code:addons/partner_profiles_portal/controllers/portal_partner_profile.py:33
+#, python-format
+msgid "This nickname is already used, please find an other idea."
+msgstr ""
+
+#. module: partner_profiles_portal
+#: code:addons/partner_profiles_portal/controllers/portal_my_account.py:130
#: code:addons/partner_profiles_portal/controllers/portal_structure_profile.py:34
#, python-format
msgid "This public name is already used, please find an other idea."
@@ -357,6 +362,11 @@ msgstr ""
msgid "Zip / Postal Code"
msgstr ""
+#. module: partner_profiles_portal
+#: model:ir.model,name:partner_profiles_portal.model_create_position_profile
+msgid "create Position Profile"
+msgstr ""
+
#. module: partner_profiles_portal
#: model_terms:ir.ui.view,arch_db:partner_profiles_portal.portal_structure
msgid "details"
diff --git a/partner_profiles_portal/views/res_partner_view.xml b/partner_profiles_portal/views/res_partner_view.xml
index 0371b7c..60720c7 100644
--- a/partner_profiles_portal/views/res_partner_view.xml
+++ b/partner_profiles_portal/views/res_partner_view.xml
@@ -19,22 +19,6 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/partner_profiles_portal/wizard/__init__.py b/partner_profiles_portal/wizard/__init__.py
new file mode 100644
index 0000000..32ec48c
--- /dev/null
+++ b/partner_profiles_portal/wizard/__init__.py
@@ -0,0 +1,3 @@
+# -*- coding: utf-8 -*-
+
+from . import create_position_profile
\ No newline at end of file
diff --git a/partner_profiles_portal/wizard/create_position_profile.py b/partner_profiles_portal/wizard/create_position_profile.py
new file mode 100644
index 0000000..447d497
--- /dev/null
+++ b/partner_profiles_portal/wizard/create_position_profile.py
@@ -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
\ No newline at end of file
diff --git a/partner_profiles_portal/wizard/create_position_profile.xml b/partner_profiles_portal/wizard/create_position_profile.xml
new file mode 100644
index 0000000..a0fa0a1
--- /dev/null
+++ b/partner_profiles_portal/wizard/create_position_profile.xml
@@ -0,0 +1,13 @@
+
+
+
+ create.position.wizard.view.form.inherit
+ create.position.profile
+
+
+
+
+
+
+
+
\ No newline at end of file