Partner Auth
auth_partner · OCA/rest-framework
Health
77/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 4 months ago
-
Required by15/251 module depends on it
-
Maturity12/25In 2 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
3 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.12 MB
Module directory on disk
Code analysis
1 migration note
5 models
9 views
0 HTTP endpoints
Migration considerations
AuthPartner— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module adds to the partners the ability to authenticate through directories.
This module does not implement any routing, it only provides the basic mechanisms in a directory for:
- Registering a partner and sending an welcome email (to validate email address): _signup
- Authenticating a partner: _login
- Validating a partner email using a token: _validate_email
- Impersonating: _impersonate, _impersonating
- Resetting the password with a unique token sent by mail: _request_reset_password, _set_password
- Sending an invite mail when registering a partner from odoo interface for the partner to enter a password: _send_invite, _set_password
For a routing implementation, see the fastapi_auth_partner module.
Dependencies
- Odoo dependencies
- Python dependencies
- itsdangerous, pyjwt, requests
- System dependencies
- None
- Required by
- fastapi_auth_partner
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
auth_directory_view_form |
auth.directory | form | New | |
auth_directory_view_search |
auth.directory | search | New | |
auth_directory_view_tree |
auth.directory | list | New | |
auth_partner_view_form |
auth.partner | form | New | |
auth_partner_view_search |
auth.partner | search | New | |
auth_partner_view_tree |
auth.partner | list | New | |
view_partner_form |
res.partner | form | Inherits base.view_partner_form | |
wizard_auth_partner_force_set_password_view_form |
wizard.auth.partner.force.set.password | form | New | |
wizard_auth_partner_reset_password_view_form |
wizard.auth.partner.reset.password | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (11)
-
auth_partner_idsOne2many → auth.partnerargs: 'auth.partner', 'directory_id', 'Auth Partners' -
count_partnerIntegercompute='_compute_count_partner' -
force_verified_emailBooleanhelp='If checked, email must be verified to be able to log in' -
impersonating_token_durationIntegerdefault=60help='In seconds, default 60 seconds'required=True -
impersonating_user_idsMany2many → res.usersdefault=<expr>groups='auth_partner.group_auth_partner_manager'help='These odoo users can impersonate any partner of this directory'string='Impersonating Users' args: 'res.users', 'auth_directory_impersonating_user_rel', 'directory_id', 'user_id' -
nameCharrequired=True -
reset_password_template_idMany2one → mail.templatedefault=<expr>required=True args: 'mail.template', 'Mail Template Forget Password' -
secret_keyChardefault=<expr>groups='base.group_system'required=True -
set_password_template_idMany2one → mail.templatedefault=<expr>required=True args: 'mail.template', 'Mail Template New Password' -
set_password_token_durationIntegerdefault=1440help='In minute, default 1440 minutes => 24h'required=True -
validate_email_template_idMany2one → mail.templatedefault=<expr>required=True args: 'mail.template', 'Mail Template Validate Email'
-
action_regenerate_secret_key(self)
New fields (12)
-
date_last_impersonationDatetimehelp='Date of the last sucessfull impersonation' -
date_last_request_reset_pwdDatetimehelp='Date of the last password reset request' -
date_last_sucessfull_reset_pwdDatetimehelp='Date of the last sucessfull password reset' -
directory_idMany2one → auth.directoryindex=Truerequired=True args: 'auth.directory', 'Directory' -
encrypted_passwordCharindex=True -
impersonating_user_idsMany2manyrelated='directory_id.impersonating_user_ids' -
loginCharcompute='_compute_login'index=Trueprecompute=Truerequired=Truestore=True -
mail_verifiedBooleanhelp='This field is set to True when the user has clicked on the link sent by email' -
nbr_pending_reset_sentIntegerhelp='Number of pending reset sent from your customer.This field is usefull when after a migration from an other system you ask all you customer to reset their password and you senddifferent mail depending on the number of reminder'index=True -
partner_idMany2one → res.partnerindex=Trueondelete='cascade'required=True args: 'res.partner', 'Partner' -
passwordCharcompute='_compute_password'inverse='_inverse_password' -
user_can_impersonateBooleancompute='_compute_user_can_impersonate'help='Technical field to check if the user can impersonate'
-
impersonate(self) -
send_invite(self)
New fields (2)
-
auth_partner_countIntegercompute='_compute_auth_partner_count'compute_sudo=True -
auth_partner_idsOne2many → auth.partnerargs: 'auth.partner', 'partner_id', 'Partner Auth'
No public methods.
New fields (2)
-
passwordCharrequired=True -
password_confirmCharrequired=Truestring='Confirm Password'
-
action_force_set_password(self)
New fields (3)
-
date_validityDatetimecompute='_compute_date_validity'readonly=Falsestore=True -
delaySelectiondefault='6-hours'required=True args: [('manually', 'Manually'), ('6-hours', '6 Hours'), ('2-days', '2-days'), ('7-days', '7 Days'), ('14-days', '14 Days')] -
template_idMany2one → mail.templatedomain=[('model_id', '=', 'auth.partner')]required=True args: 'mail.template', 'Mail Template'
-
action_reset_password(self)
Loading…