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

Give numbers to Leads

Suscribirse

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

Se marcó esta pregunta
Leads
3 Respuestas
4936 Vistas
Avatar
Luis Beires Fernandes

Hello community, Happy 2021


At our company, we would like to give numbers to leads - Lead #1, #2 and so on, automatically. Can Odoo do that?


Thanking you in advance,


LB

0
Avatar
Descartar
Luis Beires Fernandes
Autor

Thank you everybody for your help with this question. Amazing the power of this community! Happy 2021!

Avatar
Manish Bohra
Mejor respuesta

Hello, 


You can add integer filed with name of id like below:


id = fields.Integer(string="ID")


I hope it's working.


Thanks

0
Avatar
Descartar
Avatar
Jack Dane
Mejor respuesta

Hello Luis,

You would first need to create a new ID field as Manish said but for what you want to achieve there is a bit more to this. 

You would also need to create a sequence which can be seen here. The fields are pretty obvious to understand, in your case you would want a sequence size if 0 as for no padding, step of 1 and the next number would be 1 (starting number for now). Keep note of the "Sequence Code", this will be used later. This can be found in Settings->Technical->Sequences, here is my example. 

You would then need to create an automated action which will get this new number and assign it to the new field that you have created. For this, you would need to go to Settings->Technical->Automated Actions. Create a new one with the relevant fields: Model->Lead/Opportunity, Action To Do->Update the record, Trigger->On creation. Then in the One2Many select your new field set it as a Python Expression and write the value:

record.env["ir.sequence"].next_by_code("")

Now when creating a record you should be good to go. 

Hope this helps, 

Thanks, 

0
Avatar
Descartar
Samuel Afonso

Hi there, can this be done in a Standard subscription database? If not, is there any workaround?

Chris TRINGHAM

Hi Samuel - this should be possible with the Standard subscription on Odoo Online (it does *not* need Studio). You need to be in Developer Mode. There's a full description here: https://odootricks.tips/sequence-document-numbering/

Samuel Afonso

I've tried it but I guess there is the need to create a new field and that won't be possible in Standard. But if you know how to do it without the creation of a field, explain it please :)

Chris TRINGHAM

My mistake, I hadn't read the answer in full. However...

It should be possible without Studio but it is more difficult. You should be able to create a field from the Technical menu and even create an Extension View to display it (I'd probably do it in a demo database using Studio and then copy the XML).

Avatar
Niyas Raphy (Walnut Software Solutions)
Mejor respuesta

Hi,

If you need to set the sequence for the lead without any custom modules, ie from the user interface itself, you can add a new field using the developer mode and also assign a sequential value using the Automated action in Odoo.

To add a field to hold the sequence in the lead, we can do like this:  How to Add Custom Field From User Interface In Odoo

Once the field is added to the view, we need to set the auto incremental sequential value, for that you can create a automated action, for that Settings -> Technical -> Automation -> Automated Action.


See: Assign Sequential Value For Field Using Automated Action And Sequence


If yo don't want to do from ui itself, you can do it from the custom module, for that see how sequential value can be set from code in odoo: How to Add New Sequence in odoo12


Thanks

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
Labels on columns in Leads listing
Leads
Avatar
Avatar
1
nov 18
3836
The AI agent was not able to generate a lead from the provided image. *sad robot noises* Getting Error when try to import business card from camera in CRM
crm Leads
Avatar
Avatar
2
nov 25
211
"Integrating Artificial Intelligence in Odoo for Automatic Responses and CRM Opportunity Generation." Resuelto
integration Leads
Avatar
Avatar
Avatar
Avatar
3
jul 25
6430
Lead/Opportunity "Source" field Resuelto
opportunities Leads
Avatar
Avatar
Avatar
Avatar
4
ago 24
2740
See activities dashboard
crm Leads
Avatar
Avatar
1
jun 24
2657
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.

Sitio web hecho con

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