Partner Invoicing Mode
partner_invoicing_mode · OCA/account-invoicing
-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 5 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Description
This is a base module for implementing different invoicing mode for customers. It adds a selection field invoicing_mode in the Invoicing tab (if enterprise account_accountant is installed -> Accounting tab) of the partner with a default value (Odoo standard invoicing mode).
It can be used on its own to generate automatically (e.g.: each day) the invoices for standard invoicing mode.
In core, Odoo is grouping invoicing from a group of sale orders on:
- Company
- Partner
- Currency
This module uses grouping on those keys:
- Company
- Invoiced partner
- Currency
- Payment term (as this can be selected on sale order level)
The following modules use it to install specific invoicing mode :
- partner_invoicing_mode_at_shipping
- partner_invoicing_mode_monthly
- partner_invoicing_mode_weekly
Dependencies
- Odoo dependencies
- Python dependencies
- openupgradelib, requests
- System dependencies
- None
- Required by
- partner_invoicing_mode_at_shipping
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings | form | Inherits account.res_config_settings_view_form | |
view_order_form |
sale.order.form (in partner_invoicing_mode) | sale.order | form | Inherits sale.view_order_form |
view_partner_property_form |
view_partner_property_form_base_invoicing_mode | res.partner | form | Inherits account.view_partner_property_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
related_action_open_invoice(self)Open a form view with the invoice related to the job.
-
invoicing_mode_standard_last_executionDatetimehelp='Last execution of standard invoicing.'string='Last execution (standard)'
No public methods.
-
invoicing_mode_standard_last_executionDatetimerelated='company_id.invoicing_mode_standard_last_execution'
No public methods.
-
invoicing_modeSelectiondefault='standard' args: [('standard', 'Standard')] -
next_invoice_dateDatehelp='This is the date at which the next invoice will be generated.' -
one_invoice_per_orderBooleanhelp='Do not group sale order into one invoice.'
No public methods.
-
invoicing_modeSelectionindex=Truerelated='partner_invoice_id.invoicing_mode'store=True -
one_invoice_per_orderBooleancompute='_compute_one_invoice_per_order'help='You can check or uncheck this if you want the periodic invoicing grouping this sale order with other ones or not.'readonly=Falsestore=True
-
cron_generate_standard_invoices(self)@api.model -
generate_invoices(self, companies=None, invoicing_mode='standard', last_execution_field='invoicing_mode_standard_last_execution')@api.modelGenerate invoices in job queues depending on the invoicing mode (stadndard by default)
Loading…
Loading…
Loading…
Loading…
Loading…