Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.1.1
Category
Purchases
Folder size
0.12 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-07 08:42:58
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
sergio-teruel, Carlos Roca, pilarvargas-tecnativa, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
purchase_order_product_recommendation_brand, purchase_order_product_recommendation_secondary_unit, purchase_order_product_recommendation_xlsx
Description
This module adds a recommended products wizard to current purchase
order.

It is based on delivered products to customer locations in a given range
of dates, and allows the purchase manager to quickly know the most sold
products for the current supplier, which results in an easy to use hint
to improve the purchase workflow.

If you want a better mobile usability, the module is ready to use with
the 'web_widget_numeric_step' module. Just install it and you will get a
better numeric input experience.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_form Recommended products button purchase.order form Inherits purchase.purchase_order_form
purchase_order_recommendation_view_form Recommended Products for this Vendor purchase.order.recommendation form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (10)
  • date_begin Date
    default=fields.Date.context_today help='Initial date to compute recommendations.' required=True
  • date_end Date
    default=fields.Date.context_today help='Final date to compute recommendations.' required=True
  • line_amount Integer
    default=15 help='Stablish a limit on how many recommendations you want to get.Leave it as 0 to set no limit' required=True string='Number of recommendations'
  • line_ids One2many → purchase.order.recommendation.line
    comodel_name='purchase.order.recommendation.line' inverse_name='wizard_id' string='Products'
  • order_id Many2one → purchase.order
    comodel_name='purchase.order' default=<expr> ondelete='cascade' readonly=True required=True string='Purchase Order'
  • product_category_ids Many2many → product.category
    comodel_name='product.category' help='Filter by product internal category' string='Product Categories'
  • show_all_partner_products Boolean
    default=False help='Show all products with supplier infos for this supplier' string='Show all supplier products'
  • show_all_products Boolean
    default=False help="Useful if a product hasn't been selled by the partner yet" string='Show all purchasable products'
  • warehouse_count Integer
    default=<expr>
  • warehouse_ids Many2many → stock.warehouse
    comodel_name='stock.warehouse' help='Constrain search to an specific warehouse' string='Warehouse'
Public methods (1)
  • action_accept(self)
    Propagate recommendations to purchase order.

New fields (18)
  • currency_id Many2one
    readonly=True related='product_id.currency_id'
  • is_modified Boolean
  • partner_id Many2one
    readonly=True related='wizard_id.order_id.partner_id'
  • price_unit Monetary
    readonly=True
  • product_code Char
    string='Product reference'
  • product_id Many2one → product.product
    comodel_name='product.product' string='Product'
  • product_name Char
  • product_uom_id Many2one → uom.uom
    related='product_id.uom_po_id' args: 'uom.uom'
  • purchase_line_id Many2one → purchase.order.line
    comodel_name='purchase.order.line'
  • times_delivered Integer
    readonly=True
  • times_received Integer
    readonly=True
  • units_available Float
    readonly=True
  • units_avg_delivered Float
    digits='Product Unit of Measure' readonly=True
  • units_delivered Float
    readonly=True
  • units_included Float
  • units_received Float
    readonly=True
  • units_virtual_available Float
    readonly=True
  • wizard_id Many2one → purchase.order.recommendation
    comodel_name='purchase.order.recommendation' ondelete='cascade' readonly=True required=True string='Wizard'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…