-
- Downloads
[IMP] base: add _is_internal method to res.users
No method was readily available to know if a user is `internal` (has group `base.group_user`), which was inconsistent with other base groups. _is_internal is now used in the codebase where it is clear that `.has_group('base.group_user')` is called on a single record. Part-of: odoo/odoo#85703
Showing
- addons/account/models/account_move.py 1 addition, 1 deletionaddons/account/models/account_move.py
- addons/auth_oauth/controllers/main.py 1 addition, 1 deletionaddons/auth_oauth/controllers/main.py
- addons/auth_signup/models/res_partner.py 2 additions, 2 deletionsaddons/auth_signup/models/res_partner.py
- addons/auth_totp_mail_enforce/models/res_users.py 1 addition, 1 deletionaddons/auth_totp_mail_enforce/models/res_users.py
- addons/auth_totp_portal/models/res_users.py 1 addition, 1 deletionaddons/auth_totp_portal/models/res_users.py
- addons/barcodes/models/ir_http.py 1 addition, 1 deletionaddons/barcodes/models/ir_http.py
- addons/base_setup/models/ir_http.py 1 addition, 1 deletionaddons/base_setup/models/ir_http.py
- addons/digest/models/digest.py 2 additions, 2 deletionsaddons/digest/models/digest.py
- addons/hr_presence/controllers/bus_controller.py 1 addition, 1 deletionaddons/hr_presence/controllers/bus_controller.py
- addons/hr_timesheet/models/ir_http.py 1 addition, 1 deletionaddons/hr_timesheet/models/ir_http.py
- addons/mail/models/ir_http.py 1 addition, 1 deletionaddons/mail/models/ir_http.py
- addons/mail/models/mail_thread.py 2 additions, 2 deletionsaddons/mail/models/mail_thread.py
- addons/mail_bot/models/ir_http.py 1 addition, 1 deletionaddons/mail_bot/models/ir_http.py
- addons/mail_bot/models/res_users.py 1 addition, 1 deletionaddons/mail_bot/models/res_users.py
- addons/portal/controllers/mail.py 1 addition, 1 deletionaddons/portal/controllers/mail.py
- addons/portal/controllers/portal.py 1 addition, 1 deletionaddons/portal/controllers/portal.py
- addons/portal/wizard/portal_wizard.py 1 addition, 1 deletionaddons/portal/wizard/portal_wizard.py
- addons/project/models/project.py 1 addition, 1 deletionaddons/project/models/project.py
- addons/survey/models/survey_survey.py 1 addition, 1 deletionaddons/survey/models/survey_survey.py
- addons/web/controllers/utils.py 1 addition, 1 deletionaddons/web/controllers/utils.py
Loading
Please register or sign in to comment