Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 19.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 2 models 4 views 0 HTTP endpoints

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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 4

XML IDNameModelTypeStatus
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

New fields (1)
  • order_line_count Integer
    compute='_compute_order_line_count'
Public methods (1)
  • 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).

New fields (1)
  • order_locked Boolean
    related='order_id.locked'
Public methods (0)

No public methods.