Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

hide customer button in the post

Odebírat

Get notified when there's activity on this post

This question has been flagged
posPoint Of Saleclientes
1 Odpovědět
1877 Zobrazení
Avatar
Gibran Quiroz

Good day everyone, could you help me with the code to hide the client selection button in the Odoo 18 post, I have been trying but I have not been able to achieve it, I have seen tutorials but unfortunately only for Odoo 16 and it does not serve as an example, I understand that I must create two files, a js and an xml, but I still do not get results, in the same way know how I can modify this in the Odoo views from the graphical interface, thanks for your support.

0
Avatar
Zrušit
Gibran Quiroz
Autor

Thanks a lot it works


Avatar
DataInteger Consultancy Services LLP
Nejlepší odpověď
Step-by-Step Implementation:

1.Create a custom module

Directory structure:

pos_hide_customer_button/
├── __init__.py
├── __manifest__.py
├── static/
│ └── src/
│ └── js/
│ └── pos_hide_customer_button.js
├── views/
│ └── assets.xml
2. __manifest__.py
{
    'name': 'POS Hide Customer Button',
    'version': '1.0',
    'category': 'Point of Sale',
    'summary': 'Hide customer button in POS screen',
    'depends': ['point_of_sale'],
    'data': [
        'views/assets.xml',
    ],
    'assets': {
        'point_of_sale._assets_pos': [
            'pos_hide_customer_button/static/src/js/pos_hide_customer_button.js',
        ],
    },
    'installable': True,
    'auto_install': False,
    'license': 'LGPL-3',
}
3. views/assets.xml
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <template id="assets_pos" inherit_id="point_of_sale.assets">
        <xpath expr="." position="inside">
            <script type="module" src="/pos_hide_customer_button/static/src/js/pos_hide_customer_button.js"/>
        </xpath>
    </template>
</odoo>
4. static/src/js/pos_hide_customer_button.js
/** @odoo-module **/

import { PosComponent } from "@point_of_sale/app/components/pos_component";
import ProductScreen from "@point_of_sale/app/screens/product_screen/product_screen";
import { patch } from "@web/core/utils/patch";

patch(ProductScreen.prototype, {
    setup() {
        super.setup();
        // Hide the customer button by not rendering it at all
        this.showCustomerButton = false;
    },
});
5. Restart and Update


Or update from the Apps menu:

  • Activate Developer Mode.
  • Go to Apps > Update Apps List.
  • Search POS Hide Customer Button and install it.

Optional: Hide via Odoo Studio (GUI)

If you have Odoo Studio (Enterprise) :

  • Open POS > Settings > UI Configuration.
  • Use Studio to edit the POS screen.
  • Try hiding the customer button by editing screen widgets. (This is limited; not always available for POS.)


Thanks & Regards,

Email: contact@datainteger.com

1
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Different opening when i have two or more POS
pos Point Of Sale
Avatar
Avatar
1
bře 24
3311
How to open POS from another module? Vyřešeno
pos Point Of Sale
Avatar
Avatar
1
lis 18
5572
Point of Sale, block waiters from printng the ticket and opening the cashdrawer
pos Point Of Sale
Avatar
Avatar
2
bře 15
5171
Odoo 18 - is there a way to get taxes per item in POS receipt printout?
pos receipt Point Of Sale
Avatar
Avatar
1
lis 25
2237
Discount for first purchase at POS
pos discount Point Of Sale
Avatar
Avatar
1
čvn 25
1604
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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