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
    • e-learning
    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
    • Conocimientos
    • 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
    Alimentación y hostelería
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Cervecería
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y soporte técnico
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Explorar todos los sectores
  • 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
    • Servicios para 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

Invoice number pattern and controll per company

Suscribirse

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

Se marcó esta pregunta
accountinginvoicemulticompanyinvoice_number
4 Respuestas
6686 Vistas
Avatar
Piotr Piotrowski

Hallo everyone, 


I would like to configure following functionality:

On behalf of Company A, Company B, Company C

I would like to make an Invoice with individual Invoice number, for example INV_A, INV_B, INV_C.

Those companies are selling the same service (from Odoo point of view) so let`s say I create Sale Order, where I am able to select company in tab "Other Information".

After creating SO, I am trying to create Invoice and after VALIDATION I always get this error:


Field(s) `company_id` failed against a constraint: Account and Period must belong to the same company.


This comes from constraint check [_check_company_id] from [_name = "account.move.line"] model. What is more, I get problem with [lines.account_id.company_id] which is different that other company informations in line.

CODE:

def _check_company_id(self, cr, uid, ids, context=None):

    lines = self.browse(cr, uid, ids, context=context)

     for l in lines:

         if l.company_id != l.account_id.company_id or l.company_id != l.period_id.company_id:

         return False

    return True


Could someone tell me, where have I configured something incorrectly? I cannot find any reason and it drives me crazy...

Thanks in advance,

Piotr

0
Avatar
Descartar
TidyWay

Invoice company and debtors account(customer account) company must be same!!

Avatar
Piotr Piotrowski
Autor Mejor respuesta

Sorry for answering this way - it`s really irritating with karma...

I have managed what I wanted to achieve. Maybe this is banal for most of community, but maybe someone will use this as a solution some day.

My problem was, that account id was incorrect and I was not able to find proper setting for this but following settings are working for me:

I have defined structured multicompany (but without Multicompany checkbox in settings), so that there is PARENT company (Parent) and CHILDREN copmanies (A, B)

in Sale.Order I choose only Parent company and when I am creating invoice, I am choosing appropriate children company. Because of this I am able to:

- have proper invoice numbers

- have proper addresses in invoice


That`s it. I would like to see in SO list proper companies, not only parent, but for now this solution is satisfying.

0
Avatar
Descartar
Avatar
Michael Pol
Mejor respuesta

It looks like you have wrong company configuration between period and account linked with sales journal.  Please check  configuration of both, company should be same.

0
Avatar
Descartar
Avatar
Zbik
Mejor respuesta

1. Each company must define its own Chart of accounts - verify/define it in Settings/Configuration/Accounting -> section Chart of Accounts.
2. Each company must define its own Periods
3. Each company must define its own Taxes 
4. Each company must define its own Journals (For example Sales Journal - this journal determines invoice number - possible other per company)

If tax or journal or account or period (in Sale Order) belong to different companies this error is raised.

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
How do you set-up products or services for Multicompany invoicing
accounting invoice multicompany Odoo17
Avatar
0
dic 25
265
How do I Invoice time? I need to switch the pay period.
accounting invoice
Avatar
Avatar
1
dic 25
606
Automating Invoice Sending to Accountant Email
accounting invoice
Avatar
Avatar
1
sept 25
1230
Unselect the Show in Invoices Footer option Resuelto
accounting invoice
Avatar
Avatar
Avatar
3
nov 25
4188
invoice number prefix Resuelto
accounting invoice
Avatar
Avatar
1
nov 24
4286
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 empresariales de código abierto que cubre 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