Settings

class nh_eobs.settings.NHEobsSettings(pool, cr)[source]
WORKLOAD_BUCKET_REGEX = '^\\d+[-|+]{1}(\\d+)?.+$'
activity_period
discharge_transfer_period
get_setting(*args, **kwargs)[source]
get_settings(*args, **kwargs)[source]
validate_workload_buckets(buckets, context=None)[source]
workload_bucket_period

One2many field; the value of such a field is the recordset of all the records in comodel_name such that the field inverse_name is equal to the current record.

Parameters:
  • comodel_name – name of the target model (string)
  • inverse_name – name of the inverse Many2one field in comodel_name (string)
  • domain – an optional domain to set on candidate values on the client side (domain or string)
  • context – an optional context to use on the client side when handling that field (dictionary)
  • auto_join – whether JOINs are generated upon search through that field (boolean, by default False)
  • limit – optional limit to use upon read (integer)

The attributes comodel_name and inverse_name are mandatory except in the case of related fields or field extensions.