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
    • e-learning
    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

Product Translation

Suscribirse

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

Se marcó esta pregunta
translationsenterprisev15
3 Respuestas
3907 Vistas
Avatar
Kamran Lalehparvar

Hi

I have a difficulty for product translation .As i understood when you translate the product in the sales order will not show it unless customer language is set to that language up to here everything if fine but some time our customer will ask for Arabic SO and some time English so before creatie any SO if you change the language it is fine but after creation there isn't any way to update it to any other language. i want to create an automated action to update the sales order line when its triggered i was wondering if someone can help me to solve this problem.

0
Avatar
Descartar
Avatar
CandidRoot Solutions Private Limited
Mejor respuesta

Hello Kamran Lalehparvar

I have reproduced your issue and found solution as below.

Actually when you select product on sale order line, description field is filled with product's description as per customer's langauge. then after if you change langauge that field's value will not update unless you trigger onchange of product on sale order line.

i have created server action to update order line's description as per customer langauge. please have a look below server action.



for rec in records.mapped('order_line'):
rec.product_id_change()

Thanks & Regards,

​

CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat


0
Avatar
Descartar
Kamran Lalehparvar
Autor

Hi
Its working i really appreciate it.

Kamran Lalehparvar
Autor

Hello Again
By the way i have tried to make it for invoice as well with following code:

for rec in records.mapped('invoice_line_ids'):
rec.product_id_change()
but it seems there is a problem i was wondering if you can help me . thanks in advance

CandidRoot Solutions Private Limited

please try following python code as account.move object has o2m field "invoice_line_ids" of accout.move.line and that module has _onchange_product_id() onchange method.

for rec in records.mapped('invoice_line_ids'):
rec._onchange_product_id()

Kamran Lalehparvar
Autor

Hi
Good Morning
Thank you for your time. i have tried the code but there is problem. when i trying to change the language there is an error
You cannot add/modify entries prior to and inclusive of the lock date 31/12/2021.
but the current date is not before 31/12/2021
i was wondering if might be able to check.

Peter Romão

Hello CandidRoot,

I tried adding this server action in odoo 16.0 from february 2024 but it's giving me this error:

AttributeError: 'sale.order.line' object has no attribute 'product_id_change'

I've checked the SaleOrderLine class (model) and indeed there's no such method anywhere.

What could be wrong? Is this in an old version of odoo?

Avatar
Seppe De Roeck
Mejor respuesta

Hey Kamran, 

If you are looking for a quick way to translate all your products (which we did as well), so we developed an app that integrates DEEPL translations for all products and website pages.  You may want to check https://www.spinomana.com/deepl-translator which will greatly reduce time and effort for doing translations with the default export/import.  You can even use it with glossary so you can finetune translations per vertical or business

Kind regards,

Seppe

0
Avatar
Descartar
Avatar
Kamran Lalehparvar
Autor Mejor respuesta

Hi Peter

For V16 you can use this code
for order in records:

    partner_lang = order.partner_id.lang

    for line in order.order_line:

        display_name = line.product_id.with_context(lang=partner_lang).display_name

        sales_description = line.product_id.with_context(lang=partner_lang).description_sale


        line.update({'name': display_name + '\n' + sales_description})

0
Avatar
Descartar
¿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
Fedex Shipping Return Label - can I default it to ground when using overnight for delivery?
enterprise v15
Avatar
0
feb 24
2594
How to add custom field on Enterprise reports
enterprise v15
Avatar
Avatar
1
nov 23
3013
How to copy the value of a checkbox field from Vendor Bill to Payments in Odoo 15?
enterprise v15
Avatar
0
sept 23
2455
Annual leave allocation based on their joining date? Resuelto
enterprise v15
Avatar
Avatar
1
jun 23
4200
Email Notifications
enterprise v15
Avatar
0
jun 22
4247
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