Odoo Help

Welcome!

This community 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.

0

relation "ir_ui_view" does not exist

By
jignasha royala
on 3/29/16, 3:02 AM 338 views

plz anybody help me for solve this problem


:56:36,931 5960 WARNING mydb_event openerp.modules.loading: invalid module names, ignored: website_event_broadcas

2016-03-29 06:56:36,967 5960 INFO mydb_event openerp.sql_db: Programming error: relation "ir_ui_view" does not exist

LINE 2: FROM ir_ui_view v

^

, in query SELECT max(v.id)

FROM ir_ui_view v

LEFT JOIN ir_model_data md ON (md.model = 'ir.ui.view' AND md.res_id = v.id)

WHERE md.module IS NULL

AND v.model = %s

AND v.active = true

GROUP BY coalesce(v.inherit_id, v.id)

2016-03-29 06:56:36,968 5960 ERROR mydb_event openerp.modules.registry: Failed to load registry

Traceback (most recent call last):

File "/home/tiny/odoo/openerp/modules/registry.py", line 385, in new

openerp.modules.load_modules(registry._db, force_demo, status, update_module)

File "/home/tiny/odoo/openerp/modules/loading.py", line 399, in load_modules

if not Views._validate_custom_views(cr, SUPERUSER_ID, model):

File "/home/tiny/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/home/tiny/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1159, in _validate_custom_views

""", (model,))

File "/home/tiny/odoo/openerp/sql_db.py", line 139, in wrapper

return f(self, *args, **kwargs)

File "/home/tiny/odoo/openerp/sql_db.py", line 218, in execute

res = self._obj.execute(query, params)

ProgrammingError: relation "ir_ui_view" does not exist

LINE 2: FROM ir_ui_view v

^

2016-03-29 06:56:36,970 5960 CRITICAL mydb_event openerp.service.server: Failed to initialize database `mydb_event`.

Traceback (most recent call last):

File "/home/tiny/odoo/openerp/service/server.py", line 885, in preload_registries

registry = RegistryManager.new(dbname, update_module=update_module)

File "/home/tiny/odoo/openerp/modules/registry.py", line 385, in new

openerp.modules.load_modules(registry._db, force_demo, status, update_module)

File "/home/tiny/odoo/openerp/modules/loading.py", line 399, in load_modules

if not Views._validate_custom_views(cr, SUPERUSER_ID, model):

File "/home/tiny/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/home/tiny/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1159, in _validate_custom_views

""", (model,))

File "/home/tiny/odoo/openerp/sql_db.py", line 139, in wrapper

return f(self, *args, **kwargs)

File "/home/tiny/odoo/openerp/sql_db.py", line 218, in execute

res = self._obj.execute(query, params)

ProgrammingError: relation "ir_ui_view" does not exist

LINE 2: FROM ir_ui_view v

^

^[[1;2A^[[1;2A^[[1;2A^[[1;2A^[[1;2A^[[1;2A^[[1;2A^[[1;2A^[[1;2A^[[1;2A^[[1;2A^[[1;2A^[[1;2A^[[1;2A^[[1;2elf, *args, **kwargs)

File "/home/tiny/odoo/openerp/sql_db.py", line 218, in execute

res = self._obj.execute(query, params)

ProgrammingError: relation "ir_ui_view" does not exist

LINE 2: FROM ir_ui_view v

^

2016-03-29 06:56:36,970 5960 CRITICAL mydb_event openerp.service.server: Failed to initialize database `mydb_event`.

Traceback (most recent call last):

File "/home/tiny/odoo/openerp/service/server.py", line 885, in preload_registries

registry = RegistryManager.new(dbname, update_module=update_module)

File "/home/tiny/odoo/openerp/modules/registry.py", line 385, in new

openerp.modules.load_modules(registry._db, force_demo, status, update_module)

File "/home/tiny/odoo/openerp/modules/loading.py", line 399, in load_modules

if not Views._validate_custom_views(cr, SUPERUSER_ID, model):

File "/home/tiny/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/home/tiny/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1159, in _validate_custom_views

""", (model,))

File "/home/tiny/odoo/openerp/sql_db.py", line 139, in wrapper

return f(self, *args, **kwargs)

File "/home/tiny/odoo/openerp/sql_db.py", line 218, in execute

res = self._obj.execute(query, params)

ProgrammingError: relation "ir_ui_view" does not exist

LINE 2: FROM ir_ui_view v





my View.xml is like that



<record model="ir.ui.view" id="wizard_form_view">

<field name="name">wizard.form</field>

<field name="model">website_event_broadcas.wizard</field>

<field name="arch" type="xml">

<form string="Add Attendees">

<group>

<field name="stream_key"/>

<field name="stream_title"/>

<field name="vedio_format"/>

</group>

<footer>

<button name="Subscribe" type="submit" string="Subscribe" class="oe_highlight"/>

or

<button special="Cancel" string="Cancel"/>

</footer>

</form>

</field>

</record>

<record id="action_event_confirm" model="ir.actions.act_window">

<field name="name">Event Confirmation</field>

<field name="type">ir.action.act_window</field>

<field name="res_model">website_event_broadcas.wizard</field>

<field name="view_type">form</field>

<field name="view_mode">form</field>

<field name="view_id" ref="wizard_form_view"/>

<field name="target">new</field>

</record>

<record id="event_form_view_inherit" model="ir.ui.view">

<field name="name">event.form.view.inherit</field>

<field name="model">event.event</field>

<field name="inherit_id" ref="event.view_event_form"/>

<field name="arch" type="xml">

<xpath expr="/form/sheet/group[@name='main_field_group']/group/field[@name='date_tz']" position="after">

<field name="is_live"/>

<button name="%(action_event_confirm)d"

type="action" string="livestream Details" attrs="{'invisible': [('is_live', '=', False)]}"></button>

</xpath>

</field>

</record>

Hello, Please post your code. I think, error arise from .xml file.

Jignesh Mehta
on 3/29/16, 3:43 AM
i post my xml file

On Tue, Mar 29, 2016 at 1:13 PM, Jignesh Mehta <mj.jignesh@gmail.com> wrote:

Hello, Please post your code. I think, error arise from .xml file.


Sent by Odoo S.A. using Odoo

jignasha royala
on 3/29/16, 4:05 AM

Hello, model _name is like website_event_broadcas.wizard ?

Jignesh Mehta
on 3/29/16, 5:13 AM
yes

On Tue, Mar 29, 2016 at 2:43 PM, Jignesh Mehta <mj.jignesh@gmail.com> wrote:

Hello, model _name is like website_event_broadcas.wizard ?


Sent by Odoo S.A. using Odoo

jignasha royala
on 3/29/16, 5:16 AM

Either create new db or upgrade all module like -u all.

Jignesh Mehta
on 3/29/16, 6:13 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/29/16, 3:02 AM
Seen: 338 times
Last updated: 3/29/16, 5:16 AM