Skip to content
Health
85/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 8 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 5 Odoo series since 15.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis 0 migration notes 6 models 3 views 0 HTTP endpoints

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 IDNameModelTypeStatus
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

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • related_action_open_invoice(self)
    Open a form view with the invoice related to the job.

New fields (1)
  • invoicing_mode_standard_last_execution Datetime
    help='Last execution of standard invoicing.' string='Last execution (standard)'
Public methods (0)

No public methods.

New fields (1)
  • invoicing_mode_standard_last_execution Datetime
    related='company_id.invoicing_mode_standard_last_execution'
Public methods (0)

No public methods.

New fields (3)
  • invoicing_mode Selection
    default='standard' args: [('standard', 'Standard')]
  • next_invoice_date Date
    help='This is the date at which the next invoice will be generated.'
  • one_invoice_per_order Boolean
    help='Do not group sale order into one invoice.'
Public methods (0)

No public methods.

New fields (2)
  • invoicing_mode Selection
    index=True related='partner_invoice_id.invoicing_mode' store=True
  • one_invoice_per_order Boolean
    compute='_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=False store=True
Public methods (2)
  • cron_generate_standard_invoices(self)
    @api.model
  • generate_invoices(self, companies=None, invoicing_mode='standard', last_execution_field='invoicing_mode_standard_last_execution')
    @api.model
    Generate invoices in job queues depending on the invoicing mode (stadndard by default)

Loading…

Loading…

Loading…

Loading…

Loading…