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
    • 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 taberna
    • 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
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • 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
    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

Display Debit and Credit in USD in Journal Items

Suscribirse

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

Se marcó esta pregunta
pythonstudio
1 Responder
2024 Vistas
Avatar
AljawahirSteel

Hello Odoo Community,

My main currency is IQD, and the transaction currency sometimes is IQD and sometimes USD. I have added two fields in the journal items and used Studio to write the following code in Compute field :

self[:1].currency_id._convert(self.debit, self[:1].company_id.currency_id, self[:1].company_id, self[:1].date) if self else 0
self[:1].currency_id._convert(self.credit, self[:1].company_id.currency_id, self[:1].company_id, self[:1].date) if self else 0

However, when I create a transaction, I want to see USD Debit and USD Credit correctly displayed in the journal items.

Can anyone help me achieve this? Am I missing something in my approach?

or any other way to solve for see debit and credit in use?  ​ ​ ​

Thanks in advance!


0
Avatar
Descartar
Avatar
gladiator
Mejor respuesta

Hi, I think that you are trying to display original currency which had been posted of the transactions. If yes, there is no need to compute such complex method, there is a field called 'Amount in Currency' which is stored the original currency value while making that transaction. Please try with that field at your view by doing drag and drop with Studio at your list view.

0
Avatar
Descartar
AljawahirSteel
Autor

Hi @gladiator,

Thank you for your response!

I understand that the "Amount in Currency" field stores the original currency value of the transaction. However, I have noticed two issues:

The "Amount in Currency" field does not differentiate between Debit and Credit values. I need to clearly see both USD Debit and Credit separately.
Some transactions are recorded in IQD (which is my main currency), but when I create a transaction in IQD, the "Amount in Currency" field does not store this amount. It remains empty or does not reflect the correct value.
Do you know how I can fix these issues? Or do I need to apply a different approach to achieve my goal?

Thanks again for your help!

gladiator

But 'Amount in Currency' Field always store value of current transactions currency amount, there is no chance to be as Empty Value, if yes, please check any of your custom module or third party module.

Note - Your goal doesn't meet international accounting standard, accountants always keep and register at credit and debit side with their company base Currency amount with their transaction date of exchange rate, not register with secondary currency at debit and credit side.

AljawahirSteel
Autor

When I create a transaction in USD, the "Amount in Currency" field stores the correct values.
But when I create a transaction in IQD (which is my main currency), the "Amount in Currency" field does not store any value.
My goal is to always see the Debit and Credit in USD, even for transactions made in IQD. This means I need to have a secondary currency column that converts IQD to USD dynamically.

¿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
Studio - link between project and quotation
python studio
Avatar
0
jun 19
1867
Using Automated Actions to update a field from another field in the same table
python studio
Avatar
0
feb 19
5827
Update field value using studio with python code
python studio v15
Avatar
Avatar
Avatar
2
mar 24
5752
Open a URL Resuelto
python studio v15
Avatar
Avatar
2
oct 22
8241
Odoo studio ! python ? Resuelto
python studio v14
Avatar
Avatar
2
ene 22
5925
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