Odoo Help


Keyerror/ Odoo crashes after app install. Where is the error?

on 2/12/15, 7:26 AM 1,760 views

I try to write my first App and it works as long as i don't restart the server. The window stays blank or i get an internal server error. Log says Key Error: mrp.repair.

Here is my code (shorted already for tracking the issue):


# -*- coding: utf-8 -*-
import controllers
import models
import mrp_repair_update


# -*- coding: utf-8 -*-
    'name': "mrp_repair_update",

    'summary': """
        Short (1 phrase/line) summary of the module's purpose, used as
        subtitle on modules listing or apps.openerp.com""",

    'description': """
        Long description of module's purpose

    'author': "G. S.",
    'website': "http://www.yourcompany.com",

    # Categories can be used to filter modules in modules listing
    # Check https://github.com/odoo/odoo/blob/master/openerp/addons/base/module/module_data.xml
    # for the full list
    'category': 'Uncategorized',
    'version': '0.1',

    # any module necessary for this one to work correctly
    'depends': ['base'],

    # always loaded
    'data': [
        # 'security/ir.model.access.csv',
    # only loaded in demonstration mode
    'demo': [


# -*- coding: utf-8 -*-

from openerp import fields, models

class mrp_repair_update(models.Model):
    _inherit = "mrp.repair"
    Kommission = fields.Char(string="Kommission", required=True)



<?xml version="1.0" encoding="UTF-8"?>
        <!-- Add instructor field to existing view -->
        <record model="ir.ui.view" id="mrp_repair_update_form">
            <field name="name">mrp_repair.mrp_repair_update</field>
            <field name="model">mrp.repair</field>
            <field name="inherit_id" ref="mrp_repair.view_repair_order_form"/>
            <field name="arch" type="xml">
                <notebook position="inside">
                    <page string="Base">
                            <field name="Kommission"/>


hey guido, Just add mrp_repair module to dependency module list of __openerp__.py file just like this, 'depends': ['base' , 'mrp_repair']

Mansi Kariya (mka)
on 2/12/15, 7:31 AM


| 6 5 7
Lodz, Poland

On 2/12/15, 7:31 AM

You change depends and try in __openerp__.py

'depends': ['base','mrp_repair'],

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/12/15, 7:26 AM
Seen: 1760 times
Last updated: 3/16/15, 8:10 AM