Beans are an incomplete protein source, you have to add meat or cheese to it.
beans and a grain like rice supposedly together provide a complete protein, but that still doesn’t solve the B12 issue as B12 can be obtained in one’s diet only from consuming animal products ...