Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Food & Hospitality
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Guest House
    • Distribuidor de bebidas
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consulting
    • Accounting Firm
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Trades
    • Handyman
    • Hardware y asistencia informática
    • Solar Energy Systems
    • Zapatero
    • Servicios de limpieza
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar 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
  • Proyecto
  • 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
4802 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.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Labels on columns in Leads listing
Leads
Avatar
Avatar
1
nov 18
3749
"Integrating Artificial Intelligence in Odoo for Automatic Responses and CRM Opportunity Generation." Resuelto
integration Leads
Avatar
Avatar
Avatar
Avatar
3
jul 25
6158
Lead/Opportunity "Source" field Resuelto
opportunities Leads
Avatar
Avatar
Avatar
Avatar
4
ago 24
2607
See activities dashboard
crm Leads
Avatar
Avatar
1
jun 24
2539
How do I convert a Mailing Contact to a Lead?
Leads MarketingAutomation
Avatar
Avatar
1
ene 24
2730
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información 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 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