Maintenance Purchase

maintenance_purchase
REPOSITORY
REPOSITORYOCA/maintenance
GIT
GIThttps://github.com/OCA/maintenance.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/maintenance/tree/18.0/maintenance_purchase
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), CreuBlanca
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), CreuBlanca
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, christian-ramos-tecnativa
WEBSITE
WEBSITEhttps://github.com/OCA/maintenance
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Create Equipments when the purchase is validated.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
hr_equipment_view_form equipment.form maintenance.equipment xpath Inherits maintenance.hr_equipment_view_form
product_template_form_view product.template.common.form product.template xpath Inherits product.product_template_form_view
purchase_order_form_view purchase.order.form (in maintenance_purchase) purchase.order xpath Inherits purchase.purchase_order_form
Models touched (4)

New fields (2)
  • purchase_id Many2one → purchase.order
    comodel_name='purchase.order' readonly=True related='purchase_line_id.order_id' string='Purchase'
  • purchase_line_id Many2one → purchase.order.line
    comodel_name='purchase.order.line' readonly=True
Public methods (0)

No public methods.

New fields (1)
  • purchase_equipment_category_id Many2one → maintenance.equipment.category
    comodel_name='maintenance.equipment.category' string='Purchase Equipment Category'
Public methods (0)

No public methods.

New fields (1)
  • equipment_count Integer
    compute='_compute_equipment_count'
Public methods (3)
  • action_view_equipments(self)
  • button_approve(self, force=False)
  • unlink(self)

New fields (3)
  • equipment_category_id Many2one → maintenance.equipment.category
    comodel_name='maintenance.equipment.category' compute='_compute_equipment_category_id' readonly=False store=True string='Equipment Category'
  • equipment_count Integer
    compute='_compute_equipment_count'
  • equipment_ids One2many → maintenance.equipment
    comodel_name='maintenance.equipment' copy=False inverse_name='purchase_line_id' string='Equipments'
Public methods (1)
  • create_equipments(self)
REPOSITORY
REPOSITORYOCA/maintenance
GIT
GIThttps://github.com/OCA/maintenance.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/maintenance/tree/16.0/maintenance_purchase
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), CreuBlanca
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), CreuBlanca
COMMITTERS
COMMITTERSWeblate, oca-ci, Laurent Stukkens
WEBSITE
WEBSITEhttps://github.com/OCA/maintenance
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:48
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/maintenance:
    - maintenance_account
    - maintenance_product
odoo/odoo:
    - maintenance
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - product
    - uom
    - account
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - purchase_stock
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
hr_equipment_view_form equipment.form maintenance.equipment xpath Inherits maintenance.hr_equipment_view_form
purchase_order_form_view purchase.order.form (in maintenance_purchase) purchase.order xpath Inherits purchase.purchase_order_form
Models touched (3)

New fields (2)
  • purchase_id Many2one → purchase.order
    comodel_name='purchase.order' readonly=True related='purchase_line_id.order_id' string='Purchase'
  • purchase_line_id Many2one → purchase.order.line
    comodel_name='purchase.order.line' readonly=True
Public methods (0)

No public methods.

New fields (1)
  • equipment_count Integer
    compute='_compute_equipment_count'
Public methods (3)
  • action_view_equipments(self)
  • button_approve(self, force=False)
  • unlink(self)

New fields (3)
  • equipment_category_id Many2one → maintenance.equipment.category
    comodel_name='maintenance.equipment.category' compute='_compute_equipment_category_id' readonly=False store=True string='Equipment Category'
  • equipment_count Integer
    compute='_compute_equipment_count'
  • equipment_ids Many2many → maintenance.equipment
    comodel_name='maintenance.equipment' copy=False string='Equipments'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/maintenance
GIT
GIThttps://github.com/OCA/maintenance.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/maintenance/tree/14.0/maintenance_purchase
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), CreuBlanca
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), CreuBlanca
COMMITTERS
COMMITTERSEnric Tobella, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/maintenance
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/maintenance:
    - maintenance_account
    - maintenance_product
odoo/odoo:
    - maintenance
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - product
    - uom
    - account
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - purchase_stock
    - stock_account
    - stock
    - barcodes
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
hr_equipment_view_form equipment.form maintenance.equipment xpath Inherits maintenance.hr_equipment_view_form
purchase_order_form_view purchase.order.form (in maintenance_purchase) purchase.order xpath Inherits purchase.purchase_order_form
Models touched (3)

New fields (2)
  • purchase_id Many2one → purchase.order
    comodel_name='purchase.order' readonly=True related='purchase_line_id.order_id' string='Purchase'
  • purchase_line_id Many2one → purchase.order.line
    comodel_name='purchase.order.line' readonly=True
Public methods (0)

No public methods.

New fields (1)
  • equipment_count Integer
    compute='_compute_equipment_count'
Public methods (3)
  • action_view_equipments(self)
  • button_approve(self, force=False)
  • unlink(self)

New fields (3)
  • equipment_category_id Many2one → maintenance.equipment.category
    comodel_name='maintenance.equipment.category' compute='_compute_equipment_category_id' readonly=False store=True string='Equipment Category'
  • equipment_count Integer
    compute='_compute_equipment_count'
  • equipment_ids Many2many → maintenance.equipment
    comodel_name='maintenance.equipment' copy=False string='Equipments'
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/maintenance
PULL REQUEST
PULL REQUEST[17.0][BACKPORT] maintenance_purchase: Backport from 18.0 to 17.0 (#552)