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

How to access to the current data of a class in an other class??

Suscribirse

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

Se marcó esta pregunta
openerp7
3 Respuestas
3400 Vistas
Avatar
Rihene

Hello everybody!!

 Please, my friend i have two classes.

I want to access to the current data of the first class that i am adding to the current menu in the second class.

PS: the current data are not saved, they are only entered.

Best Regards.



1
Avatar
Descartar
Axel Mendoza

Hi @Drees Far, you need to be more clear when you post a question, I cannot understand your scenario

Rihene
Autor

Hi my friend; look i have some fields to enter data then i click on a button to open a popup and now i want to pass the entered data to my popup i havent save my data yet thet are only entered

Avatar
Axel Mendoza
Mejor respuesta

See my answer of your other question at:

https://www.odoo.com/forum/help-1/question/how-to-pass-values-to-a-popup-94034#answer_94038

0
Avatar
Descartar
Rihene
Autor

my friend i didnt understand wht do you mean by key and field_key :/

Axel Mendoza

key and field_key are the names under you will pass the values of the form fields in the context, using those names from the context you will retrieve the values latter on the button method or for what you need. Note that key and field_key could be any other names

Axel Mendoza

Also you need to know that before your button method is called... the form get saved

Rihene
Autor

can i pass the values without saving??!!

Rihene
Autor

how can i add the button print in the popup because i have a report to join ??

Axel Mendoza

Of course, but you will not pass values without saving, the form will be saved automatically, but if not get saved it will still build the context using the values and field values that you define

Axel Mendoza

Too many questions in the comments my friend, it's better to build a good question explaining everything you need, so you get a more direct answer

Axel Mendoza

You could define one button for the form 1 to open the popup and another button in the form 2 of the popup to use the context values and return a report dict action

Rihene
Autor

friend here is the link of my new answer if you want to help me please: https://www.odoo.com/fr_FR/forum/help-1/question/how-to-work-with-pop-ups-in-open-erp-94092

Axel Mendoza

It will be better if you provide an example of what you are trying to the after test everything that I write here and on the other question, so this questions get a proper answer, you could also edit the original question with the better description and examples

Rihene
Autor

i have put the function in the other question would you help plz

Rihene
Autor

allooooooooo

¿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
Error: NameError: name 'field' is not defined
openerp7
Avatar
Avatar
Avatar
2
may 22
35359
How to add "meta viewport" tag in OpenERP v7.0?
openerp7
Avatar
0
mar 19
5079
return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
openerp7
Avatar
0
ene 19
6311
I don't understand the basic concepts of related fields in Odoo/OpenERP 7.0 - can someone help with examples? Resuelto
openerp7
Avatar
Avatar
Avatar
4
feb 24
13937
How to use ternary operator in Open-ERP7 for domain filter in XML ?
openerp7
Avatar
0
ene 18
4798
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.

Sitio web hecho con

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