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.

1

Create view without model, only with buttons and text

By
Jesús Hernández Gormaz
on 6/23/14, 7:48 AM 1,434 views

Hi, I'm trying create a view for show a text and buttons, but in all examples I look that use models, ¿is possible create a view without models for show text and buttons?

What are you trying to do? Why don't you want no model? Please give more information for further help.

Jesús Hernández Gormaz
on 6/23/14, 9:44 AM

Why I need in a view first show a text and in other view use a model, then, I need a view without model and other with model, the problem is view without model

Jesús Hernández Gormaz
on 6/23/14, 9:45 AM
0

HiAgustin Cortes, I try with

    <record model="ir.ui.view" id="view_planificador_text">
        <field name="name">view_planificador_text</field>
    </record>

and with:

    <record model="ir.ui.view" id="view_planificador_text">
    </record>

and with:

    <record model="ir.ui.view" id="view_planificador_text">
        <field name="name">view_planificador_text</field>
        <field name="arch" type="xml">
            <label string="Test"/>
        </field>
    </record>

but it cause error in server, how is a view with a text and a button?

0
agustin cortes
On 6/23/14, 10:13 AM

Yes, its posible to create a view without a model.

You can create a view, call that view from the menu and in the action of the buttons triger the other action view.

Here you'll find all the documentation:

https://doc.openerp.com/trunk/server/03_module_dev_03/

I explain myself a little better. You have to create an object, but must be an empty object. Because every view its asosiated with a object. Then you have tu create a menu item, with an action. That action could only have a form view. There is where you put your text and button. The action of that button is call other action to view the other tree or form

agustin cortes
on 6/25/14, 9:48 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

2 follower(s)

Stats

Asked: 6/23/14, 7:48 AM
Seen: 1434 times
Last updated: 3/16/15, 8:10 AM