Odoo Help


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.


How do I disable a module from command line?

on 2/15/14, 6:59 PM 3,627 views

It seems that something went wrong with my production OpenERP database, which I don't really know its cause. Here's the error I get:

2014-02-15 22:42:24,733 18124 ERROR mydatabase openerp.addons.base.ir.ir_ui_view: Can't render view project_issue.view_project_form_inherited for model: project.project
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_ui_view.py", line 126, in _check_render_view
    fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 2239, in fields_view_get
    arch=apply_view_inheritance(cr, user, source, sql_res['id']),
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 2197, in apply_view_inheritance
    source = apply_inheritance_specs(source, view_arch, view_id)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 2181, in apply_inheritance_specs
    raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 2074, in raise_view_error
    %  (child_view.xml_id, self._name, error_msg))
AttributeError: View definition error for inherited view 'project_issue.view_project_form_inherited' on model 'project.project': 
Element '<xpath expr="//page[@name="project_stages"]">' not found in parent view 'project.edit_project'
2014-02-15 22:42:24,739 18124 ERROR mydatabase openerp.tools.convert: Parse error in /usr/lib/pymodules/python2.7/openerp/addons/project_issue/project_issue_view.xml:302: 
<record id="view_project_form_inherited" model="ir.ui.view">
            <field name="name">project.project.form.inherited</field>
            <field name="model">project.project</field>
            <field name="inherit_id" ref="project.edit_project"/>
            <field name="arch" type="xml">
                <data><xpath expr="//div[@name="options_active"]" position="inside">
                    <field name="use_issues" class="oe_inline"/>
                    <label for="use_issues"/>
                <xpath expr="//div[@name="buttons"]" position="inside">
                    <button name="%(act_project_project_2_project_issue_all)d" string="Issues" type="action" attrs="{'invisible':[('use_issues','=', 0)]}"/>
                <xpath expr="//page[@name="project_stages"]" position="attributes">
                    <attribute name="attrs">{'invisible': [('use_tasks', '=', False),('use_issues','=',False)]}</attribute>
                <field name="priority" position="before">
                    <field name="project_escalation_id"/>
                <field name="alias_domain" position="after">
                    <label for="alias_model" class="oe_edit_only" string="creates"/><field name="alias_model" class="oe_edit_only oe_inline"/>

I think there's something wrong with project.project module, so I want to disable it, at least to start my production DB until further investigation

Does anyone have a solution? Or: Can someone guide me to at least disabling

P.S. I'm not much into postgres. So if the solution involves manipulating the DB via command line, I'd highly appreciate a step by step procedure

Qamar Soft
On 4/16/14, 6:35 AM

hello you can disable the module from database in the table ir_module_module set the state of project uninstalled

update ir_module_module set state='uninstalled' where name='project'

restart the server login make the module as installed to allow you to desinstall it

update ir_module_module set state='installed' where name='project'

hope that's help you


It has not worked!!! Keep avoiding login as administrator. Shows up 500 Internal error!!!

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

0 follower(s)


Asked: 2/15/14, 6:59 PM
Seen: 3627 times
Last updated: 9/23/16, 10:00 AM