Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
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.
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,
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/25/14, 12:55 AM|
|Seen: 2701 times|
|Last updated: 3/16/15, 8:10 AM|