Sale Order Line Smart Button
sale_order_line_smartbutton · OCA/sale-workflow
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 19.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module adds a smart button on the Sale Order form giving quick access to a dedicated, searchable list of its order lines.
On large sale orders it can be hard to find a specific product line by scrolling through the "Order Lines" notebook page. This module opens a dedicated list/search view of the order's lines (excluding sections and notes) so users can filter/search by product, customer or status, and adapt prices, quantities, UoM, discount, etc. directly from that list.
Editability of the fields mimics the standard Sale Order form: fields are
readonly according to the same conditions used on sale.order.views
(product_updatable, product_uom_readonly, qty_invoiced,
is_downpayment), and the whole line becomes readonly once its order is
cancelled or locked, matching the top-level
readonly="state == 'cancel' or locked" gate applied to the order lines
on the sale order form itself. The sale.order.line model already
enforces this server-side when an order is locked, this module only makes
the view consistent with that behavior.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
sale_order_line_smartbutton_form_view |
sale.order.line.smartbutton.form | sale.order.line | form | New |
sale_order_line_smartbutton_list_view |
sale.order.line.smartbutton.list | sale.order.line | list | New |
sale_order_line_smartbutton_search_view |
sale.order.line.smartbutton.search | sale.order.line | search | New |
view_order_form_inherit_smartbutton |
sale.order.form.inherit.smartbutton | sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
-
order_line_countIntegercompute='_compute_order_line_count'
-
action_view_order_lines(self)Open the sale order lines of this order in a dedicated list. Reuses the standard sale order line list/form views so users can search/filter lines and edit prices, quantities, uom, etc. subject to the same restrictions as the sale order form (see ``sale.order.line`` readonly fields and its ``write`` override).
-
order_lockedBooleanrelated='order_id.locked'
No public methods.