Oct 19, 2012

[SOLVED] openerp 6.1.1 cannot inherit view sale.view_order_form

few days ago, i work on inheritance some views, there are so many ways to do that, you can use inherit_id with ref="view_id_that_you_want_to_inherit", but there are some views must use different ways.

i need to show you basic concept of view management in openerp first,

1. every views has id, you can name it by yourself or just check on debug view mode, some test was use this XML ID



2. some views of your module will inherit view that has been changed by other module on that time, sometime you don't realize it.



from those pictures, you can see that so many module want to inherit view_order_form 

3.  every view has priority, you should add this property to make your view is still valid while it inherit by other module.

4. some view (parent view) are very complecated structures, even you use xpath or copy its structures, sometimes its not work.

 well, on my case, to inherit view_order_form with complicated structures, just add data tags ( <data> ) for your new fields. see this :




Read more ...

[SOLVED] openerp 6.1.1 "No handler found."

2 days working on this error, i do solved this error,

No handler found

message was store on wsgi/core.py on application function.


def application(environ, start_response):
    """ WSGI entry point."""

    # Try all handlers until one returns some result (i.e. not None).
    wsgi_handlers = [
        wsgi_xmlrpc_1,
        wsgi_xmlrpc,
        wsgi_jsonrpc,
        wsgi_xmlrpc_legacy,
        wsgi_webdav
        ] + module_handlers
    for handler in wsgi_handlers:
        result = handler(environ, start_response)
        if result is None:
            continue
        return result

    # We never returned from the loop.
    response = 'No handler found.\n'
    start_response('404 Not Found', [('Content-Type', 'text/plain'), ('Content-Length', str(len(response)))])
    return [response]

# The WSGI server, started by start_server(), stopped by stop_server().
httpd = None


Since all basic module was loaded on memory by proxing all processing, my first diagones pointed on basic-modules will all of its heritance.

Yes, thats true, i do big modification on sale, pricelist, etc... (because i can not inherit it perfectly).

because it will be loaded to memory, for all function should be have default values, even by None values.

on my case, i found one parameter which is none of default values :


def product_id_change(self, cr, uid, ids, pricelist, product, qty=0,
            uom=False, qty_uos=0, uos=False, name='', partner_id=False,
            lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False, base_location_id=1, context=None):

if i make


def product_id_change(self, cr, uid, ids, pricelist, product, qty=0,
            uom=False, qty_uos=0, uos=False, name='', partner_id=False,
            lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False, base_location_id, context=None):

then it will be "No handler found"

So: Always assign default value on your function parameters.
Read more ...

Oct 6, 2012

[SOLVED] OpenERP Cannot change the category of existing UoM


During change UOM Category on OpenERP, i got error that shown it can not change the value with the new one.

OpenERP Cannot change the category of existing UoM



the problem is on "category checking", i guess its needless, because while inserting new value, there is taken from combo-box option. You can see below :




here is my step to solved this
  • go to addons/product/product.py
  • comment or remove some script as shown below : 

commenting that, restart your server and everythings DONE.
Read more ...