Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

Hide the new Sales button in Odoo 17

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
salesdebugattrs
1 Antworten
1581 Ansichten
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
Verwerfen
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
Autor

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
Autor

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
Autor

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
Autor

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
Autor

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 Antwort

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
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
How to hide units of measure in PDF reports?
sales debug pdf
Avatar
Avatar
Avatar
3
Okt. 25
655
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
1334
POS error -invalid field, res.partnert.phone_mobile_search in leaf-
configuration sales debug
Avatar
Avatar
1
Feb. 25
1887
how to put fields under a single condition in form view (odoo version 17)
development accounting debug attrs
Avatar
Avatar
Avatar
2
Juni 25
3596
How do you get shop_id from company_id?
attrs
Avatar
Avatar
Avatar
2
Nov. 25
217
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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