Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Add a category filter to the picking operations printout

Subscribe

Get notified when there's activity on this post

This question has been flagged
deliveryorderodoo v17
993 Views
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
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Accept & Pay button in quotation emails - can I change the style / look / design? Solved
odoo v17
Avatar
Avatar
1
Oct 25
761
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
2075
Mark Delivery Order as Ready to Deliver automatically? Solved
deliveryorder
Avatar
Avatar
1
Dec 22
1109
Delivery button in Sales is only shown for Administrator but other Users - Ver10 Solved
deliveryorder
Avatar
Avatar
Avatar
4
Dec 18
5749
Deliver delivery order using XML-RPC API Solved
deliveryorder
Avatar
Avatar
2
Oct 15
14390
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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