Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Purchase Management
Folder size
0.2 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-13 11:29:18
Authors
Odoo Community Association (OCA), AvanzOSC, Tecnativa
Maintainers
Odoo Community Association (OCA), AvanzOSC, Tecnativa
Committers
CarmenMiranda, David Vidal, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

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…