Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Too Many Products Get Accidentally Created

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
creationquotationproducts
15 Odpowiedzi
12175 Widoki
Awatar
Michael C

I've found that my users are accidentally creating way too many garbage product records directly from the sales order/quote form. I'd like to curb this.

Odoo makes it pretty easy to create a new product record from the quotation/sales order form. If you start searching for a product and don't find it, the default option is to create it if you press "enter". Many users are in a hurry and just press "enter" mindlessly, creating the new product record. This leaves a lot of cleanup to be done later. I can usually find the products because they are "Consumables" by default, with a $1.00 price, no internal reference, no description, etc.

I've tried marking the Internal Reference field as required. I thought this would help because you can't enter the internal reference from the product form, so therefore users wouldn't be able to create records mindlessly. This didn't work. It seems that products created from sales orders/quotes completely skip model validation (!). As long as there is something in the product field Odoo will blindly create the product.

Does anybody have a solution to prevent users from blindly creating product records from the sales order/quotes form?

1
Awatar
Odrzuć
Thomas Guénard

The question remains whatever bypass or blocking rules are: why do the users "accidentally" create new products instead of refering to approprite existing ones?

I can imagine 2 causes

1 the users do not well know the way the products are named into the system (name or reference or any other form of index) >>> make sure the naming conventions are the cleanest possible and train users

2 the searching function is using "brute force" i.e not accepting alternative orthograph, or not refering to additional fields >>> allow developpers to improve the searching function.

Awatar
Ray Carnes
Najlepsza odpowiedź

Remove the ability to create products on the sale.order form view:

<field name="product_id" options="{'no_create': True}"/>
1
Awatar
Odrzuć
Michael C
Autor

This ended up being the simplest solution. Thank you.

Lima Saudara

Where is the path for the sales.order?

I tried it on odoo13/addons/sale/view/sale_views.xml

but it does not have any effect.

Awatar
Chris TRINGHAM
Najlepsza odpowiedź

It turns out to be not quite so straightforward to do this in Odoo Studio (Odoo 13):

  1. The widget is product_configurator
  2. No checkboxes for “Disable creation” and “Disable opening”

The workaround is to change the widget

Now those two checkboxes are visible, so:

  1. Click on both checkboxes
  2. Exit Studio
  3. Now there’s no option to add a product:

This is the Extension View:

This is the XML

<data>
   <xpath expr="//field[@name='product_template_id']" position="attributes">
    <attribute name="options">{"no_open":true,"no_create":true}</attribute>
<attribute name="widget">many2one</attribute>
</xpath>
</data>

If you don’t have Odoo Studio you could achieve the same effect by creating an Extension View manually.

I think you can remove the line that changes the widget

https://odootricks.tips/prevent-users-create-products-on-the-fly/

1
Awatar
Odrzuć
Awatar
Seth
Najlepsza odpowiedź

Is there any way this solution (<field name="product_id" options="{'no_create': True}"/>) can be implemented through the "Studio" app?  I've tried various ways of entering this option in both the "domain" and "context" fields, to no avail.

If not possible, can someone please walk me through where to enter the <field name="product_id" options="{'no_create': True}"/>? ...preferably starting from the odoo dashboard.

1
Awatar
Odrzuć
Lima Saudara

I also tried it on odoo13/addons/sale/view/sale_views.xml

but it does not have any effect.

so, someone please give us information where should we put that code?

Chris TRINGHAM

I added information about doing this in Studio (https://www.odoo.com/forum/help-1/question/re-too-many-products-get-accidentally-created-170519/#answer-170519

Awatar
Raaj Mishra
Najlepsza odpowiedź

HI Michael, you can use the below syntax at sale.order.line view for product_id field to prevent users to create the product from Sale Order/Quote form view.

<field name="product_id" options="{'no_quick_create': True,'no_create_edit':True}"/>
1
Awatar
Odrzuć
Awatar
Arnaud ATIR
Najlepsza odpowiedź

Thanks ray Carnes,

it helped me so much

i did it for sale.order.form, purchase.order.form and stock.picking.form

the difficulty is to find the right line to add this option but after several trials, i got it and it was a different line for each form

0
Awatar
Odrzuć
Lima Saudara

Where is the path for the sales.order?

I tried it on odoo13/addons/sale/view/sale_views.xml

but it does not have any effect.

Arnaud ATIR

Hi LIma

the simple way i found is to modify it by the web interface

It is surely not the right way but it worked for me. You can do as below :

1/ connection in developper mode

2/ open a sale order

3/ cilck on develpment tools ( top right corner )

4/ select the item ' modify the view : form '

and then you can modifiy the model form

hope it will help

kind regards

Ermin Trevisan

@Arnaud You will loose these amendments as soon as you update Odoo or the corresponding module.

Arnaud ATIR

Hi Ermin,

I know the risk yes but as i'm not a programer, it was a simple way.

We don't plan any upgrade and it is the lonely one amendment done so it is noticed in our software guide

Awatar
Mohammed Amal N
Najlepsza odpowiedź

You can set some validation on create function of the product

example:

def create(self, vals):

     if not description: # get description value from vals

         #some warning code

0
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Difficulty in Product Creation
project creation products
Awatar
0
sie 23
1820
Create Date / Date Order option not available in Quotation 9.0c
creation quotation 9.0c
Awatar
Awatar
2
maj 16
6170
V16: "show more" choice on product line is not visible in the quotation
selection quotation products show-more
Awatar
1
lis 22
2245
Creating Products From POS Interface?
pos creation products odoo
Awatar
Awatar
1
maj 21
4362
Ask for a Product Category on Sales Orders and restrict products that can be added to that Category? Rozwiązane
quotation category products restrict
Awatar
Awatar
1
lip 20
5717
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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