← Back to team overview

openerp-india team mailing list archive

[Bug 1098587] Re: act_window - src_model, res_model cannot be validated!!

 

penerp/6.1/src/openerp-obs-addons/openacademy/wizard/create_attendee_view.xml:5: 
<record model="ir.actions.act_window" id="create_attendee_wizard_action">
		<field name="name">Add attendee</field>
		<field name="res_model">openacademy.create.attendee.wizard</field>
		<field name="view_type">form</field>
		<field name="view_mode">form</field>
		<field name="target">new</field>
</record>
Traceback (most recent call last):
  File "/srv/openerp/6.1/src/openobject-server/openerp/tools/convert.py", line 890, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/srv/openerp/6.1/src/openobject-server/openerp/tools/convert.py", line 857, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/srv/openerp/6.1/src/openobject-server/openerp/addons/base/ir/ir_model.py", line 744, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py", line 4231, in create
    self._validate(cr, user, [id_new], context)
  File "/srv/openerp/6.1/src/openobject-server/openerp/osv/orm.py", line 1466, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Ha ocurrido un error mientras se validaban los campo(s) res_model,src_model: Nombre de modelo no v\xe1lido en la definici\xf3n de acci\xf3n.')
2013-01-11 18:15:16,104 5774 ERROR cofrasa openerp.netsvc: ValidateError
Ha ocurrido un error mientras se validaban los campo(s) res_model,src_model: Nombre de modelo no válido en la definición de acción.
2013-01-11 18:15:16,105 5774 INFO cofrasa werkzeug: 127.0.0.1 - - [11/Jan/2013 18:15:16] "POST /web/dataset/call_button HTTP/1.1" 200 -
2013-01-11 18:19:24,848 5774 INFO ? werkzeug: 127.0.0.1 - - [11/Jan/2013 18:19:24] "POST /web/session/eval_domain_and_context HTTP/1.1" 200 -

This is my tail... I put up something wrong...

This is what is wrong

<record model="ir.actions.act_window" id="create_attendee_wizard_action">
		<field name="name">Add attendee</field>
		<field name="res_model">openacademy.create.attendee.wizard</field>
		<field name="view_type">form</field>
		<field name="view_mode">form</field>
		<field name="target">new</field>
</record>

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1098587

Title:
  act_window - src_model, res_model cannot be validated!!

Status in OpenERP Server:
  New

Bug description:
  <act_window name="Add Attendees"
  			src_model="openacademy.session"
  			res_model="openaademy.create.attendee.wizard"
  			id="session_create_attendee_wizard"
  			view_mode="form"
  			key2="client_action_multi"
  			target="new"/>

  Hello Everybody!!

  I have an Issue with this action... I can not install my OpenAcademy
  Module because of this.

  I don't know if I have to give you more code to check what is wrong with it.
  Could you please tell me what am I doing wrong?

  Regards!

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1098587/+subscriptions


References