The rule is: your report all your income on your home state return, even the income earned out of state. You file a non-resident state return for the state you worked in and pay tax to that state. Your home state will give you a credit, or partial credit, for what you paid the non-resident state.
<<Your home state will give you a credit, or partial credit, for what you paid the non-resident state.>>
The above is the usual rule. However California and Oregon are "reverse credit" states. That means that your non-resident state (CA) will give you a credit for taxes paid to your resident state (OR), on income that is taxed by both states.
Income from work actually performed in CA is taxable by CA whether or not you are a CA resident. So you will have to file two returns next year.