Oregon resident with a K-1 (1120S) from California. Is the tax credit request in Oregon or California?

I've received a taxable K-1 from an SCorp.
I've filed the amount in both Oregon (my home state), and on a non-resident California return.

The laws between Oregon and California are not clear to me.

The credit to prevent double-taxation is normally given on the home state return, but I've read some advice that says when it's between California and Oregon, the tax credit should be on the California return.

Which is it?