[FIX] portal_sale: Fixed the TypeError when creating invoice from portal (Maintenance: 612591)