Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Hide the new Sales button in Odoo 17

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
salesdebugattrs
1 Beantwoorden
1590 Weergaven
Avatar
Audaldo Hackins

Create a new group

Hide new

Hide new has the person who shouldn't see the button

Show new

Views are shown

I put this code referencing the button name and the other one referencing the tree, but they don't work for me.

<xpath expr="//header/button[@name='316']" position="attributes">

  <attribute name="groups">sales_team.ocultar_nuevo</attribute>

</xpath>

<!--

<xpath expr="//tree" position="attributes" groups="sales_team.ocultar_nuevo">

  <attribute name="create">false</attribute>

</xpath>-->

<xpath expr="//header/button[@name='316']" position="attributes">

  <attribute name="groups">sales_team.mostrar_nuevo</attribute>

</xpath>

<!--

<xpath expr="//tree" position="attributes" groups="sales_team.mostrar_nuevo">

  <attribute name="create">true</attribute>

</xpath>-->

I even looked for the main view sale.order and added the group there and it still doesn't show up, that was the first thing I did before creating the inherited views



Thank you very much for everything, and I hope you can help me.

Best regards



0
Avatar
Annuleer
Christoph Farnleitner

In your screens you're applying a group on the Create Invoice button / refer to an action 316 (Create invoice in your setup), in the subject you talk about new Sales. What do you want to accomplish exactly? Do you want to prevent specific users from creating Sale Orders? Because this should be handled by groups only - without any view modification. For this to be a meaningful setup in terms of the general structure, you may refer to https://www.odoo.com/de_DE/forum/hilfe-1/new-group-in-the-sales-category-in-odoo-17-279845#answer-279850 (different topic, but it outlines how groups in general interact with each other). In short, you probably want to define a group prior to group_sale_salesman_all_leads, i.e. group_sale_salesman_all_leads_read_only and set it and its predecessors 1,0,0,0 (read only - or 1,1,0,0 read and write but no create).

Audaldo Hackins
Auteur

That's right, I wish people in groups couldn't create sell orders.
I had created two groups, one for hiding and one for viewing. I did this because when I hid the person and removed them from the hide group, they wouldn't see the button again.

Audaldo Hackins
Auteur

I really just want to hide the New button.

I was doing this based on a group; I created two because when I hid and removed the person from the group, they wouldn't see the button even though they weren't part of that group.

The question is, is it possible to do it on the

<xpath expr="//header/button[@name='316']" position="attributes">

Or on this

<attribute name="groups">sales_team.show_new</attribute>


</xpath>

Audaldo Hackins
Auteur

Thanks for your response.

The issue is, if the person is in the CRM module and needs to create a quote, they do this based on the sale.order module. Since the checkbox is not selected, an error will be thrown. How can this be resolved with your module, or how would it be done?

Christoph Farnleitner

'That's right, I wish people in groups couldn't create sell orders.' and 'I really just want to hide the New button.' - which one is it? When randomly changing requirements, things get messy - and cumbersome. Consider phrasing a new question that covers all the aspects of what you actually want to achieve and what you've done so far to try to achieve it.
Also, the question 'Why are we even trying to do this?' seems fair at this point: 'Users should be able to create SO - but only from those buttons I want them to use.' - why is that? What kind of users are we dealing with? Are these external sales persons meant to work on assigned leads only? Should they then really not be able to provide you with new Sales when they just happen to know someone who wants to buy your goods or services?

Audaldo Hackins
Auteur

This is the code that hides the button again.
<xpath expr="//tree" position="attributes" groups="sales_team.ocultar_nuevo">
<attribute name="create">false</attribute>
</xpath>

Audaldo Hackins
Auteur

Thank you very much.

I understood what you were saying about groups and levels. Just one question: when creating the group and making the call in the view inherited from sale.order.tree, why is the button hidden once if the user hasn't been added to the group?

Oh, yes, I created the group as a technical group.

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Beste antwoord

Hi,


To hide the new button in the 'sale.order', you must remove the create access for the user group.

1- Enable developer mode.

2- Go to the user group.

      Settings > Users & Companies > Groups 

      You can just select your user group that needs to hide the New button.

3- Disable the create access for the sales model as follows.



4-  If you log in as the user in that user group, you can see that the 'New' button is invisible.


Hope it helps

0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
{{{Volaris Airlines Teléfono México}}}¿Cómo puedo llamar a Volaris por WhatsApp?
configuration debug attrs
Avatar
0
nov. 25
2
fgfhzgchvj
configuration debug attrs
Avatar
0
nov. 25
2
How to hide units of measure in PDF reports?
sales debug pdf
Avatar
Avatar
Avatar
3
okt. 25
663
How to keep footer always at the bottom of the very last page in QWeb PDF report
sales debug pdf
Avatar
Avatar
Avatar
2
aug. 25
1341
POS error -invalid field, res.partnert.phone_mobile_search in leaf-
configuration sales debug
Avatar
Avatar
1
feb. 25
1894
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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