Context

class context.nh_clinical_context(pool, cr)[source]

Indicates if a specific policy is applicable to a model.

A context will trigger actions related to the context. If an action is executed in a particular context, then its context-dependent actions will be triggered as a result (if there are any).

check_model(*args, **kwargs)[source]

Checks if model is applicable for the context.

Parameters:
  • ids (list) – context ids
  • model – model to check
Returns:

True if model is applicable

Return type:

bool

Raises:

except_orm if not applicable