I created a new custom model and added it to a menu. Now I can see the list view, but it contains only one of the fields - and a relatively unimportant one. How can I change the list view, so that other fields are show as well?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
1
Odpovědět
12018
Zobrazení
Hello,
You have to create a tree_view for your model.
default one is like this:
<?xml version="1.0"?>
<tree string="My view">
<field name="name"/>
</tree>
just update the default one by adding fields you need:
<?xml version="1.0"?>
<tree string="My view">
<field name="name"/>
<field name="my_first_field"/>
<field name="one_other"/>
</tree>
To do this, enter developper mode
got to your list view, and click on upper left selection box and choose "Edit TreeView"
You will see this popup:
enter name, model and change list of fields you want to have.
Thanks, this works like a charm.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
2
čvc 23
|
6230 | ||
|
1
bře 21
|
4492 | ||
|
2
bře 22
|
2478 | ||
|
2
bře 25
|
665 | ||
|
2
dub 24
|
1187 |