Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

How can a user add a "Group by" in a list view?

Naroči se

Get notified when there's activity on this post

This question has been flagged
v7listviewgroup
2 Odgovori
17839 Prikazi
Avatar
Gilles Lehoux

How can a user add a new "Group by" in a list view? By user I mean someone who is not a programmer or admin. If the admin can do it then how?

For example, when viewing the list of products, how can a user add "Group by manufacturer". This is not currently an option under "Group by".

This is not a question about filters. There is a way to create an advanced filter and save it. I'm asking for the same functionality but for "Group by".

4
Avatar
Opusti
Avatar
Ray Carnes
Best Answer

Group By... options are created in the XML definition of the Search view.


First, collect some information you will need:

  • Make sure you are in Developer mode (1) and your user is in the group Technical Features (2)

  • Navigate the menu sequence

    Sales -> Customers

  • From the Debug View# menu, select Edit Search View

  • In the window that pops up, you can see the definition of the base view, including the <group> tag at the bottom containing Salesperson, Company and Country. (Technically you could edit this view, but the next time you upgraded the module, or upgraded the software, your edits would be overwritten)

  • Note the name of this view - res.partner.select - and the object is is defined for - res.partner - and close the window.


Now, you need to make your own view that inherits the view you found and adds to it.

  • Navigate the menu sequence

    Settings -> User Interface -> Views

  • Find any Search view, open it and click Duplicate from the More menu.

  • Name the view. Something like custom.res.partner.groupbystate for example.

  • The Object is res.partner and the Inherited View is res.partner.select

  • Your XML will look like this:

<?xml version="1.0"?>

<filter string="Country" position="after">

<filter string="State" context="{'group_by': 'state_id'}"/>

</filter>

  • Save your new view

  • Navigate the menu sequence

    Sales -> Customers

  • Click Advanced Search to see the new Group by option


For more information:

(1) https://accounts.openerp.com/forum/Help-1/question/83/

(2) https://accounts.openerp.com/forum/Help-1/question/1276

10
Avatar
Opusti
Gilles Lehoux
Avtor

I wish I could give more up-votes. Terrific answer. Thank you.

Travis Waelbroeck

Great answer, Ray. It's worth noting that if you want to group by a custom field **on a report** that does not exist in the report model, you will have to add it. See my gist where I add a field to the Group by... options for the Sales Analysis Report. https://gist.github.com/travs-w/f75719c0c33488da874333ac36ff4fe1

Avatar
Cyril Gaspard (GEM)
Best Answer

Hi,

on the search box on the top right add you word to filter (the name of one of field displayed as a column in the tree or of table), you will have a list which propose you to do a search or a filter, choose filter, filter is done in the view, now you just have to save your filter to add it in the list, just click on the top right of the search box, on the right of "x" ( x is the button to delete your search), in section "personnal filter, give the name of filter and save just for you or for all users).

Bye

-2
Avatar
Opusti
Gilles Lehoux
Avtor

"Filter" and "Group by" are different. This is a question about "Group by".

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
List view by default v7.0
v7 listview
Avatar
Avatar
1
mar. 15
8946
How to extend "See own Leads" Group with a further rule for Partner object without getting Access Denied-Error when updating data
v7 group Access_Denied
Avatar
Avatar
1
feb. 17
5075
edit message in my group
v7 messages group
Avatar
Avatar
1
maj 15
4810
How can I group products on a sales quote?
v7 group sales_quote
Avatar
0
mar. 15
5659
how to have subtotals on quotations
v7 group sale.order.line
Avatar
Avatar
1
mar. 15
7972
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now