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

Modifying currency_id on product.template

Suscribirse

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

Se marcó esta pregunta
productproduct.product
1 Responder
7189 Vistas
Avatar
Phillip

My client has asked to be able to modify the currency on mrp.bom.line items. We added x_currency_id to mrp.bom.line and made it a computed field equal to the currency_id of the product_id. 

This correctly displays the currency of the product. The problem however is that the currency of the product is a computed field. So no matter what we do we can not modify the value of the currency of the product as it is always the company's official currency.

Is it necessary that the currency of the product must be the default for the company. I understand I have the power to change this if I want. However if this would open more complications (accounting,inventory...) then I would obviously leave the definition of the currency of the product and simply break the association for mrp.bom.line whereas I would no longer make it a computed field, I would simply set a default based on the product and if someone changed it then so be it.

If anyone could lend me their input it would be greatly appreciated. I have my reservations about modifying a field which is such a core component however if it will not break anything and it will make my client happy then I don't mind. 

Please share your thoughts, and reword your criticisms as playful banter. 


Thanks!


0
Avatar
Descartar
Avatar
Ermin Trevisan
Mejor respuesta

Currency is not an attribute of a product, it is an attribute of contractual relationships (pricelists) and of asset (inventory) valuation.

You can define multiple sales and purchasing prices in different currencies using Odoo's pricelists and multi-currency features.

Showing currencies in a BoM does not make sense, in a BoM you show the cost, and cost is always measured in the company's currency for accounting reasons.

0
Avatar
Descartar
Phillip
Autor

Thanks for your input Ermin. I agree with your assessment.

Phillip
Autor

Currency however is still an attribute of a product in Odoo's model for product.template which you can see in the definition of the model but I know you were speaking generally of the definition of a product and not an Odoo product.template product.

Ermin Trevisan

You are right. Despite that, the currency in the product.template relates to the "standard" price and is not editable.

hed shefer

Do you know what is the consequences of changing the main company to be different company (In order to get a different currency on the product template)?

With this approch I was able to change the product.template currency_id

Code reference:

@api.depends('company_id')

def _compute_currency_id(self):

main_company = self.env['res.company']._get_main_company()

for template in self:

template.currency_id = template.company_id.sudo(

).currency_id.id or main_company.currency_id.id

¿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 to associate image with product variant?
product product.product
Avatar
Avatar
1
mar 18
8507
Configure product wizard in sale product price need to show based on varient
product product.product Product-variants
Avatar
Avatar
1
jul 25
909
How to Inherit View For Specific Group and restrict Create and Edit ?
product product.product product.template
Avatar
Avatar
1
feb 25
2527
Customer Article Number
product product.product product_code
Avatar
Avatar
Avatar
Avatar
3
mar 24
7001
Variant values are undefined
product product.product attributevalue
Avatar
0
mar 24
1778
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