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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
To add view without model,we must specify view type.
Try something like
<record id="view_id_something" model="ir.ui.view">
<field name="name">view.namefield>
<field name="type">qwebfield>
<field name="arch" type="xml">
<div>
...
div>
field>
record>
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
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?
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
Select multiple elements with XPath
Đã xử lý
|
|
5
thg 8 24
|
46627 | |
|
2
thg 4 24
|
2549 | ||
|
3
thg 6 23
|
5775 | ||
|
2
thg 6 23
|
4719 | ||
|
1
thg 3 23
|
2841 |
What are you trying to do? Why don't you want no model? Please give more information for further help.
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