OdooWiki OCA HUB

Maintenance Account

maintenance_account folder_open OCA/maintenance open_in_new
Maintenance License: AGPL-3

This module automatically creates the equipment when validating the purchase invoices.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

When you validate a vendor bill, Odoo automatically creates maintenance equipment for each unit of a product marked as maintainable. A button on the bill shows how many equipments were created and links to them.

This module links vendor bills to maintenance equipment. When you post a vendor bill (a purchase document), Odoo looks at each invoice line whose product is flagged as maintainable. For every unit in the line quantity, it automatically creates a maintenance equipment record, copying the product, the vendor, the bill reference and the bill date. The equipment name comes from the invoice line description; if the description has several lines, the first line becomes the name and the rest becomes a note.

On the vendor bill form you get a new "Equipment(s)" button in the top button box showing how many equipments are linked to the bill. Clicking it opens the list of those equipments, or directly the equipment form if there is only one. Invoice lines also get an "Equipment Category" column (hidden by default) that is filled automatically from the product category, and a hidden link to the created equipments.

On the equipment form, a new "Move" field shows the vendor bill it came from. If you delete a vendor bill, the link between the bill and its equipments is removed, but the equipments themselves are kept.

This affects account.move, account.move.line and maintenance.equipment, and is visible to users with billing access rights.

Depends on

Models and fields (3)
  • account.move · extends an existing modelequipment_count
  • account.move.line · extends an existing modelequipment_ids (Equipments), equipment_count, equipment_category_id (Equipment Category)
  • maintenance.equipment · extends an existing modelmove_id (Move), move_line_id (Move line)

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 6 confirmed, 3 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/maintenance.

terminal Installation and usage

OCA documentation · Odoo 18.0

To use this module, you need to:

  • Go to Invoicing \> Vendor \> Bills and create a new one with any product with the "Can be Maintenance" field checked.
  • Confirm the invoice.
  • A new equipment category linked to the product line has been created (if the product category did not already have one linked).
  • A smart-button is displayed with the equipments created (as many equipments as the quantity of product lines are created).

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.