If the part numbers ain't the same, then no, it won't work.
I've done gauge-cluster swaps in Toyota cars...it is a bit of a pain in the ass. Keep in mind, the newer bike may use COMPLETELY DIFFERENT signals as opposed to your 2007 bike.
You can venture into this field by taking the first step:
1. Get the wiring diagrams for both bikes.
2. Spend a weekend ignoring all your friends, family, girlfriend, fiance, wife, boyfriend, cat?
3. During this weekend, stock up on coffee/redbull.
4. Find the wiring diagrams in the shop manuals, assuming you were a good boy & bought those ahead of time. There are different wiring diagrams....California & the rest of the states, Euro, Japan etc
5. Trace & identify all wires, mark them with a piece of masking tape on which you write what they are individually.
6. You will need to find a donor 2012 cluster & it's corresponding plugs/pigtails.
7. Spend some time identifying all the wires of the 2012 cluster.
8. Now you will need to figure out what kind of signals drive the 2007 cluster, in particular what kind of signal waves/pulses.
9. You'll need to find out what kind of signals drive the 2012 cluster (same as point  up ^^^ there)....you may want stop right here. Spoiler alert: I suspect this is where your venture will end. From what I can tell is that many of the vital signals will not be compatible. You could spend the next couple weeks/months figuring out how to gender-bend all the incompatible signals to get them to work with the new bike's cluster. Your ECU may or may not like any of this & will either complain or not work at all. The situation here is that you may potentially end up soldering in so many resistors, diodes & all sorts of other electronics to get some sort of compatibility. I'm not even sure if you can get the 2012 cluster plugs & pigtails....this would require them to be cut off of a donor bike's harness....junkyard *maybe*, but that would mean you will ruin an otherwise perfectly fine wiring harness.
The times that I have done it in cars, it has always been "similar" generation cars. By "similar" generation I mean the pre-CANBUS spec automobile wiring/sensor standards.
You could go completely extreme and do a full engine/wiring/ECU/gauges swap, but you might be better off just buying the new bike at that point.