Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Too Many Products Get Accidentally Created

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
creationquotationproducts
15 Respuestas
12119 Vistas
Avatar
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
Avatar
Descartar
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.

Avatar
Ray Carnes
Mejor respuesta

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

<field name="product_id" options="{'no_create': True}"/>
1
Avatar
Descartar
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.

Avatar
Chris TRINGHAM
Mejor respuesta

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
Avatar
Descartar
Avatar
Seth
Mejor respuesta

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
Avatar
Descartar
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

Avatar
Raaj Mishra
Mejor respuesta

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
Avatar
Descartar
Avatar
Arnaud ATIR
Mejor respuesta

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
Avatar
Descartar
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

Avatar
Mohammed Amal N
Mejor respuesta

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
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Difficulty in Product Creation
project creation products
Avatar
0
ago 23
1741
Create Date / Date Order option not available in Quotation 9.0c
creation quotation 9.0c
Avatar
Avatar
2
may 16
6086
V16: "show more" choice on product line is not visible in the quotation
selection quotation products show-more
Avatar
1
nov 22
2215
Creating Products From POS Interface?
pos creation products odoo
Avatar
Avatar
1
may 21
4317
Ask for a Product Category on Sales Orders and restrict products that can be added to that Category? Resuelto
quotation category products restrict
Avatar
Avatar
1
jul 20
5694
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

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