Set the type of view depreciated . Why?

Asked by Nhomar - Vauxoo

Hello .

Studying the new openerp view system i see:

 95 _logger.warning("Setting the `type` field is deprecated in the `ir.ui.view` model.")

on ./openerp/addons/base/ir/ir_ui_view.py

One Question, if define the type of view is depecated, and this feature is for avoid declarate twice a view and call it from any place i need.

How do i will affront this deal?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Nhomar - Vauxoo
Solved:
Last query:
Last reply:
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) said :
#1

The type is detected automatically based on the root node of the XML (or the inherited parent view)

Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#2

oOOOOOK.

Good Good Good!

Thanks Fabien.

Revision history for this message
Christian Alvarez Ponce (naitsir) said :
#3

I don't understand, is this an error?? or what?? how can I solve this??

for "root node of the XML" you refer to <?xml version="1.0" encoding="utf-8"?>
or <record model="ir.ui.view" id="xxxx">

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#4

Christian,

This is not an error, is a warning only.

There exists a really smart code now and it determines the type of view based on the root node.

Thanks.

Revision history for this message
Christian Alvarez Ponce (naitsir) said :
#5

thanks Serpent for your help, then I will stop worring about it :)

Regards.