User Responsibility Allocation

class auditing.nh_clinical_user_responsibility_allocation(pool, cr)[source]

This activity is meant to audit the allocation of responsibility of users to locations.

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

Calls complete and then sets updates the location_ids list for the user.

If the user is in the HCA or Nurse user groups the method will automatically assign every location child of the ones provided on top of them. If the user is not within those user groups, that will also be done when the location is not of ward usage.

Returns:True
Return type:bool
get_allocation_locations(*args, **kwargs)[source]

Get a list locations to allocate the user to :param cr: Cursor :param uid: User ID to perform operation with :param allocation_obj: The activity data ref from a user responsibility allocation :param context: Odoo context :return: list of location ids