Repository
OCA/manufacture-reporting · module folder · Try on Runboat
Module version
1.0.0
Category
Manufacture
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/manufacture-reporting
Last tracking update
2026-08-07 08:43:07
Authors
Odoo Community Association (OCA), ForgeFlow
Maintainers
Odoo Community Association (OCA), ForgeFlow
Committers
Weblate, OCA-git-bot, oca-ci, Arnau
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This modules extend the Manufacturing App adding a report that explodes
the bill of materials and show the stock available in the source
location.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
mrp_bom_current_stock_view_form mrp.bom.current.stock.form mrp.bom.current.stock form New
mrp_bom_current_stock_view_form2 mrp.bom.current.stock.form2 mrp.bom.current.stock form New
report_mrpbom_current_stock_pdf report_mrpbom_current_stock_pdf ir.ui.view qweb New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (7)
  • bom_id Many2one → mrp.bom
    comodel_name='mrp.bom' required=True string='Starting Bill of Materials'
  • line_ids One2many → mrp.bom.current.stock.line
    comodel_name='mrp.bom.current.stock.line' inverse_name='explosion_id'
  • location_id Many2one → stock.location
    comodel_name='stock.location' string='Starting location'
  • product_id Many2one → product.product
    comodel_name='product.product' domain="[('type', 'in', ['product', 'consu'])]" required=True string='Product Variant'
  • product_qty Float
    digits='Product Unit of Measure' related='bom_id.product_qty'
  • product_tmpl_id Many2one → product.template
    comodel_name='product.template' related='product_id.product_tmpl_id' string='Product Template'
  • product_uom_id Many2one → uom.uom
    comodel_name='uom.uom' related='bom_id.product_uom_id'
Public methods (1)
  • do_explode(self)

New fields (9)
  • bom_id Many2one → mrp.bom
    comodel_name='mrp.bom' readonly=True related='bom_line.bom_id' string='Parent BoM'
  • bom_level Integer
    readonly=True string='BoM Level'
  • bom_line Many2one → mrp.bom.line
    comodel_name='mrp.bom.line' readonly=True string='BoM line'
  • explosion_id Many2one → mrp.bom.current.stock
    comodel_name='mrp.bom.current.stock' readonly=True
  • location_id Many2one → stock.location
    comodel_name='stock.location' string='Source location'
  • product_id Many2one → product.product
    comodel_name='product.product' readonly=True string='Product Variant'
  • product_qty Float
    digits='Product Unit of Measure' readonly=True string='Product Quantity'
  • product_uom_id Many2one → uom.uom
    comodel_name='uom.uom' readonly=True string='Product Unit of Measure'
  • qty_available_in_source_loc Float
    compute='_compute_qty_available_in_source_loc' readonly=True string='Qty Available in Source'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • generate_xlsx_report(self, workbook, data, objects)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
160 days ago
Last activity
160 days ago
Repository
OCA/manufacture-reporting
Pull request
[19.0][MIG] mrp_bom_current_stock: Migration to 19.0 (#153)