Warehouse Restriction issue

When i set a default warehouse to a user from user permission manager. below error is popping up when am trying to create purchase or sales invoice. anyone else facing the same issue?