I have inherited res_partner class and added one field type of boolean in Installed Module. I have not added new created field in view.
Now i am going to restart server & reload page then i want to upgrade module.
But on reload page i got error:
column res_partner.rtpname does not exist.
It should not come on reload page & let m upgrade module. Same scenario if i follow for other object then will not get error only for res_partner getting error.
Thanks for reply.
Yes i know this. I have to forcefully update module from command line. but the question is that for any other module if i inherited like for product.product or product.template in installed module then no need to update from commnad line. You can reload & then update from Settings -> Installed Modules.
Thanks & Regards,
I guess you still getting problem. Because as per my knowledge,
when you add any field in res.partner model, you need to update your module from command line.
like go to terminal and run,
- python openerp-server --update=[ here your module in which res.partner model is inherited. ]
By updating module from command line, your problem will be solved and that column will be added into ir.model.fields & db table too.
Let me know if still you are getting problem,
Reason behind this behaviour :
The reason of this should be ( As per my point of view & thinking) : When you add any field in res.partner class and restart Odoo, at that time somewhere Odoo might be doing browse of particular uid. ( You know, res.user class is attached to res.partner from V7 onwards. )
Now, in .py file there is column found but due to Odoo has did browse of record before update the module, it will not able to find that column in res_partner table.
For example, delete any column from res_partner table and then do browse of that partner record. You will find the same error which you are getting at the time of update.
Technically this should be the reason behind this.
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
|Asked: 7/25/14, 12:55 AM|
|Seen: 1634 times|
|Last updated: 3/16/15, 8:10 AM|