Error while creating or viewing 'Opportunity'

I’m having the same issue, just upgraded from v6.27 (with a ton of errors btw).

Also when I click on Supplier Quotation this appears:

Warning: Unable to find prevdoc_docname in any table related to Supplier Quotation

This post also mentions the same problem: