-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] beesdoo_shift: allow to create user #298
Conversation
23ec7f2
to
b58e849
Compare
TODO: Check if we don't want to hide this field by default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO si on a envie : n’afficher cette case que si aucun user n’existe encore. But : réduire l’interface pour les utilisateurs (une case en plus == des questions de users en plus).
beesdoo_shift/wizard/subscribe.py
Outdated
PortalWizard = self.env['portal.wizard'].sudo() | ||
wiz_values = PortalWizard.with_context(active_ids=self.cooperator_id.ids).default_get(['user_ids']) | ||
wizard = PortalWizard.create(wiz_values) | ||
wizard.user_ids.write({'in_portal': True}) | ||
wizard.action_apply() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@remytms fyi, comment Thibault crée un utilisateur.
b58e849
to
0e64141
Compare
Codecov Report
@@ Coverage Diff @@
## 12.0 #298 +/- ##
==========================================
- Coverage 68.53% 68.41% -0.13%
==========================================
Files 107 107
Lines 3366 3375 +9
Branches 589 590 +1
==========================================
+ Hits 2307 2309 +2
- Misses 951 957 +6
- Partials 108 109 +1
Continue to review full report at Codecov.
|
0e64141
to
d2e3e34
Compare
@robinkeunen All green |
d2e3e34
to
563327b
Compare
@polchampion I deployed this on these databases. As noted above, we have to see wether we want to make this feature available to all or only based on a configuration. Or only let some user group see the checkbox. The other option is to merge as is and then split it into another module. bees-test |
@robinkeunen Je dois tester mais a priori ok de merger cela as is. Nice to have : mouseover "cocher cette case pour créer un utilisateur pour cette personne. Si un utilisateur existe déjà, cocher cette case n'aura aucun effet." |
8ed77cc
to
12233a8
Compare
When a new cooperator subscribe add a checkbox to allow to create a portal user if the user already exist nothing will happen
12233a8
to
e13cc8d
Compare
Co-authored-by: hugues de keyzer <odoo@hugues.info>
e13cc8d
to
51cf7f2
Compare
/ocabot merge minor |
When a new cooperator subscribe
add a checkbox to allow to create a portal user
if the user already exist nothing will happen