When retrieving e-mail from POP, this erros is logged: “Could not find Opportunity Type: Sales”.
E-mail account is related to sales and when a mail is retrieved from that account, it is supposed to be attached to Opportunity.
Notice that I have ERPNext localized to Spanish. I have realized that when I create an opportunity manually, I have to specify “Ventas” (“Sales” in Spanish) in the opportunity type. If I try to create the Opportunity from a Lead, the opportunity type combobox is filled with “Sales”. In that case, I have to change it to be “Ventas”.
This is a bug in the system, I think.