Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Customers disapeard after backup-restore

By
Daniel Frey
on 2/10/14, 3:02 PM 1,532 views

Hi there

I backed up my database from a server to restore it locally, on exactly the same versions (7.0-20130903-231112). While the backup and restore process itself works without errors, I get the following "OpenERP Warning" when logging in for the first time:

"View error. Can't find field 'purchase_order_count' in the following view parts composing the view of object model 'res.partner': * res.partner.kanban.purchaseorder.inherit. Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model"

Clicking on the sales/customers I get the next "OpenERP Warning":

"View error. Can't find field 'purchase_order_count' in the following view parts composing the view of object model 'res.partner': * res.partner.kanban.purchaseorder.inherit. Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model"

The big problem is, that I cannot access my customers any more after the warning! Looking into the DB I stil see those customers in res_partner, so are restored.

Taking these warning comments serious, how can I find out what was customized and restore it in order to access my clients without warnings?

Cheers Daniel

0
NSC
On 2/11/14, 7:28 AM

Hi Daniel,

maybe I can help as sometimes, I have the same problem. Yesterday, it occured in the same case like in yours - after having imported a dumped database. I do not think that your customers disappeard, they can not simply be deplayed because of a view-related problem. Obviously, there is an inherited view structure of res.partner inside your database.

In my situation, this comes from my own inherited view structures for res.partner.tree. I do not know why this error occurs, but in my case, it is enough to comment the field mentioned in the error message, update my custom module, then uncomment it again and update my custom module once again.

Please let me know if you succeeded in doing like that.

Thanks for the hint NSC. I have found the corresponding location in Settings -> Technical -> Data Structure -> Models -> res.partner -> Views. There is a View named "res.partner.kanban.purchaseorder.inherit". But there is no way to comment the corresponding XML structure. Do you mean comment it in the source code of the purchase module? I am working with the standard modules only. I guess in my case it might be the second option "... some modules bringing those views are not compatible with your current data model". How to correct the data model then?

Daniel Frey
on 2/11/14, 11:05 AM

Daniel, could it be, that you updated your OEP to a newer revision after having created this database dump you imported? Maybe, this imported database is still related to an older revision with obsolete view structures? Go to modules management in settings, do an "'Update Modules" and see what happens...

NSC
on 2/12/14, 6:42 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 2/10/14, 3:02 PM
Seen: 1532 times
Last updated: 3/16/15, 8:10 AM