Purchase Order Product Recommendation
purchase_order_product_recommendation · OCA/purchase-workflow
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by20/253 modules depend on it
-
Maturity25/25In 7 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
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
- 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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
-
date_beginDatedefault=fields.Date.context_todayhelp='Initial date to compute recommendations.'required=True -
date_endDatedefault=fields.Date.context_todayhelp='Final date to compute recommendations.'required=True -
line_amountIntegerdefault=15help='Stablish a limit on how many recommendations you want to get.Leave it as 0 to set no limit'required=Truestring='Number of recommendations' -
line_idsOne2many → purchase.order.recommendation.linecomodel_name='purchase.order.recommendation.line'inverse_name='wizard_id'string='Products' -
order_idMany2one → purchase.ordercomodel_name='purchase.order'default=<expr>ondelete='cascade'readonly=Truerequired=Truestring='Purchase Order' -
product_category_idsMany2many → product.categorycomodel_name='product.category'help='Filter by product internal category'string='Product Categories' -
show_all_partner_productsBooleandefault=Falsehelp='Show all products with supplier infos for this supplier'string='Show all supplier products' -
show_all_productsBooleandefault=Falsehelp="Useful if a product hasn't been selled by the partner yet"string='Show all purchasable products' -
warehouse_countIntegerdefault=<expr> -
warehouse_idsMany2many → stock.warehousecomodel_name='stock.warehouse'help='Constrain search to an specific warehouse'string='Warehouse'
-
action_accept(self)Propagate recommendations to purchase order.
-
currency_idMany2onereadonly=Truerelated='product_id.currency_id' -
is_modifiedBoolean -
partner_idMany2onereadonly=Truerelated='wizard_id.order_id.partner_id' -
price_unitMonetaryreadonly=True -
product_codeCharstring='Product reference' -
product_idMany2one → product.productcomodel_name='product.product'string='Product' -
product_nameChar -
product_uom_idMany2one → uom.uomrelated='product_id.uom_po_id' args: 'uom.uom' -
purchase_line_idMany2one → purchase.order.linecomodel_name='purchase.order.line' -
times_deliveredIntegerreadonly=True -
times_receivedIntegerreadonly=True -
units_availableFloatreadonly=True -
units_avg_deliveredFloatdigits='Product Unit of Measure'readonly=True -
units_deliveredFloatreadonly=True -
units_includedFloat -
units_receivedFloatreadonly=True -
units_virtual_availableFloatreadonly=True -
wizard_idMany2one → purchase.order.recommendationcomodel_name='purchase.order.recommendation'ondelete='cascade'readonly=Truerequired=Truestring='Wizard'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…