Siirry sisältöön
Odoo Menu
  • Kirjaudu sisään
  • Kokeile ilmaiseksi
  • Sovellukset
    Talous
    • Kirjanpito
    • Laskutus
    • Kulut
    • Datataulukot (BI)
    • Asiakirjat
    • Allekirjoita
    Myynti
    • CRM
    • Myynti
    • Kassajärjestelmä myymälään
    • Kassajärjestelmä ravintolaan
    • Tilaukset
    • Vuokraus
    Verkkosivut
    • Verkkosivun Rakennustyökalu
    • Verkkokauppa
    • Blogi
    • Foorumi
    • Livechat
    • Verkko-oppiminen
    Toimitusketju
    • Varastointi
    • Tuotanto
    • Tuotteen elinkaaren hallinta (PLM)
    • Ostot
    • Huolto
    • Laatu
    Henkilöstöhallinto
    • Työntekijät
    • Rekrytointi
    • Vapaat
    • Arvioinnit
    • Suositukset
    • Kuljetuskalusto
    Markkinointi
    • Somemarkkinointi
    • Sähköpostimarkkinointi
    • Tekstiviestimarkkinointi
    • Tapahtumat
    • Markkinoinnin automaatio
    • Kyselyt
    Palvelut
    • Projekti
    • Työaikakirjaukset
    • Kenttähuolto
    • Asiakaspalvelu
    • Suunnittelu
    • Ajanvaraukset
    Tuottavuus
    • Viestintä
    • Hyväksynnät
    • IoT
    • IP-puhe
    • Tietokirjasto
    • WhatsApp
    Kolmannen osapuolen sovellukset Odoo-Studio Odoo-Pilvialusta
  • Toimialat
    Vähittäiskauppa
    • Kirjakauppa
    • Vaatekauppa
    • Huonekaluliike
    • Ruokakauppa
    • Laitteistokauppa
    • Lelukauppa
    Ruoka & Majoitus
    • Baari ja Pubi
    • Ravintola
    • Pikaruoka
    • Majatalo
    • Juomien jakelija
    • Hotelli
    Kiinteistöt
    • Kiinteistönvälitystoimisto
    • Arkkitehtitoimisto
    • Rakentaminen
    • Kiinteistönhallinta
    • Puutarhanhoito
    • Kiinteistön omistajien yhdistys
    Konsultointi
    • Tilitoimisto
    • Odoo-kumppani
    • Markkinointitoimisto
    • Lakitoimisto
    • Osaajahankinta
    • Tilintarkastus & sertifiointi
    Tuotanto
    • Tekstiili
    • Metalli
    • Huonekalut
    • Ruoka
    • Panimo
    • Yrityslahjat
    Terveys & Liikunta
    • Urheiluseura
    • Silmälasiliike
    • Kuntokeskus
    • Hyvinvointialan ammattilaiset
    • Apteekki
    • Kampaamo
    Kaupat
    • Yleismies
    • IT-laitteisto & Tuki
    • Aurinkoenergiajärjestelmät
    • Suutari
    • Siivouspalvelut
    • LVI-palvelut
    Muut
    • Voittoa tavoittelematon järjestö
    • Ympäristötoimisto
    • Mainostaulujen vuokraus  
    • Valokuvaus
    • Leasing-pyörät
    • Ohjelmistojen jälleenmyyjä
    Selaa kaikkia toimialoja
  • Yhteisö
    Opi
    • Kurssit
    • Dokumentaatio
    • Todistukset
    • Koulutus
    • Blogi
    • Podcast
    Kannusta kouluttautumaan
    • Koulutusohjelmat
    • Scale Up! Liiketoimintapeli
    • Vieraile Odoolla
    Hanki ohjelmisto
    • Lataa
    • Vertaile versioita
    • Julkaisut
    Tee yhteistyötä
    • Github
    • Foorumi
    • Tapahtumat
    • Käännökset
    • Ryhdy kumppaniksi
    • Kumppanipalvelut
    • Rekisteröi tilitoimistosi
    Hanki palveluja
    • Löydä kumppani
    • Löydä kirjanpitäjä
    • Varaa asiantuntijatapaaminen
    • Implementaatiopalvelut
    • Asiakasreferenssit
    • Tuki
    • Versionkorotukset
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Varaa demo
  • Hinnoittelu
  • Asiakaspalvelu

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

  • CRM
  • e-Commerce
  • Kirjanpito
  • Varastointi
  • PoS
  • Projekti
  • MRP
All apps
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Kaikki kirjoitukset Ihmiset Merkit
Tunnisteet (Näytä kaikki)
odoo accounting v14 pos v15
Tietoa tästä foorumista
Apua

how does kanban work in the project app?

Tilaa

Saat ilmoituksen, kun tähän viestiin ilmaantuu aktiviteettia

Tämä kysymys on merkitty
projectmaintenancekanbancolumnsv15
2 Vastaukset
3818 Näkymät
Avatar
Wald Sin

in project app i can manage stages and select, for what projects will be generated stages columns in kanban


i want do the same in maintenance module by selecting teams in stages, but when i try use in maintenence kanban attribute "default_group_by" it uses all available values from field "stage_id". I try to use domain, rules, but it didnt help. How this mechanism works?


Please help, a try to solve this problem for 2 days.

0
Avatar
Hylkää
Wald Sin
Tekijä

@m-azzain
i just found solution. In app maintance in field 'stage_id' there was a parameter:
group_expand='_read_group_stage_ids'

and in this function programm chooses all stages.

At start i think, that it is default and try to fix this and do it like in project app. I feel so dumb now)

Now my problem i think is solved, thank you for trying to help.

Wald Sin
Tekijä

@odoo, @odoo_team
i cant delete my own mistake comment and answer to other reply, because CarmaError.
Can it be available for default?

Avatar
Wald Sin
Tekijä Paras vastaus

@m-azzain
i think its not that i need, i want to add in 'maintenance.team'  a field (many2many - available stages), and when i chooce for example columns "new", "in work", "ended", i want, that kanban show me just this columns for team, where i choose it. But problem is that kanban shows all available stages from that many2many field and i dont know, how to hide it.

in app "project" its already realized, for each project you can choose used stages, but i cant find it in code. Maybe this is some of js script there, i dont know.

0
Avatar
Hylkää
m-azzain

I think you are talking about fold
It is actually quite simple, you just need to have a fold field in the group_by model.

In the case of project module there is a fold field in 'project.project.stage' when you set it to true you will get the corresponding column folded.

but in your case, Many2many field, or even if it is One2Many, this can't be achieved

Wald Sin
Tekijä

@m-azzain
i just found solution. In app maintance in field 'stage_id' there was a parameter:
group_expand='_read_group_stage_ids'

and in this function programm chooses all stages.

At start i think, that it is default and try to fix this and do it like in project app. I feel so dumb now)

Now my problem i think is solved, thank you for trying to help.

m-azzain

You are welcome

m-azzain

@Wald Sin, You mentioning group_expand='_read_group_stage_ids' let me give it a review and found that it is the conditional to activate the fold field, so folding is actually works even with Many2many and One2Many.

Avatar
m-azzain
Paras vastaus

If I am correct the stage_id is in 'maintenance.request' and 'maintenance.request' is in 'maintenance.team'
If that the case, I think the problem is about how are you grouping your data
That is when you try to group the teams by stages you will end up with same team appear in many stages, because it has different requests in these stages.

but if you still want to group your team by this way, you need to have a stages field in the team model so that you used it for grouping

stages = fields.Many2many('practice.maintenance.stage', compute='_compute_team_stages', store=True)

@api.depends('request_ids.stage_id')
def _compute_team_stages(self):
for team in self:
team.stages = team.request_ids.stage_id

With regard to the kanban view you can use the above defined field(stages) as a value for default_group_by so that kanban will use it for grouping by default. or you can put it in the search view as a filter in the group tag.

kanban will display whatever grouping you provide, so if you have multiple groups you can define all of them in the search view

0
Avatar
Hylkää
m-azzain

<record id="maintenance_team_view_search" model="ir.ui.view">
<field name="name">practice.maintenance.team.search</field>
<field name="model">practice.maintenance.team</field>
<field name="arch" type="xml">
<search string="Search">
<field name="stages"/>
<group string='Group by...'>
<filter string='Stages' name="stages" domain="[]" context="{'group_by': 'stages'}"/>
</group>
</search>
</field>
</record>

m-azzain

you can also have a look on the documentation:
https://www.odoo.com/documentation/15.0/developer/reference/backend/views.html#kanban

Nautitko keskustelusta? Älä vain lue, vaan osallistu!

Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!

Rekisteröidy
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
How to increase column name to 2 lines (Project, kanban view)
project kanban size v14 v15
Avatar
0
kesäk. 22
2453
Add new column o kanban view not displaying
kanban columns
Avatar
0
elok. 22
11
Is it possible to change the name of the tasks in order to better fit the business requirements ? Ratkaistu
project v15
Avatar
1
heinäk. 22
97
what is the visual impact of clicking on one of the colored bars at the top of a kanban stage ?
project v15
Avatar
1
toukok. 24
1237
Kanban and calendar views disappeared from Project.task
project kanban
Avatar
0
maalisk. 22
3805
Yhteisö
  • Kurssit
  • Dokumentaatio
  • Foorumi
Avoin lähdekoodi
  • Lataa
  • Github
  • Runbot
  • Käännökset
Palvelut
  • Odoo.sh hosting
  • Tuki
  • Versionkorotus
  • Räätälöidyt kehitykset
  • Koulutus
  • Löydä kirjanpitäjä
  • Löydä kumppani
  • Ryhdy kumppaniksi
Meistä
  • Yrityksemme
  • Tavaramerkki
  • Ota yhteyttä
  • Työpaikat
  • Tapahtumat
  • Podcast
  • Blogi
  • Asiakkaat
  • Oikeudellinen ilmoitus • Yksityisyys
  • Tietoturva
الْعَرَبيّة 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 on kokoelma avoimen lähdekoodin yrityssovelluksia, jotka kattavat kaikki yrityksesi tarpeet: asiakkuudenhallinta eli CRM, verkkokauppa, kirjanpito, varastointi, kassajärjestelmä, projektinhallinta, jne.

Odoon uniikki arvolupaus on olla samanaikaisesti erittäin helppokäyttöinen ja täysin integroitu.

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