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č

Odoo[12] : How to hide Kanban view's Progress bar for particular user in odoo 12

Naroči se

Get notified when there's activity on this post

This question has been flagged
userhideattributesprogressbar
1 Odgovori
8369 Prikazi
Avatar
Kiran

Hi 

I want to hide kanban view's progress bar for some user. how to do this please if know the solution please let me know.

see my code

.py file 

class CRMLead(models.Model):
    _inherit = 'crm.lead'

    is_admin = fields.Boolean(compute="check_user_group")
    def check_user_group(self):
        self.is_admin = self.env['res.users'].has_group('base.user_admin')

.xml file

<xpath expr="//progressbar[@field='activity_state']" position="attributes">

<attribute name="attrs">{'invisible':[('is_admin','!=',True)]}</attribute>

</xpath>

This above code does not work for me

0
Avatar
Opusti
Avatar
Waleed Ali Mohsen
Best Answer

Hi,

Your code will hide for all users except admins but you need to add is_admin field to kanban view to be able to use it in domains.

<xpath expr="//field[@name='activity_state']" position="after">
<field name='is_admin' invisible="1"/>
</xpath>

If it's not work try the below please try the below: 

You can create a security group and it will be disabled for all users except root and admins and you can give access to users individually.  

<record id="view_progress_bar" model="res.groups">
<field name="name">View Progress bar</field>
<!-- Add super user and admin to group, you can delete the below line to hide for them as well --> 
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>

</record>


Then inherit view and add the below:

<xpath expr="//progressbar[@field='activity_state']" position="attributes">
<attribute name="groups">[YOUR_Module_Name].view_progress_bar</attribute>
</xpath>

Then and for each user you want to view the progress bar, you will enable developer mode then go Settings -> users -> open required user

Edit the user record and you will see at the bottom your create group with Checkbox named "View Progress bar" and you will check it to allow user to view progress bar.

Please up vote if this help.

0
Avatar
Opusti
Kiran
Avtor

Hii @Waleed

as you say that [YOUR_Module_Name] here pass my module name but actually i don' t create any module i just inherited the crm.lead module so i can't understand what is pass there as a YOUR_Module_Name. can you say me what is pass there ?

Waleed Ali Mohsen

YOUR_Module_Name means your your custom module name

Kiran
Avtor

But i don't made any custom module. i just inherited the crm.lead system module. so what i do ?

Waleed Ali Mohsen

Any customization or inheritance should be done custom module. what is the main folder name which contain your python ,XMl,init and manifest files?

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
Hide <t> element with xpath in odoo
hide xpath attributes
Avatar
Avatar
1
jun. 23
4064
Set a notebook page invisible in inherited view for a specific User
user hide page notebook
Avatar
Avatar
1
mar. 16
5572
Please Help Me! It's Urgent (hide Edit button for specific user in form issue)
user v7 hide button
Avatar
Avatar
1
mar. 15
5856
Odoo[12.0]: How to hide menus for user which selected from Dropdown list.
user menuitem hide many2many_tags Odoo12.0
Avatar
0
nov. 19
4120
How to hide edit button in form issue for specific user??Really Need Help
user v7 hide button edit
Avatar
Avatar
Avatar
3
feb. 18
9962
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