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.
I'm trying to inherit an Export controller on OpenERP v7.0. I've tried some suggestions found on the web but with no success. Could someone point me to the right direction cuz I can't find a problem with my code.
The code below is within my custom module and it gets loaded during server launch.
import openerp.addons.web.controllers.main as main class ExportFormatInherited(main.Export): _cp_path = "/web/export" @main.openerpweb.jsonrequest def get_fields(self, req, model, prefix='', parent_name= '', import_compat=True, parent_field_type=None, exclude=None): print 'inherited' super(ExportFormatInherited, self).get_fields(req, model, prefix, parent_name, import_compat, parent_field_type, exclude)
Python super() and the MRO !!!
Not seeing what's in your code and in your log, all i can say is:
You should read the following:
The problem was that there was no
static folder within my module. The absence of this folder meant that my module was not treated as "web addon". So I had defined a web controller but it was never registered because it eventually "was not in the web addon". This is tricky and unfortunately under documented. Be careful!
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/9/14, 8:31 AM|
|Seen: 4230 times|
|Last updated: 3/16/15, 8:10 AM|