Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 5 commits into
base: 18.0
Choose a base branch
from

Conversation

ppch-odoo
Copy link

@ppch-odoo ppch-odoo commented Mar 20, 2025

  • 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

…s 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
…s module

- Optimizing code
- Try to remove unnecessary code
…s module

- Removed unnecessary code
- In product catalog also products will be sorted based on invoice creation date
@robodoo
Copy link

robodoo commented Mar 20, 2025

Pull request status dashboard

- web_tour added to show flow of module
@ppch-odoo ppch-odoo force-pushed the 18.0-imp-last-ordered-products-ppch branch from 2795104 to 8f87feb Compare March 24, 2025 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants