Cuando llegó la cuenta, Pedro se hizo el de los panes y dijo que había olvidado su billetera.

[details=“English Translation”]When the bill arrived, Pedro pretended not to notice and said he had forgotten his wallet.
[/details]

(idiomatic, colloquial, El Salvador) to play the fool
Synonym: hacerse el tonto

https://en.m.wiktionary.org/wiki/hacerse_el_de_los_panes#Spanish

And, of course, hacerse el sueco.