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

I want to hide the button "CREATE INVOICE" on a Sales Order. How can I do this?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
5 Respostes
6057 Vistes
Avatar
Community Question

I don't want Salespeople making Invoices, I have a team that reviews their work and they may ask the Salespeople to make corrections before the Invoice can be made.

0
Avatar
Descartar
Sehrish

Checkout these odoo customization tips:

https://goo.gl/8HgnCF

Avatar
Ray Carnes (ray)
Best Answer

You might not have to.

If you separate the jobs "sell it" and "charge for it" then the simplest way to do this is to give the "seller" and the "charger" a clean and quick way to work together.

What if the seller could click ONE button to let the CHARGER know it was time to do their job?

We added the CREATE INVOICE button on the same screen that the SELLER works on for a very good reason: in one click, they can finish their job (SELL IT) and notify the next person (the CHARGER) that they have work to do.  This is because a draft Invoice will show up in the list of Invoices that the next person looks at all day long.

I typically hear this question A LOT and when I ask "Why do you want that?" I hear a variety of common answers:

  • Our salespeople make mistakes, and we don't want Invoices in Accounting until someone has checked their work.

  • We have a team to "validate" the information on the Sales Order is correct and matches the contract we have with the Customer and THEY are the ones who should be creating the Invoices.

  • Nobody in Sales should be able to affect the books - they are not Accountants or Book Keepers and we don't want them anywhere near them.

These are all problems in systems that are NOT Odoo and have been used BEFORE Odoo.

This is the "solving problems we have on Earth, when we just need to get to Mars and find out the problems we REALLY have to deal with THERE" fallacy.

These problems happened in the past:

  • Invoices with mistakes due to mistakes on Sales Orders went to Customers

  • Invoices with mistakes due to not cross-checking the Contract with the Order went to Customers

  • Invoices were made by people who didn't have Accounting knowledge and messed up the books

It is natural to have concerns about them.  "How do we make sure this doesn't happen in Odoo???" is the perspective many people come from.

WHAT IF THESE PROBLEMS DIDN'T HAPPEN IN ODOO?

What if the seller could click ONE button to let the CHARGER know it was time to do their job?  What if any mistakes with the Sales Order could be corrected BEFORE the Invoice was sent to the Customer? What if the Contract could still be cross-checked with the Sales Order BEFORE the Invoice was sent to the Customer?

If you are still reading, you will notice we now have THREE teams involved:  the "SELLER", the "CHECKER" and the "CHARGER".

Keep the Button!!!!!!!

The "Seller" finishes work with a SINGLE CLICK that tells the "Checker" that it is their turn.  The Invoice that they create is a DRAFT and does NOT affect Accounting yet. 

The "Checker" starts work and can CANCEL the Invoice and ask the "Seller" to fix the problem, and ask the "Seller" to click ONCE (CREATE INVOICE button) the next time the "Checker" should be involved.

The "Checker" VALIDATES the Invoice once there are no mistakes on the Sales Order and the Contact has been cross-referenced.  (They do this with another SINGLE click).

The "Charger" then prints or sends the Invoice - they just look for Invoices "not sent" which is another two clicks.  Even if they notice any mistakes, they simply RESET TO DRAFT and change the Invoice to correct it.

My point:  Be careful jumping in and "fixing" problems that aren't really there.  About 75% of the time I find out that the button doesn't really need to be hidden.  In the 25% of cases that it does, you just (wait for it) CLICK on a screen related to Access Controls to prevent people in certain groups (salespeople) from having permission to CREATE an Invoice.  Then, when they click the button they get an error.

It is NOT hard to hide the button. It can be done by creating two inherited views - one to hide the button and one to show it based on group membership.

BUT - every change adds cost (cost to implement, potentially cost to upgrade - even if it is just a delay during migration testing to make sure the button still works the same way), risk (will it affect other things, are you accidentally taking tools away that could be useful to users on Mars) and makes it harder to leverage the awesome training resources that we have at odoo.com/slides (since you don't want users to say "but our Odoo doesn't have that button!!!!").

2
Avatar
Descartar
Avatar
Aman Prakash
Best Answer

Hello There,

You can update the attributes of this field.

<field name="fieldname" attrs="{'invisible': domain}"/>

domain -> It will contain the conditions on which this button will be shown.

Thanks,

Aman Prakash (Associate Software Engineer)

Webkul Software Pvt. Ltd.

2
Avatar
Descartar
Ray Carnes (ray)

Excellent. This is the way you hide the button if you really want it hidden. Using conditions if you want it hidden for some people but not others.

Avatar
Dinesh Kumar
Best Answer

Hi,

Instead of attributes you can also use groups to control the button visibility, so that button is only visible to the particular group, which you have mentioned.

Create a new group for your team and add the group name to the button by inheriting the form.

For Example :

 <button name="create_invoice" string="CREATE INVOICE" type="object" class="btn-primary" groups="module.your_group_name"/>

In this example "CREATE INVOICE" button is visible only to the assigned groups.

Thanks.


1
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
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