Ir al contenido
Odoo Menú
  • Inicia 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
    • Inteligencia artificial
    • 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 propiedades
    • 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
  • Comunidad
    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
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

Add a category filter to the picking operations printout

Suscribirse

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

Se marcó esta pregunta
deliveryorderodoo v17
1660 Vistas
Avatar
Alex N

We have a butcher that needs to prep the meat orders for picking, at the moment he prints the picking operations pdf but that means he gets ALL products in the order not just his. I've duplicated the picking operations doc and updated this line


<table class="table table-sm" name="table_outgoing" t-if="o.move_line_ids and o.move_ids_without_package and o.picking_type_id.code == 'outgoing' t-if="ml.product_category_name == 'BUTCHERY / Chicken' ">


but it's not filtering the picking list to only products that contain the category 'BUTCHERY / Chicken', ideally, I'd like BUTCHERY* as we have butchery as the primary category and several sub categories (chicken, beef, pork etc).

Below is the table code from the original picking operations file, which line should I be changing and what's the correct code? I'm also ok with having to list each individual category if needed.


        <table class="table table-sm" name="table_outgoing" t-if="o.move_line_ids and o.move_ids_without_package and o.picking_type_id.code == 'outgoing'">

            <t t-set="has_barcode" t-value="any(move_line.product_id and move_line.product_id.sudo().barcode or move_line.package_id for move_line in o.move_line_ids)"/>

            <t t-set="has_serial_number" t-value="any(move_line.lot_id or move_line.lot_name for move_line in o.move_line_ids)" groups="stock.group_production_lot"/>

            <thead>

                <tr>

                    <th name="th_from" t-if="o.picking_type_id.code != 'incoming'" align="left" groups="stock.group_stock_multi_locations" width="10%">

                        <strong>From</strong>

                    </th>

                    <th name="th_product" width="30%">

                        <strong>Product</strong>

                    </th>

                    <th name="th_quantity" width="15%">

                        <strong>Quantity To Pick(Uom)</strong>

                    </th>

                    <th name="th_uom" width="10%">

                        <strong>Uom</strong>

                    </th>

                    <th name="th_packaging" width="15%">

                        <strong>Packaging Quantity</strong>

                    </th>

                    <th name="th_picked" width="10%">

                        <strong>Picked</strong>

                    </th>

                    <th name="th_used_by_date" width="10%">

                        <strong>Used By Date</strong>

                    </th>

                </tr>

            </thead>

            <tbody>

                <!-- In case you come across duplicated lines, ask NIM or LAP -->

                <tr t-foreach="o.move_line_ids_without_package.sorted(lambda ml: (ml.location_id.complete_name, ml.location_dest_id.complete_name))" t-as="ml">

                    <td name="td_from">

                        <span t-esc="ml.location_id.name">WH/Stock</span>

                        <t t-if="ml.package_id">

                            <span t-field="ml.package_id">Package A</span>

                        </t>

                    </td>

                    <td name="td_product">

                        <span t-field="ml.product_id.display_name">Customizable Desk</span><br/>

                        <span t-if="ml.product_id.description_picking" t-field="ml.product_id.description_picking">Description on transfer</span>

                    </td>

                    <td name="td_quantity">

                        <span t-field="ml.quantity">3.00</span>

                    </td>

                    <td name="td_uom">

                        <span t-field="ml.product_uom_id" groups="uom.group_uom">units</span>

                    </td>

                    <td name="td_packaging">

                        <span t-if="ml.move_id.product_packaging_id and ml.product_packaging_qty &gt;= 1">

                            <span t-if="o.state != 'done'">

                                <span t-field="ml.product_packaging_qty" t-options="{&quot;widget&quot;: &quot;integer&quot;}"/> <span t-field="ml.move_id.product_packaging_id.name"/>

                            </span>

                            <span t-if="o.state == 'done'">

                                <span t-field="ml.product_packaging_qty" t-options="{&quot;widget&quot;: &quot;integer&quot;}"/> <span t-field="ml.move_id.product_packaging_id.name"/>

                            </span>

                        </span>

                    </td>

                    <td name="th_picked" align="right">

                        <span t-if="ml.product_uom_id.name == 'kg'">

                            <span t-field="ml.product_uom_id" groups="uom.group_uom"/>

                        </span>

                    </td>

                    <td name="th_used_by_date"/>

                </tr>

              </tbody>

        </table>


Many thanks

Alex

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
Accept & Pay button in quotation emails - can I change the style / look / design? Resuelto
odoo v17
Avatar
Avatar
1
oct 25
1632
How can I quickly delete the irrelevant lines when creating a Reverse Transfer? I have 49 lines to delete.
deliveryorder
Avatar
Avatar
1
may 25
3227
Mark Delivery Order as Ready to Deliver automatically? Resuelto
deliveryorder
Avatar
Avatar
1
dic 22
1109
Delivery button in Sales is only shown for Administrator but other Users - Ver10 Resuelto
deliveryorder
Avatar
Avatar
Avatar
4
dic 18
6800
Deliver delivery order using XML-RPC API Resuelto
deliveryorder
Avatar
Avatar
2
oct 15
15699
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 Svenska ภาษาไทย 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