odoo/tutorials#905

Created by Kshitij Oza (ksoz)

Blocked

label
odoo-dev:18.0-final-task-last_products-so-po-ksoz
head
5bc1ea8f99dc4b407e09744541e82c6c014bc514
odoo/tutorials
18.0 #905 missing r+
master

[IMP] sale: enhance product listing and display on sales/purchase forms

This commit improves the user experience when selecting products on Sale Orders and Purchase Orders:

  • In Sale Orders, prioritize displaying products already sold to the selected customer, sorted from most recent to oldest invoice. Other products are shown
    afterward in standard order.
  • Display the last invoice date on the right side of the product card.
  • Include forecasted quantity and on-hand quantity directly on the product card.
    If there's a difference, show it in red (-) or green (+), without using
    brackets.
  • Apply the same sorting logic to Customer Invoices for consistency.
  • Adjust the Kanban catalog layout to remove color tags and sort products by last
    bill in Purchase Orders.