OdooWiki OCA HUB

Account Invoice Line Default Account

account_invoice_line_default_account folder_open OCA/account-invoicing open_in_new
Accounting License: AGPL-3

When entering sales or purchase invoices directly, the user has to select an account which will be used as a counterpart in the generated move lines. Each supplier will mostly be linked to one account. For instance when ordering paper from a supplier that deals in paper, the counterpart account will mostly be something like 'office expenses'. The same principle has been applied for customers. This module will add a default counterpart expense and income account to a partner, comparable to the similiar field in product. When an invoice is entered, withouth a product, the field from partner will be used as default. Also when an account is entered on an invoice line (not automatically selected for a product), the account will be automatically linked to the partner as default expense or income account, unless explicitly disabled in the partner record.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets you set a default income and expense account on each customer or supplier, so invoice lines without a product automatically pick the right account, and accounts typed on invoice lines can be saved back to the partner.

This module adds two new fields to the partner form, in the Accounting tab next to the usual receivable and payable accounts: a Default Income Account and a Default Expense Account. Only income-type accounts can be chosen for the first and only expense-type accounts for the second.

When you create a customer invoice or credit note line without a product, the line automatically takes the partner's default income account. On supplier invoices and refunds, the line automatically takes the partner's default expense account. This saves you from picking the counterpart account manually every time.

Each partner also has two checkboxes, both enabled by default: "autosave from invoice line" for income and for expense. When they are on, any account you enter manually on an invoice line (for a line without a product) is written back to the partner as its new default account. Lines that simply use the journal's default account are ignored, and only the first valid line of each invoice is used to avoid repeated updates.

The feature is available to users with invoicing rights and works on res.partner and account.move.line.

Depends on

Models and fields (2)
  • res.partner · extends an existing modelproperty_account_income (Default Income Account), property_account_expense (Default Expense Account), auto_update_account_income (Autosave Selection for Income Account on Invoice Line), auto_update_account_expense (Autosave Selection for Expense Account on Invoice Line)
  • account.move.line · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/account-invoicing.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.