Repository
OCA/account-invoicing · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting & Finance
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-invoicing
Last tracking update
2026-08-07 09:06:23
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Maksym Yankin, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
openupgradelib, requests
System dependencies
None
Required by
partner_invoicing_mode_at_shipping
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

Code Analysis

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…