← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 689538] Re: [6.0-rc1] Tools.convert error when creating new base

 

So, I just copy the new server, addons and extra-addons to my server. I
then launched my server with the option update=all.

I then create a new database with the following options (using the web
client) :

-default langage  : french (ch)
- load demonstration data : yes
- Interface : extended
- default currency : CHF

I then choosed to install all applications (14)  except all the
industry applications :

When I click on install, after a while, I get the following error on the
server :


[2010-12-13 10:52:54,177][mwp_08] INFO:i18n:loading /usr/local/lib/python2.6/dist-packages/openerp-server/addons/board/i18n/fr.po
[2010-12-13 10:52:54,746][mwp_08] INFO:init:module marketing: no quality certificate
[2010-12-13 10:52:54,746][mwp_08] INFO:init:module marketing: loading security/marketing_security.xml
[2010-12-13 10:52:54,770][mwp_08] INFO:init:module marketing: loading security/ir.model.access.csv
[2010-12-13 10:52:54,791][mwp_08] INFO:init:module marketing: loading marketing_view.xml
[2010-12-13 10:52:54,820][mwp_08] ERROR:tools.convert.xml_import:Parse error in /usr/local/lib/python2.6/dist-packages/openerp-server/addons/marketing/marketing_view.xml:40:
<record id="action_marketing_installer" model="ir.actions.act_window">
            <field name="name">Marketing Applications Configuration</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">marketing.installer</field>
<!--            <field name="view_id" ref="view_marketing_installer"/> -->
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>
[2010-12-13 10:52:54,821][mwp_08] DEBUG_RPC:exception:u'warning -- ValidateError\n\nError occurred while validating the field(s) res_model,src_model: Invalid model name in the action definition.'
[2010-12-13 10:52:54,821][mwp_08] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/netrpc_server.py", line 70, in run
    result = self.dispatch(msg[0], msg[1], msg[2:])
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 499, in dispatch
    raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException


And on the web :

[13/Dec/2010:10:52:54] HTTP Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_expose.py", line 191, in func_wrapper
    res = func(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/controllers/_root.py", line 78, in default
    return request.handler()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/utils.py", line 124, in wrapper
    return fn(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_expose.py", line 191, in func_wrapper
    res = func(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_validate.py", line 88, in func_wrapper
    return func(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_validate.py", line 105, in func_wrapper
    return func(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/form.py", line 426, in save
    res = self.button_action(params)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/form.py", line 556, in button_action
    return self.BUTTON_ACTIONS_BY_BTYPE[btype](self, button_name, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/form.py", line 507, in button_action_object
    res = rpc.session.execute('object', 'execute', model, name, ids, ctx)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/rpc.py", line 359, in execute
    return self.gateway.execute(obj, method, *args)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/rpc.py", line 155, in execute
    return self.__execute(obj, method, args)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/rpc.py", line 137, in __execute
    common.warning(err.data)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/utils/common.py", line 77, in warning
    raise TinyWarning(message=msg, title=title or _("Warning"))
TinyWarning: Error occurred while validating the field(s) res_model,src_model: Invalid model name in the action definition.

[13/Dec/2010:10:52:54] HTTP
Request Headers:
  ACCEPT: */*
  Content-Type: application/x-www-form-urlencoded
  REFERER: http://192.168.100.18:8080/openerp/execute?action=%7B%22view_mode%22%3A+%22form%22%2C+%22target%22%3A+%22new%22%2C+%22view_type%22%3A+%22form%22%2C+%22res_model%22%3A+%22base.setup.installer%22%2C+%22view_id%22%3A+%5B173%5D%2C+%22type%22%3A+%22ir.actions.act_window%22%2C+%22opened%22%3A+true%7D&data=%7B%22ids%22%3A+%5B1%5D%2C+%22context%22%3A+%7B%7D%7D
  HOST: 192.168.100.18:8080
  CACHE-CONTROL: no-cache
  X-REQUESTED-WITH: XMLHttpRequest
  Content-Length: 22091
  USER-AGENT: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
  CONNECTION: Keep-Alive
  COOKIE: session_id=5e55add5848c1bb675b375b116951fb908d872a9
  Remote-Addr: 192.168.100.6
  ACCEPT-LANGUAGE: fr-ch
  ACCEPT-ENCODING: gzip, deflate
192.168.100.6 - - [13/Dec/2010:10:52:54] "POST /openerp/form/save?_terp_button%2Fname=action_next&_terp_button%2Fbtype=object&_terp_button%2Fmodel=base.setup.installer&_terp_button%2Fid= HTTP/1.1" 500 1895 "http://192.168.100.18:8080/openerp/execute?action=%7B%22view_mode%22%3A+%22form%22%2C+%22target%22%3A+%22new%22%2C+%22view_type%22%3A+%22form%22%2C+%22res_model%22%3A+%22base.setup.installer%22%2C+%22view_id%22%3A+%5B173%5D%2C+%22type%22%3A+%22ir.actions.act_window%22%2C+%22opened%22%3A+true%7D&data=%7B%22ids%22%3A+%5B1%5D%2C+%22context%22%3A+%7B%7D%7D"; "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/689538

Title:
  [6.0-rc1] Tools.convert error when creating new base

Status in OpenObject Addons Modules:
  Incomplete

Bug description:
  Hello,

I just tried to create a new base with the updated code of this morning and here's the error  I get ;

on the display : 

Warning : Error occured while validating the field(sO res_model, src_model: Invalid model name in the action defintion

and on the server :

[2010-12-13 09:17:11,785][mwp_06] ERROR:tools.convert.xml_import:Parse error in /usr/local/lib/python2.6/dist-packages/openerp-server/addons/marketing/marketing_view.xml:40:
<record id="action_marketing_installer" model="ir.actions.act_window">
            <field name="name">Marketing Applications Configuration</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">marketing.installer</field>
            <field name="view_id" ref="view_marketing_installer"/>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>
[2010-12-13 09:17:11,786][mwp_06] DEBUG_RPC:exception:u'warning -- ValidateError\n\nError occurred while validating the field(s) res_model,src_model: Invalid model name in the action definition.'
[2010-12-13 09:17:11,786][mwp_06] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/netrpc_server.py", line 70, in run
    result = self.dispatch(msg[0], msg[1], msg[2:])
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 499, in dispatch
    raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException





References