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

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

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
How to associate image with product variant?
product product.product
Avatar
Avatar
1
mar 18
8541
Configure product wizard in sale product price need to show based on varient
product product.product Product-variants
Avatar
Avatar
1
jul 25
935
How to Inherit View For Specific Group and restrict Create and Edit ?
product product.product product.template
Avatar
Avatar
1
feb 25
2551
Customer Article Number
product product.product product_code
Avatar
Avatar
Avatar
Avatar
3
mar 24
7020
Variant values are undefined
product product.product attributevalue
Avatar
0
mar 24
1835
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