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

Concept of data integrity / conformity of e.g. account.invoice / account.invoice.line

Suscribirse

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

Se marcó esta pregunta
invoiceinvoice.lineintegrityodooV12
2 Respuestas
3690 Vistas
Avatar
gastronovi GmbH

Hi together,


today I realized, that Odoo 12 (and I think the newer versions also) do not safe the data as it should:

The account.invoice Model has a state and defines the "readonly=True" flag as default and it only set it to False on the draft state. 

BUT: You can still change the account.invoice.line after the account.invoice state is 'done'. (For example in an self.env['account.invoice.line'].write() call or if you make a new view that is directly on account.invoice.line.

So I wondering about it, because if the system does not prevent the change, Odoo is not conform on all western markets. Currently only the GUI-Logic is preventing from saving an already done invoice (if you go through account.invoice directly), but if you would use the xmlrpc api or you have a server.action that addresses it directly, there is no prevention!

Am I doing something wrong? Or is it right, that this is still possible? 

0
Avatar
Descartar
Avatar
gastronovi GmbH
Autor Mejor respuesta

In my understanding of an ERP system (which also relies on an app store with third-party extensions) it is irresponsible and not guaranteed that an extension e.g. or someone who simply makes a change via API access is able to make a change. This would mean that Odoo would treat the invoices like a simple database table and pass the responsibility 100% to the user instead of intercepting these essential important things in the standard. However, in many countries the requirement of correct accounting (unchangeability, storage obligation etc.) must be implemented, otherwise the system may not be used for theoretical reasons alone.

0
Avatar
Descartar
Avatar
Axel Mendoza
Mejor respuesta

Hi there

All of that is right but not necessarily wrong since there are scenarios when the states of the documents need to be reverted to draft or cancel it in order to make changes and modify the document. There are some others scenarios where there are checks and constraints in place to prevent the modifications of the records for some states. Odoo is an extensible platform that provides the basis so you could provide extensions to reach your clients goals and requirements. Seems that you are the one that wanna manually make modifications to the records by your own code and you are allowed to do it. Also you could do it too with direct SQL Queries in Odoo or directly in Postgres so, what's the big deal?

It's not an issue by itself, but if it's an issue for you, you could create some constraints, write and unlink checks, security rules, SQL locks, SQL triggers, SQL constrainsts...

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
Item and Description Lines Not Showing When Invoice is Printed Resuelto
invoice invoice.line
Avatar
Avatar
Avatar
3
feb 24
4882
Hide Rows in Tree inside Form View Resuelto
invoice invoice.line
Avatar
Avatar
Avatar
2
sept 21
11880
how can i make some space for a field in the invoice lines
invoice invoice.line
Avatar
0
may 16
4285
merge invoice lines by product when convert from multiple sales orders
invoice invoice.line sales.order
Avatar
Avatar
Avatar
Avatar
4
feb 25
8137
Fixed shipped costs are invoiceable when sale order is confirmed
invoice invoice.line shipping_cost
Avatar
Avatar
Avatar
2
feb 22
3930
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