User Threshold

user_threshold
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/10.0/user_threshold
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYAuthentication
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, Dave Lasley, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://www.laslabs.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_company_form res.company.form res.company xpath Inherits base.view_company_form
view_users_form res.users.form res.users xpath Inherits base.view_users_form
Models touched (4)

New fields (0)

No new fields.

Public methods (2)
  • unlink(self)
    @api.multi
    Override to disallow deletion of the user threshold parameter when the user does not have the right access
  • write(self, vals)
    @api.multi
    Override to disallow manipulation of the user threshold parameter when the user does not have the right access

New fields (1)
  • max_users Integer
    args: 'Maximum Number of users allowed for this company'
Public methods (2)
  • fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False)
    @api.model
    Hide Max User Field when the env var to hide the field is set
  • write(self, vals)
    @api.multi
    Override to disallow manipulation of the user threshold parameter when the user does not have the right access

New fields (0)

No new fields.

Public methods (1)
  • write(self, vals)
    @api.multi
    Override write to verify that membership of the Threshold Manager group is not able to be set by users outside that group

New fields (1)
  • threshold_exempt Boolean
    args: 'Exempt User From User Count Thresholds'
Public methods (4)
  • copy(self, default=None)
    @api.multi
    Override method to make sure the Thresholds aren't met before creating a new user
  • create(self, vals)
    @api.multi
    Override method to make sure the Thresholds aren't met before creating a new user
  • fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False)
    @api.model
    Hide Max User Field when the env var to hide the field is set
  • write(self, vals)
    @api.multi
    Override write to verify that membership of the Threshold Manager group is not able to be set by users outside that group