Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

New group in the sales category in odoo 17

Subscriure's

Get notified when there's activity on this post

This question has been flagged
salecategorygroups17
2 Respostes
2148 Vistes
Avatar
Enzo

I need to add a new group in the Sales category. I have seen that in the "sales_team" module the groups are like this:


<record id="base.module_category_sales_sales" model="ir.module.category">
<field name="description">Helps you handle your quotations, sale orders and invoicing.</field>
<field name="sequence">1</field>
</record>

<record id="group_sale_salesman" model="res.groups">
<field name="name">User: Own Documents Only</field>
<field name="category_id" ref="base.module_category_sales_sales"/>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="comment">the user will have access to his own data in the sales application.</field>
</record>

<record id="group_sale_salesman_all_leads" model="res.groups">
<field name="name">User: All Documents</field>
<field name="category_id" ref="base.module_category_sales_sales"/>
<field name="implied_ids" eval="[(4, ref('group_sale_salesman'))]"/>
<field name="comment">the user will have access to all records of everyone in the sales application.</field>
</record>

<record id="group_sale_manager" model="res.groups">
<field name="name">Administrator</field>
    <field name="comment">the user will have an access to the sales configuration as well as statistic reports.</field>
<field name="category_id" ref="base.module_category_sales_sales"/>
<field name="implied_ids" eval="[(4, ref('group_sale_salesman_all_leads')),
                (4, ref('mail.group_mail_template_editor'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>


So in my custom module I've tried adding the group to the Sales category like this:


<record id="user_channel" model="res.groups">
        <field name="name">User without channel</field>
        <field name="category_id" ref="base.module_category_sales_sales"/>
        <field name="implied_ids" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
        <field name="comment">User unable to view sales records with channel</field>
</record>


I see that my group is added to the category, but now the fields are no longer selectable, they are now all checkboxes. Is there a way I can add a group without losing the selection type so that I can only choose one group? 

0
Avatar
Descartar
Avatar
Christoph Farnleitner
Best Answer

Generally speaking, groups show up as a drop down, when the implied group(s) (-> implied_ids) allow for a hierarchical structure.

As you can see in the example from sales_team, each new group implies its 'predecessor' - or, in other words, group_sale_salesman (User: Own Documents Only) is the lowest access rule possible. The next higher one, group_sale_salesman_all_leads (User: All Documents) essentially means 'everything group_sale_salesman can do/see + x'; Lastly, being a group_sale_manager (Administrator) allows for 'everything group_sale_salesman_all_leads can do/see (and therefore everything group_sale_salesman can do/see) + y'. Or, more visual:

group_sale_salesman
group_sale_salesman_all_leads
group_sale_manager


That being said, in your case you have user_channel (User without channel) imply permission of group_sale_salesman - which means it has the same implications as group_sale_salesman_all_leads which makes it unspecific (in a hierarchical sense), because there is no clear 'place' or 'position' for user_channel. Visually structured, your addition means

group_sale_salesman
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
user_channel
group_sale_salesman_all_leads
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
group_sale_manager

Depending on what you want to achieve, you will have to bring the group into a structure such as

Case A:

Sales:
group_sale_salesman
user_channel
group_sale_salesman_all_leads
group_sale_manager

or

Case B:

Sales:
group_sale_salesman
group_sale_salesman_all_leads
user_channel
group_sale_manager

or

Case C:

Sales:
group_sale_salesman
group_sale_salesman_all_leads
group_sale_manager
Extra Rights:
user_channel


This means, you will have to 

  • override the implied_ids either for group_sale_salesman_all_leads so it implies user_channel (Case A), or 
  • override the implied_ids either for group_sale_manager​ so it implies user_channel (Case B), or 
  • separate user_channel from the Sales Team groups completely and use it as a separate permission to enable per user (Case C)

Case C could still mean that group_sale_salesman_all_leads (for Case A) or group_sale_manager (for Case B) additionally implies user_channel.

0
Avatar
Descartar
Avatar
Enzo
Autor Best Answer

It was perfectly understood, I was able to solve it now, thank you very much!

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

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

Registrar-se
Related Posts Respostes Vistes Activitat
Product-related documents at the end of the PDF quotation
pdf sale 17
Avatar
Avatar
Avatar
3
de març 25
1829
hide category from user form, odoo v14
category groups v14
Avatar
0
de gen. 23
809
override category_id on res.parnert Solved
partner sale groups
Avatar
Avatar
1
de juny 21
3312
How to add access rights of only user types category with my custom groups in xml
category groups erp res.groups v17
Avatar
0
de febr. 24
1366
Use Category first for sale a product before choose the product. STUDIO APP
sales filter product sale category
Avatar
0
de maig 20
1590
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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