Yes, you are right. In Oct 2023 they said they won't do military business with Israel. But in 2025:
However, on April 17 as Spaniards geared up for the Easter holiday weekend, the government filed paperwork confirming the deal on the government tenders website. The purchase, worth 6.6 million euros ($7.53 million), includes the acquisition of more than 15 million 9-mm rounds from Israel's IMI Systems, owned by Elbit Systems (ESLT.TA), opens new tab and represented in Spain by Guardian LTD Israel.
It's only only after ~~pressure~~ threats that the government decided to do as they had pledged in 2023:
The decision drew a sharp rebuke on Wednesday from coalition partner Sumar, with one of the groups within Sumar, Izquierda Unida, threatening to withdraw from the minority coalition government.
For more on this, I suppose we have to wait for part 3 of this three-part series articles