Skip to content
Health
95/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 5 months ago
  • Required by20/25
    3 modules depend on it
  • Maturity25/25
    In 7 Odoo series since 11.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
3
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.12 MB
Module directory on disk
Code analysis 0 migration notes 2 models 2 views 0 HTTP endpoints

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.

Dependencies

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…