Import different currencies

Hello, let’s assume my company is located in a EUR region and I want to import items that I need to pay in USD. I put an exchange rate, created a purchase order and a purchase receipt, and everything works. But when I submit an invoice, I get the message : Party Account Creditors - SIIM currency (MAD) and document currency (USD) should be same.