Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 17.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.22 MB
Module directory on disk
Code analysis 1 migration note 10 models 10 views 0 HTTP endpoints

Description

This module introduces a certification workflow between sales orders and invoicing, commonly used in construction and large-scale contracting industries.

Instead of invoicing directly from sales orders, this module allows the creation of certifications that represent approved progress or partial completion. These certifications can then generate invoices, optionally applying retention amounts (withholding a percentage of the payment until final project acceptance).

Key Features:

  • Add a certification step between sales and invoicing.
  • Generate invoices based on certified quantities.
  • Support for configurable retention percentages per certification.
  • Tracks invoiced vs. certified amounts for better financial oversight at sale level.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Glue modules
None

Code analysis

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

Views touched 10

XML IDNameModelTypeStatus
account_invoice_form Account Invoice account.move form Inherits account.view_move_form
report_certification report_certification ir.ui.view qweb New
report_certification_summary_list report_certification_summary_list ir.ui.view qweb New
report_certification_summary_totals report_certification_summary_totals ir.ui.view qweb New
view_certification_invoice_wizard_form certification.invoice.wizard.form certification.invoice.wizard form New
view_certification_line_tree certification.line.tree certification.line tree New
view_certification_wizard_form certification.wizard.form certification.wizard form New
view_order_certifications_form order.certification.form order.certification form New
view_order_certifications_tree order.certification.tree order.certification tree New
view_order_form_certify sale.order.form.certify sale.order form Inherits sale.view_order_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 10

New fields (2)
  • certification_count Integer
    compute='_compute_origin_certification_count'
  • retention_invoice Boolean
    help='Indicates if this invoice is a retention invoice.'
Public methods (3)
  • action_view_source_certifications(self)
  • button_cancel(self)
  • unlink(self)

New fields (2)
  • certification_line_ids Many2many → certification.line
    copy=False readonly=True string='Certification Lines' args: 'certification.line', 'certification_line_invoice_rel', 'invoice_line_id', 'certification_line_id'
  • retention_invoice_line Many2one → account.move.line
    comodel_name='account.move.line' copy=False help='The retention invoice line related to this line.' ondelete='restrict'
Public methods (2)
  • create_retention_invoice_line(self, certification)
  • find_retention_invoice(self, certification)

New fields (0)

No new fields.

Public methods (1)
  • reverse_moves(self, is_modify=False)

New fields (5)
  • order_certification_ids Many2many → order.certification
    default=<expr> args: 'order.certification'
  • retention_monies Boolean
    default=False string='Apply Retention Monies'
  • retention_percentage Float
    default=0.05
  • retention_type Selection
    default='percentage' selection=[('percentage', 'Percentage'), ('value', 'Value')]
  • retention_value Float
    default=0.0
Public methods (1)
  • create_invoices(self)

New fields (14)
  • certification_id Many2one → order.certification
    ondelete='cascade' required=True string='Certification' args: 'order.certification'
  • company_id Many2one
    index=True precompute=True readonly=True related='certification_id.company_id' store=True
  • display_type Selection
    default=False selection=[('line_section', 'Section'), ('line_note', 'Note')]
  • invoice_lines Many2many → account.move.line
    column1='certification_line_id' column2='invoice_line_id' comodel_name='account.move.line' copy=False relation='certification_line_invoice_rel'
  • invoice_status Selection
    compute='_compute_invoice_status' selection=[('invoiced', 'Fully Invoiced'), ('to invoice', 'To Invoice'), ('no', 'Nothing to Invoice')] store=True
  • name Text
    string='Description'
  • product_id Many2one → product.product
    check_company=True comodel_name='product.product' ondelete='restrict' string='Product'
  • product_uom_id Many2one → uom.uom
    comodel_name='uom.uom' compute='_compute_product_uom_id' ondelete='restrict' precompute=True readonly=False store=True string='Unit of Measure'
  • qty_invoiced Float
    compute='_compute_qty_invoiced' digits='Product Unit of Measure' store=True string='Invoiced Quantity'
  • qty_to_invoice Float
    compute='_compute_qty_to_invoice' digits='Product Unit of Measure' store=True string='Quantity To Invoice'
  • quantity Float
    digits='Product Unit of Measure'
  • sale_line_ids Many2many → sale.order.line
    copy=False readonly=True string='Sales Order Lines' args: 'sale.order.line', 'sale_order_line_certif_line_rel', 'certification_line_id', 'order_line_id'
  • sequence Integer
  • state Selection
    copy=False precompute=True related='certification_id.state' store=True string='Certification Status'
