Overdue Tasks¶
-
class
overdue.nh_clinical_overdue(pool, cr)[source]¶ Extends
activityto create overdue activities used by view overdue_view.xml Includes fieldsdelay_stringto record time overdue anduser_nameto record user the activity is assigned to.-
activity_id¶ The value of such a field is a recordset of size 0 (no record) or 1 (a single record).
Parameters: - comodel_name – name of the target model (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)
- ondelete – what to do when the referred record is deleted;
possible values are:
'set null','restrict','cascade' - auto_join – whether JOINs are generated upon search through that
field (boolean, by default
False) - delegate – set it to
Trueto make fields of the target model accessible from the current model (corresponds to_inherits)
The attribute comodel_name is mandatory except in the case of related fields or field extensions.
-
delay¶
-
delay_string¶ Basic string field, can be length-limited, usually displayed as a single-line string in clients
Parameters:
-
groups¶ Very similar to
Charbut used for longer contents, does not have a size and usually displayed as a multiline text box.Parameters: translate – whether the value of this field can be translated
-
location¶ Basic string field, can be length-limited, usually displayed as a single-line string in clients
Parameters:
-
name¶ Basic string field, can be length-limited, usually displayed as a single-line string in clients
Parameters:
-
nhs_number¶ Basic string field, can be length-limited, usually displayed as a single-line string in clients
Parameters:
-
parent_location¶ Basic string field, can be length-limited, usually displayed as a single-line string in clients
Parameters:
-
patient_name¶ Basic string field, can be length-limited, usually displayed as a single-line string in clients
Parameters:
-
state¶ Parameters: - selection – specifies the possible values for this field. It is given as either a list of pairs (value, string), or a model method, or a method name.
- selection_add – provides an extension of the selection in the case of an overridden field. It is a list of pairs (value, string).
The attribute selection is mandatory except in the case of related fields or field extensions.
-