odoo/tutorials#654

Created by Parthav Pravinbhai Chodvadiya (ppch)

Blocked

label
odoo-dev:18.0-imp-last-ordered-products-ppch
head
9e01f9e8ccbec5167f5ab650afe9debb2bc3f1e2
odoo/tutorials
18.0 #654 missing statuses missing r+
master

[IMP] last_ordered_products: improved sale and purchase by adding this module

  • In product_product and product_template override method name_search to get
    last ordered time for selected customer.
  • Implemented functions to get last_sold_products and last_purchased_products
    based on customer's invoice and vendor's bill.
  • Added compute method to get last_order_time and time difference string.
  • Updated context in sale_order, purchase_order and account_move to get
    order_type and partner_id in context
  • In catalog, to re-organize displayed information inherited sale_order and
    sale_order_line, override some methods to get sale_uom of order line
  • In catalog, to re-organize displayed information inherited
    product_view_kanban_catalog view
  • Extend ProductCatalogOrderLine to get sale_uom in catalog
  • Patch ProductCatalogKanbanRecord to get information as per the requirement
  • Extend Autocomplete to get time difference string in product dropdown
  • Patch ProductLabelSectionAndNoteFieldAutocomplete to override function
    which will be used to get time difference string
  • In product catalog also products will be sorted based on invoice creation date
  • Testcases added