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

Wizard doesn't show up in selection more list view

Suscribirse

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

Se marcó esta pregunta
actionwizard
1 Responder
6233 Vistas
Avatar
Ajeng Shilvie

I want to add wizard in selection more list view in stock.production.lot refer to my new object wtc.permohonan.faktur but my wizard doesn't show up .

i am using this code

.py

    def action_button_permohonan(self,cr,uid,ids,context=None):
        print "============BUTTON==============",ids
        lot = self.pool.get('stock.production.lot')

        for val in ids :
            vals = lot.browse(cr,uid,val)

            form_id  = 'permohonan.faktur.form'
            view_pool = self.pool.get("ir.ui.view")
            vit = view_pool.search(cr,uid, [
                                         ("name", "=", form_id),
                                         ("model", "=", 'wtc.permohonan.faktur'),
                                        ])
            form_browse = view_pool.browse(cr,uid,vit)
        
        return {
            'name': 'Permohonan Faktur',
            'view_type': 'form',
            'view_mode': 'form',
            'res_model': 'wtc.permohonan.faktur',
            'type': 'ir.actions.act_window',
            'view_id' : form_browse.id,
            'nodestroy': True,
            'target': 'new',
#             'res_id': vals.customer_stnk.id
            }

.xml

        <record id="action_permohonan_faktur" model="ir.actions.server">
            <field name="name">Mohonkan Faktur</field>
            <field name="type">ir.actions.server</field>
            <field name="model_id" ref="model_wtc_permohonan_faktur"/>
            <field name="state">code</field>
            <field name="code">self.action_button_permohonan(cr,uid,context.get('active_ids'),context=context)</field>
        </record>
        
        <record id="id_of_the_action_value" model="ir.values">
            <field name="name">Permohonan Faktur STNK</field>
            <field name="action_id" ref="action_permohonan_faktur"/>
            <field name="value" eval="'ir.actions.server,' + str(ref('action_permohonan_faktur'))"/>
            <field name="key">action</field>
            <field name="model_id" ref="model_stock_production_lot"/>
            <field name="model">stock.production.lot</field>
            <field name="key2">client_action_multi</field>
        </record>

 

anyone know how to fix it ?

thanks in advance ..

0
Avatar
Descartar
Emipro Technologies Pvt. Ltd.

Is you 'return' statement under the 'for loop'...??

Ajeng Shilvie
Autor

no its outside ..

Ajeng Shilvie
Autor

eh i mean yes it is under for loop

Emipro Technologies Pvt. Ltd.

That means that for every loop it should pop-up window? Do you think this is logical? I think you are making mistake here.

Ajeng Shilvie
Autor

no , i am not using return inside of looping ..

Ajeng Shilvie
Autor

@emipro i try to use and it show up , but i can't get ids of my selected record because it an action not a method, is there anyway to call a method in act_window ?

Ajeng Shilvie
Autor

i try to use this code

Ajeng Shilvie
Autor
Ajeng Shilvie
Autor

i try to put act_window code , but it doesn't show up in here

Avatar
Ajeng Shilvie
Autor Mejor respuesta

i try different method , using act_window but i can't return ids of my selected record, is there anyway to put action in act_window ?

        <act_window name="New Sub menu"
            res_model="wtc.permohonan.faktur"
            src_model="stock.production.lot"
            key2="client_action_multi"
            view_mode="form" target="new"
            id="action_window_permohonan_faktur" />

0
Avatar
Descartar
¿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
Problem with opening full composer in send message
action wizard
Avatar
0
ene 25
2003
Basic wizard help with multiple object types
action wizard
Avatar
0
mar 15
4638
Missing products in zpl report from wizard
action development wizard
Avatar
0
jul 25
932
Is it possible to make a wizard that when called by action you can pass a records ID and it gets the data from related models like an init method?
action wizard odoo10
Avatar
0
oct 19
3542
I want to automatically load my product name, qty and id in the wizard whenever i click the button
action wizard v9
Avatar
Avatar
1
ago 17
3768
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