Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 12 Odoo series since 8.0

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

Security findings
Grave / minor (static analysis)
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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

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

Views touched 4

XML IDNameModelTypeStatus
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_id Many2one → res.currency
    comodel_name='res.currency' compute='_compute_last_purchase_line_id_info'
  • last_purchase_date Datetime
    compute='_compute_last_purchase_line_id_info'
  • last_purchase_line_id Many2one → purchase.order.line
    comodel_name='purchase.order.line' compute='_compute_last_purchase_line_id'
  • last_purchase_line_ids One2many → purchase.order.line
    comodel_name='purchase.order.line' inverse_name='product_id' string='Last Purchase Order Lines'
  • last_purchase_price Float
    compute='_compute_last_purchase_line_id_info'
  • last_purchase_price_currency_rate Float
    compute='_compute_last_purchase_price_currency_rate' digits=0 string='Last Purchase Currency Rate'
  • last_purchase_supplier_id Many2one → res.partner
    comodel_name='res.partner' compute='_compute_last_purchase_line_id_info' string='Last Supplier'
  • show_last_purchase_price_currency_rate Boolean
    compute='_compute_show_last_purchase_price_currency_rate'
Public methods (0)

No public methods.

New fields (8)
  • last_purchase_currency_id Many2one → res.currency
    comodel_name='res.currency' compute='_compute_last_purchase_line_id_info'
  • last_purchase_date Datetime
    compute='_compute_last_purchase_line_id_info'
  • last_purchase_line_id Many2one → purchase.order.line
    comodel_name='purchase.order.line' compute='_compute_last_purchase_line_id'
  • last_purchase_line_ids One2many → purchase.order.line
    comodel_name='purchase.order.line' related='product_variant_ids.last_purchase_line_ids' string='Last Purchase Order Lines'
  • last_purchase_price Float
    compute='_compute_last_purchase_line_id_info'
  • last_purchase_price_currency_rate Float
    digits=0 related='product_variant_ids.last_purchase_price_currency_rate' string='Last Purchase Currency Rate'
  • last_purchase_supplier_id Many2one → res.partner
    comodel_name='res.partner' compute='_compute_last_purchase_line_id_info' string='Last Supplier'
  • show_last_purchase_price_currency_rate Boolean
    related='product_variant_ids.show_last_purchase_price_currency_rate'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…