Documentation ¶
Index ¶
Constants ¶
View Source
const CurrencyDisplayPattern string = `(\w+)\s*(?:\((.*)\))?`
View Source
const ( // MODULE_NAME is the name of this module MODULE_NAME string = "base" )
Variables ¶
View Source
var ( PartnerWarningMessage = types.Selection{ "no-message": "No Message", "warning": "Warning", "block": "Blocking Message", } PartnerWarningHelp = `` /* 204-byte string literal not displayed */ )
View Source
var ( // GroupSystem is given to users who are allowed to modify general settings GroupSystem *security.Group // GroupUser is the group for Employees GroupUser *security.Group // GroupMultiCurrency displays data to work in a multi-currency context GroupMultiCurrency *security.Group // GroupPartnerManager is given to users who are allowed to manage contacts GroupPartnerManager *security.Group // GroupMultiCompany displays data to work in a multi-company context GroupMultiCompany *security.Group // GroupPortal is granted to portal users GroupPortal *security.Group // GroupPublic is granted to external users GroupPublic *security.Group // GroupERPManager can modify access rights for other users GroupERPManager *security.Group // GroupTechnicalFeatures can see and modify technical parameters of the ERP GroupTechnicalFeatures *security.Group )
Functions ¶
func CompanyGetUserCurrency ¶
func CompanyGetUserCurrency(env models.Environment, fMap models.FieldMap) interface{}
CompanyGetUserCurrency returns the currency of the current user's company if it exists or the default currency otherwise
Types ¶
type BaseAuthBackend ¶
type BaseAuthBackend struct{}
BaseAuthBackend is the authentication backend of the Base module Users are authenticated against the User model in the database
func (*BaseAuthBackend) Authenticate ¶
func (bab *BaseAuthBackend) Authenticate(login, secret string, context *types.Context) (uid int64, err error)
Authenticate the user defined by login and secret.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.