Sales Invoice Plan
sale_invoice_plan · OCA/sale-workflow
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 8 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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)
-
advanceBooleandefault=Falsestring='Advance on 1st Invoice' -
installment_dateDatedefault=fields.Date.context_todayrequired=True -
intervalIntegerdefault=1required=True -
interval_typeSelectiondefault='month'required=True args: [('day', 'Day'), ('month', 'Month'), ('year', 'Year')] -
num_installmentIntegerdefault=0required=Truestring='Number of Installment'
-
sale_create_invoice_plan(self)
New fields (14)
-
amountFloatcompute='_compute_amount'digits='Product Price'help='This amount will be used to calculate the percent'inverse='_inverse_amount' -
amount_invoicedFloatcompute='_compute_invoiced'store=True -
installmentInteger -
invoice_move_idsMany2many → account.movecolumn1='plan_id'column2='move_id'relation='sale_invoice_plan_invoice_rel'string='Invoices' args: 'account.move' -
invoice_typeSelectiondefault='installment'required=Truestring='Type' args: [('advance', 'Advance'), ('installment', 'Installment')] -
invoicedBooleancompute='_compute_invoiced'help='If this line already invoiced'store=Truestring='Invoice Created' -
lastBooleancompute='_compute_last'help='Last installment will create invoice use remaining amount'string='Last Installment' -
no_editBooleancompute='_compute_no_edit' -
partner_idMany2one → res.partnercomodel_name='res.partner'index=Truerelated='sale_id.partner_id'store=Truestring='Customer' -
percentFloatdigits='Sales Invoice Plan Percent'help='This percent will be used to calculate new quantity' -
plan_dateDaterequired=True -
sale_idMany2one → sale.ordercomodel_name='sale.order'index=Trueondelete='cascade'string='Sales Order' -
stateSelectionindex=Truerelated='sale_id.state'store=Truestring='Status' -
to_invoiceBooleancompute='_compute_to_invoice'help='If this line is ready to create new invoice'string='Next Invoice'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
create_invoices_by_plan(self)
New fields (6)
-
invoice_plan_idsOne2many → sale.invoice.plancomodel_name='sale.invoice.plan'copy=Falseinverse_name='sale_id' -
invoice_plan_pendingIntegercompute='_compute_invoice_plan_pending'store=Truestring='Pending plans' -
invoice_plan_processBooleancompute='_compute_invoice_plan_process'help='At least one invoice plan line pending to create invoice'string='Invoice Plan In Process' -
invoice_plan_total_amountMonetarycompute='_compute_invoice_plan_total' -
invoice_plan_total_percentFloatcompute='_compute_invoice_plan_total'string='Percent' -
use_invoice_planBooleancopy=Falsedefault=False
-
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…