Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5964 Lượt xem

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)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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.

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
6
thg 9 24
51916
2
thg 6 20
19706
0
thg 3 16
5693
0
thg 3 15
4454
1
thg 3 15
4501