Pickings Invoices Shortcuts
by Sayed Mohammed Aqeel Ebrahim https://www.Tecpill.com , Technology Pill Business Solution https://www.Tecpill.com
Odoo
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) • Inventory (stock) |
Lines of code | 143 |
Technical Name |
pickings_invoices_shortcuts |
License | LGPL-3 |
Website | https://www.Tecpill.com |

Pickings Invoices Shortcuts
Smart button navigation between Stock Pickings and Invoices in Odoo 18 - Adding only the truly missing navigation links.
ð¡ What Makes This Module Special
- Adds only the 3 truly missing smart buttons - everything else already exists in Odoo!
- Non-invasive design that works alongside existing Odoo functionality.
- Performance optimized using existing relationships and computed fields.
- Perfect UI consistency with Odoo core smart button patterns.
Key Features
ð Smart Button Navigation
- â Stock Picking â Sale Order (smart button upgrade from existing field)
- â Stock Picking â Invoices (new functionality via sale order)
- â Invoice â Deliveries (new functionality via sale orders)
- â Round-trip navigation works in all directions
â¡ Performance & Architecture
- â Leverages existing relationships from sale_stock module
- â Minimal additional database queries
- â Proper @api.depends declarations for computed fields
- â No data migration required
ð¯ Smart Button Behavior
- â Buttons only show when there are related records (count > 0)
- â Single record: Opens form view directly
- â Multiple records: Opens list view with domain filter
- â Invoice buttons only appear on customer invoices/refunds
- â Graceful handling when relationships don't exist
ð¡ï¸ Non-Invasive Design
- â Extends existing functionality without replacing it
- â Works alongside sale_stock module features
- â Same icons and styling as existing buttons
- â Compatible with other sale/stock extensions
What Already Exists vs What This Module Adds
â Already Exists in Odoo Core
- Sale Order â Invoices (smart button) - sale module
- Sale Order â Deliveries (smart button) - sale_stock module
- Stock Picking â Sale Order (regular field sale_id) - sale_stock module
- Invoice â Sale Order (smart button) - sale module
ð What This Module Adds
- Stock Picking Form: Sale Order smart button (upgrades existing field to proper smart button UX)
- Stock Picking Form: Invoices smart button (shows count and links to related invoices)
- Invoice Form: Deliveries smart button (shows count and links to related pickings)
After careful audit, we discovered that most functionality already exists in Odoo - this module adds just the 3 missing smart buttons for complete navigation workflow.
Installation Notes
ð Requirements
- â Odoo 18.0+ required
- â sale_stock module dependency (usually already installed)
- â Automatically includes: base, sale, stock, account modules
- â No additional configuration needed
â Simple Installation:
- Place module in addons directory
- Update app list
- Install "Pickings Invoices Shortcuts" module
- Dependencies are automatically handled
Example Workflow
Complete Navigation Flow
- Sale Order â Confirm â Delivery created â Invoice created
- From Delivery: Smart buttons to view Sale Order â Invoices
- From Invoice: Smart buttons to view Sale Orders (existing) â Deliveries (new)
- Round-trip navigation works in all directions
Smart Button Behavior
- Visibility: Buttons only show when there are related records (count > 0)
- Single Record: Opens form view directly for seamless navigation
- Multiple Records: Opens filtered list view to show all related items
- Customer Focus: Invoice buttons only appear on customer invoices/refunds
Technical Implementation
ðï¸ Architecture
- â Stock Picking Extensions: invoice_count, invoice_ids fields + action_view_invoice() method
- â Account Move Extensions: picking_count, picking_ids fields + action_view_picking() method
- â Relationship Strategy: Leverages existing sale_stock relationships
- â Performance: Uses sale_id.invoice_ids and sale order picking_ids
ð¯ Scope Focus: This module deliberately excludes functionality that already exists in Odoo core, focusing only on the missing navigation links.
Support
For support and assistance, contact us at admin@tecpill.com
Credits
Authors:
Sayed Mohamed Ebrahim
Technology Pill Business Solution

Please log in to comment on this module