Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hello, I created an extending module which inherits "account.invoice": it adds two fields and shows them in the form view.
Everything works fine until i have to reboot Odoo service, which causes "500 Internal Server Error" after the refresh. I need to remove the module from addons folder, uninstall and reinstall it to make it work again.
# -*- coding: utf-8 -*-
from openerp import models, fields, api
_inherit = "account.invoice"
x_field1 = fields.Float(string="Field1")
x_field2 = fields.Float(string="Field2")
<record model="ir.ui.view" id="view_invoice_form">
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="amount_untaxed" position="before">
<field name="x_field1" readonly="True"/>
<field name="amount_untaxed" position="after">
I have made my module depend on product and the error is gone now.
So in your case try to depend your module from account.
I have exactly the same problem only with product.template
Does anybody have a solution?
The error message says:
../openerp/modules/registry.py ", line 102, in __getitem__ return self.models[model_name]
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/14/15, 3:26 AM|
|Seen: 1057 times|
|Last updated: 7/1/15, 12:16 PM|