Purchase Product Last Price Info
purchase_last_price_info · OCA/purchase-workflow
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 12 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
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.2 MB
Module directory on disk
Code analysis
0 migration notes
2 models
4 views
0 HTTP endpoints
Description
This module adds the last purchase info of the product. What is shown is the supplier, date of purchase, and price of the most recently confirmed purchase order.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_product_last_purchase_info_form_view |
product.product.last.purchase.info.form | product.product | form | Inherits product.product_normal_form_view |
product_product_tree_view |
product.product.tree | product.product | tree | Inherits product.product_product_tree_view |
product_template_last_purchase_info_form_view |
product.template.form.last.purchase.info | product.template | form | Inherits purchase.view_product_supplier_inherit |
product_template_tree_view |
product.template.product.tree | product.template | tree | Inherits product.product_template_tree_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (8)
-
last_purchase_currency_idMany2one → res.currencycomodel_name='res.currency'compute='_compute_last_purchase_line_id_info' -
last_purchase_dateDatetimecompute='_compute_last_purchase_line_id_info' -
last_purchase_line_idMany2one → purchase.order.linecomodel_name='purchase.order.line'compute='_compute_last_purchase_line_id' -
last_purchase_line_idsOne2many → purchase.order.linecomodel_name='purchase.order.line'inverse_name='product_id'string='Last Purchase Order Lines' -
last_purchase_priceFloatcompute='_compute_last_purchase_line_id_info' -
last_purchase_price_currency_rateFloatcompute='_compute_last_purchase_price_currency_rate'digits=0string='Last Purchase Currency Rate' -
last_purchase_supplier_idMany2one → res.partnercomodel_name='res.partner'compute='_compute_last_purchase_line_id_info'string='Last Supplier' -
show_last_purchase_price_currency_rateBooleancompute='_compute_show_last_purchase_price_currency_rate'
No public methods.
New fields (8)
-
last_purchase_currency_idMany2one → res.currencycomodel_name='res.currency'compute='_compute_last_purchase_line_id_info' -
last_purchase_dateDatetimecompute='_compute_last_purchase_line_id_info' -
last_purchase_line_idMany2one → purchase.order.linecomodel_name='purchase.order.line'compute='_compute_last_purchase_line_id' -
last_purchase_line_idsOne2many → purchase.order.linecomodel_name='purchase.order.line'related='product_variant_ids.last_purchase_line_ids'string='Last Purchase Order Lines' -
last_purchase_priceFloatcompute='_compute_last_purchase_line_id_info' -
last_purchase_price_currency_rateFloatdigits=0related='product_variant_ids.last_purchase_price_currency_rate'string='Last Purchase Currency Rate' -
last_purchase_supplier_idMany2one → res.partnercomodel_name='res.partner'compute='_compute_last_purchase_line_id_info'string='Last Supplier' -
show_last_purchase_price_currency_rateBooleanrelated='product_variant_ids.show_last_purchase_price_currency_rate'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…