Public methods (0)

No public methods.

New fields (4)
  • certification_type Selection
    default='regular' required=True args: [('regular', 'Regular'), ('percentage', 'Percentage'), ('chapters', 'Chapters')]
  • chapter_ids Many2many → sale.order.line
    domain="\n [('order_id', 'in', sale_order_ids),\n ('display_type', '=', 'line_section')]\n " string='Certifiable Chapters' args: 'sale.order.line'
  • percentage Float
    default=1
  • sale_order_ids Many2many → sale.order
    default=<expr> args: 'sale.order'
Public methods (1)
  • create_certifications(self)

New fields (10)
  • certification_date Datetime
    default=fields.Datetime.now string='Date'
  • certification_line_ids One2many → certification.line
    string='Lines' args: 'certification.line', 'certification_id'
  • chapter_cert_ids Many2many → sale.order.line
    string='Certified Chapters' args: 'sale.order.line'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> index=True required=True
  • invoice_count Integer
    compute='_compute_get_invoiced'
  • invoice_ids Many2many → account.move
    comodel_name='account.move' compute='_compute_get_invoiced' copy=False string='Invoices'
  • invoice_status Selection
    compute='_compute_invoice_status' selection=INVOICE_STATUS store=True
  • name Char
    copy=False default=<expr> required=True string='Certification'
  • order_id Many2one → sale.order
    ondelete='cascade' required=True string='Sale Order' args: 'sale.order'
  • state Selection
    default='draft' required=True selection=[('draft', 'Draft'), ('confirmed', 'Confirmed'), ('cancel', 'Cancelled')]
Public methods (5)
  • action_view_invoice(self, invoices=False)
  • button_back2draft(self)
  • button_cancel(self)
  • button_confirm(self)
  • create_invoice(self, retention=False, retention_value=0.0)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • certification_count Integer
    compute='_compute_certification_count'
  • certification_ids One2many → order.certification
    string='Certifications' args: 'order.certification', 'order_id'
  • certified_percentage Float
    compute='_compute_certified_percentage' digits=(16, 2) string='Certified Quantities'
  • is_certifiable Boolean
    default=False help='Check if the order is in a state that allows to create certifications' string='Certifiable?'
  • retention_invoice_count Integer
    compute='_compute_retention_invoices_count' string='Invoice Count'
Public methods (4)
  • action_view_certifications(self, certifications=False)
  • action_view_retention_invoices(self)
  • create_certifications(self, mode='regular', options=None)
  • open_certify_wizard(self)

New fields (5)
  • certifiable_quantity Float
    compute='_compute_certifiable_quantity'
  • certified_lines Many2many → certification.line
    column1='order_line_id' column2='certification_line_id' comodel_name='certification.line' copy=False relation='sale_order_line_certif_line_rel'
  • certified_status Selection
    compute='_compute_certified_status' selection=[('certified', 'Fully Certified'), ('to certify', 'To Certify'), ('no', 'Nothing to Certify')] store=True string='Certify Status'
  • qty_certified Float
    compute='_compute_qty_certified' digits='Product Unit of Measure' store=True string='Certified Quantity'
  • qty_to_certify Float
    compute='_compute_qty_to_certify' digits='Product Unit of Measure' store=True string='Quantity To Certify'
Public methods (0)

No public methods.