[FIX]Fixed some traceback and error.

FIxed traceback for Jornalitems ,supplier,customer creation and period_ids error in configration.