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

module installation.

By
Joe Echavarria
on 10/9/14, 3:07 PM 870 views

Hello, 

  I am running OpenERP 7.0-20140622-231040 and i just created a module and put the files in the location , the name of the module is  VetClinic, but when i search for the module i can not find it.   It does not appears as a module available for installation.     What am i doing wrong ? , it is well located ? 

      C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\my_addons

      C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\my_addons\vetclinic, 

 

Regards,

 

 

0
Bart Criel
On 10/9/14, 3:25 PM

Here's what I think you should do:

  • Perform an update of the module list: Settings - Apps - Update Module List.
  • Go to Modules, but remove the 'Installed' filter in the top right box.
  • Change to List view
  • Sort the apps by Technical name
  • See if you find your module, and install it.

 

Nice, i was able to see the module and try to install it. When installint it i get the below error : OpenERP Server Error Client Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\http.py", line 204, in dispatch File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\controllers\main.py", line 1132, in call_button File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\controllers\main.py", line 1120, in _call_kw File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\session.py", line 42, in proxy File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\session.py", line 30, in proxy_method File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\session.py", line 103, in send Server Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\session.py", line 89, in send File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\netsvc.py", line 296, in dispatch_rpc File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\service\web_services.py", line 626, in dispatch File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 190, in execute_kw File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 132, in wrapper File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 199, in execute File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 187, in execute_cr File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\base\module\module.py", line 426, in button_immediate_install File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\base\module\module.py", line 477, in _button_immediate_function File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\pooler.py", line 39, in restart_pool File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\registry.py", line 233, in new File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\loading.py", line 354, in load_modules File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\loading.py", line 256, in load_marked_modules File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\loading.py", line 159, in load_module_graph File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\module.py", line 405, in load_openerp_module File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\module.py", line 133, in load_module File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\vetclinic\__init__.py", line 1, in File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\vetclinic\vetclinic.py", line 3, in AttributeError: 'module' object has no attribute 'model'

EC & Asociados, S. R. L., Joe Echavarria
on 10/9/14, 3:47 PM

That looks like an error in your module. Did you test it already? There's some very useful information in https://www.odoo.com/forum/help-1/question/how-i-can-create-module-openerp-7-16336

Bart Criel
on 10/9/14, 3:55 PM
No, i do not know how to test it.

2014-10-09 15:55 GMT-04:00 Bart Criel <bart5@mail.odoo.com>:

That looks like an error in your module. Did you test it already? There's some very useful information in https://www.odoo.com/forum/help-1/question/how-i-can-create-module-openerp-7-16336

--
Bart Criel
Sent by Odoo Inc. using Odoo about Forum Post False

EC & Asociados, S. R. L., Joe Echavarria
on 10/9/14, 4:00 PM

Below are the contents of the files. Maybe you might see the mistake. __init__.py import vetclinic __openerp__.py { 'name' : 'Vet Clinic', 'version': '1.0', 'description': """ Vet Clinic Application - List of Animals - List of Breeds - Create appointments """, 'author' : ' Greg', 'websute' : 'www.mysite.com', 'depends' :['base_setup'], 'data' : ['vetclinic_view.xml'], 'demo' : [], 'installable' : True, 'auto_install' : False, } vetclinic.py from osv import osv, fields class vetclinic_animal(osv.model): _name = "vetclinic.animal" _columns = { 'name':fields.char('Name',size=64), 'birthdate' : fields.date('Birth Date'), } vetclinic_animal() ##optional in version 7 vetclinic_view.xml Animals vetclinic.animalform tree,form

Click create to add a new animal record

EC & Asociados, S. R. L., Joe Echavarria
on 10/9/14, 4:06 PM

I am not so good at this but I do notice that you misspelled "website" as "websute". It might cause an error.

Robert D Winchester
on 10/9/14, 10:36 PM
0
Robert D Winchester
On 10/9/14, 4:11 PM

And don't forget to look at the last line of the traceback for a hint where the problem is:

File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\vetclinic\vetclinic.py", line 3, in <module> AttributeError: 'module' object has no attribute 'model'

So the error is manifesting in line 3 of vetclinic.py.

Below is the content of the file. I am just learning to create modules and i copied from a tutorial i found. can you tell where the error is ? from osv import osv, fields class vetclinic_animal(osv.model): _name = "vetclinic.animal" _columns = { 'name':fields.char('Name',size=64), 'birthdate' : fields.date('Birth Date'), } vetclinic_animal() ##optional in version 7

EC & Asociados, S. R. L., Joe Echavarria
on 10/9/14, 4:18 PM
0
Joe Echavarria
On 10/9/14, 3:50 PM

Nice, thanks, 

I was able to see the module , but when trying to install it i get this error. 

OpenERP Server Error

Client Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\http.py", line 204, in dispatch File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\controllers\main.py", line 1132, in call_button File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\controllers\main.py", line 1120, in _call_kw File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\session.py", line 42, in proxy File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\session.py", line 30, in proxy_method File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\session.py", line 103, in send

Server Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\session.py", line 89, in send File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\netsvc.py", line 296, in dispatch_rpc File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\service\web_services.py", line 626, in dispatch File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 190, in execute_kw File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 132, in wrapper File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 199, in execute File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\osv\osv.py", line 187, in execute_cr File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\base\module\module.py", line 426, in button_immediate_install File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\base\module\module.py", line 477, in _button_immediate_function File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\pooler.py", line 39, in restart_pool File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\registry.py", line 233, in new File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\loading.py", line 354, in load_modules File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\loading.py", line 256, in load_marked_modules File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\loading.py", line 159, in load_module_graph File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\module.py", line 405, in load_openerp_module File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\.\openerp\modules\module.py", line 133, in load_module File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\vetclinic\__init__.py", line 1, in <module> File "C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\vetclinic\vetclinic.py", line 3, in <module> AttributeError: 'module' object has no attribute 'model'

 

 

 

this is a very good example to show that there should be a way to post code properly in this forum.

gunnar
on 10/9/14, 7:01 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: 10/9/14, 3:07 PM
Seen: 870 times
Last updated: 3/16/15, 8:10 AM