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

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
2029 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.

Registrarse
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
5837
Update field value using studio with python code
python studio v15
Avatar
Avatar
Avatar
2
mar 24
5770
Open a URL Resuelto
python studio v15
Avatar
Avatar
2
oct 22
8273
Odoo studio ! python ? Resuelto
python studio v14
Avatar
Avatar
2
ene 22
5938
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.

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