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.

1

how to move a modules inside the /opt/openerp folder?

By
gunnar
on 6/24/14, 2:22 AM 1,326 views

I wanted to use product_custom_attributes Module and found it on launchpad bundled with about 30 different modules here https://launchpad.net/openerp-product-attributes
downloaded them all by lp:openerp-product-attributes from inside of my /opt/openerp/ocb7.0 folder and added /opt/openerp/ocb7.0/openerp-product-attribtues in my 'addons path' in out /etc/ocb-7.0.conf file

this works fine and I can install all these modules.

But actually I have now about 7 folders for modules inside of our /opt/openerp/ocb7.0 folder. I though that is a little too much and would like to clean that up. Actually my idea was to do the downloading (maybe not the quite correct term) from github or launchpad into my home folder and then only copy the modules I want to use into the regular 'addons' folder. In order to do the cleanup I tried:

  1. sudo service ocbserver-7,0 stop   (not sure whether that is really necessary)
  2. copied the two modules (base_custom_attributes & product_custom_attributes) into the 'ocb-addons' folder
  3. did a   chown -R openerp:openerp   ocb-addons (to make them accesible)
  4. moved the folder 'openerp-product-attributes' into my /home
  5. deleted the /opt/openerp/ocb7.0/openerp-product-attribtues from the 'addons path' in my config file
  6. restarted the ocb-server
  7. updated my Modules list

as a result I can't open my products any more with the following error:

View error

Can't find field 'categ_ids' in the following view parts composing the view of object model 'product.product':
* product.normal.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model


un- and reinstalling the two modules does not help

any idea how to fix this? I did the same procedure described above sucessfully with another module (which is a custom made module that adds an extra field for an employee)

0

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 6/24/14, 3:41 AM

Most likely you use the home directory of some user that is not the same as the OpenERP instance is running under. Check under /opt/openerp which user has access to that directory.

The error you see is caused by OpenERP trying to update a module which it can't find in its addons path. Uninstalling will only work if the actual module is still available when uninstalling. Why this is I don't know. 

Personally I have found it to be a good idea to make an /opt/openerp/custom_modules directory and download all the custom modules there. Give it the right access rights, put the directory in the addons path and you should be good to go.

I still have those modules in a folder that can be accessed by OpenERP. It just is not the same folder it has been once I installed these modules. I only access modules inside of /opt/openerp/... and I have made sure that the access rights are good . I was suspicious about access rights and I am pretty sure they are good (same as all other modules which install and work fine). Will look at this once more though.

gunnar
on 6/24/14, 5:33 AM

seems my problem was that there was a third module from the /opt/openerp/ocb7.0/openerp-product-attribtues folder installed which I wasn't aware of. This caused my problem because this wasn't available after removing this folder from the 'addons' path

gunnar
on 6/24/14, 10:43 PM

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

1 follower(s)

Stats

Asked: 6/24/14, 2:22 AM
Seen: 1326 times
Last updated: 2/8/16, 11:23 AM