Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 8 Odoo series since 12.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.18 MB
Module directory on disk
Code analysis 0 migration notes 5 models 9 views 0 HTTP endpoints

Description

By standard feature, user can gradually create partial invoices, one by one. This module add ability to create invoices based on the predefined invoice plan, either all at once, or one by one. The plan support both advance invoice and installment invoices.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

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

Views touched 9

XML IDNameModelTypeStatus
view_order_filter_invoice_plan view.order.search.invoice.plan sale.order search Inherits sale.view_sales_order_filter
view_order_form_invoice_plan view.order.form.invoice.plan sale.order form Inherits sale.view_order_form
view_order_tree_invoice_plan view.order.tree.invoice.plan sale.order tree Inherits sale.view_order_tree
view_sale_create_invoice_plan Create Invoice Plan sale.create.invoice.plan form New
view_sale_invoice_plan_filter view.sale.invoice.plan.filter sale.invoice.plan search New
view_sale_invoice_plan_form view.sale.invoice.plan.form sale.invoice.plan form New
view_sale_invoice_plan_tree view.sale.invoice.plan.tree sale.invoice.plan list New
view_sale_invoice_plan_tree_readonly view.sale.invoice.plan.tree sale.invoice.plan list New
view_sale_make_planned_invoice Invoice Orders sale.make.planned.invoice form New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • advance Boolean
    default=False string='Advance on 1st Invoice'
  • installment_date Date
    default=fields.Date.context_today required=True
  • interval Integer
    default=1 required=True
  • interval_type Selection
    default='month' required=True args: [('day', 'Day'), ('month', 'Month'), ('year', 'Year')]
  • num_installment Integer
    default=0 required=True string='Number of Installment'
Public methods (1)
  • sale_create_invoice_plan(self)

New fields (14)
  • amount Float
    compute='_compute_amount' digits='Product Price' help='This amount will be used to calculate the percent' inverse='_inverse_amount'
  • amount_invoiced Float
    compute='_compute_invoiced' store=True
  • installment Integer
  • invoice_move_ids Many2many → account.move
    column1='plan_id' column2='move_id' relation='sale_invoice_plan_invoice_rel' string='Invoices' args: 'account.move'
  • invoice_type Selection
    default='installment' required=True string='Type' args: [('advance', 'Advance'), ('installment', 'Installment')]
  • invoiced Boolean
    compute='_compute_invoiced' help='If this line already invoiced' store=True string='Invoice Created'
  • last Boolean
    compute='_compute_last' help='Last installment will create invoice use remaining amount' string='Last Installment'
  • no_edit Boolean
    compute='_compute_no_edit'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' index=True related='sale_id.partner_id' store=True string='Customer'
  • percent Float
    digits='Sales Invoice Plan Percent' help='This percent will be used to calculate new quantity'
  • plan_date Date
    required=True
  • sale_id Many2one → sale.order
    comodel_name='sale.order' index=True ondelete='cascade' string='Sales Order'
  • state Selection
    index=True related='sale_id.state' store=True string='Status'
  • to_invoice Boolean
    compute='_compute_to_invoice' help='If this line is ready to create new invoice' string='Next Invoice'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • create_invoices_by_plan(self)

New fields (6)
  • invoice_plan_ids One2many → sale.invoice.plan
    comodel_name='sale.invoice.plan' copy=False inverse_name='sale_id'
  • invoice_plan_pending Integer
    compute='_compute_invoice_plan_pending' store=True string='Pending plans'
  • invoice_plan_process Boolean
    compute='_compute_invoice_plan_process' help='At least one invoice plan line pending to create invoice' string='Invoice Plan In Process'
  • invoice_plan_total_amount Monetary
    compute='_compute_invoice_plan_total'
  • invoice_plan_total_percent Float
    compute='_compute_invoice_plan_total' string='Percent'
  • use_invoice_plan Boolean
    copy=False default=False
Public methods (3)
  • action_confirm(self)
  • create_invoice_plan(self, num_installment, installment_date, interval, interval_type, advance)
  • remove_invoice_plan(self)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…