[FIX]Fixed some traceback and error in accounting new api.

Fixed follwing tracebacks:
Fixed traceback In journal items form view
  -> click on Reconcile Entries from More menu.
  -> click on Post Journal Entries from More menu then click on Approve.
Fixed ProgrammingError: relation report_stock_lines_date does not exist In Reporting Latest Inventories &amp; Moves.