tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

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

Open ppch-odoo opened this issue 9 months ago • 1 comments

  • 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

ppch-odoo avatar Mar 20 '25 05:03 ppch-odoo

Pull request status dashboard

robodoo avatar Mar 20 '25 05:03 robodoo