Account Invoice Line Default Account

account_invoice_line_default_account
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/16.0/account_invoice_line_default_account
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Therp BV, BCIM
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Therp BV, BCIM
COMMITTERS
COMMITTERSDenis Roussel, Weblate, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:52
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_partition
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_partner_expense_property_form res.partner.property.form.inherit res.partner field Inherits account.view_partner_property_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • write(self, vals)

New fields (4)
  • auto_update_account_expense Boolean
    default=True help='When an account is selected on an invoice line, automatically assign it as default expense account' args: 'Autosave Selection for Expense Account on Invoice Line'
  • auto_update_account_income Boolean
    default=True help='When an account is selected on an invoice line, automatically assign it as default income account' args: 'Autosave Selection for Income Account on Invoice Line'
  • property_account_expense Many2one → account.account
    company_dependent=True domain=<expr> help='Default counterpart account for purchases on invoice lines' string='Default Expense Account' args: 'account.account'
  • property_account_income Many2one → account.account
    company_dependent=True domain=<expr> help='Default counterpart account for sales on invoice lines' string='Default Income Account' args: 'account.account'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/12.0/account_invoice_line_default_account
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Therp BV, BCIM
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Therp BV, BCIM
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Weblate, OCA-git-bot, sergiocorato, Simone Rubino
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_partner_expense_property_form res.partner.property.form.inherit res.partner field Inherits account.view_partner_property_form
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (4)
  • auto_update_account_expense Boolean
    default=True help='When an account is selected on an invoice line, automatically assign it as default expense account' args: 'Autosave Selection for Expense Account on Invoice Line'
  • auto_update_account_income Boolean
    default=True help='When an account is selected on an invoice line, automatically assign it as default income account' args: 'Autosave Selection for Income Account on Invoice Line'
  • property_account_expense Many2one → account.account
    company_dependent=True domain=<expr> help='Default counterpart account for purchases on invoice lines' string='Default Expense Account' args: 'account.account'
  • property_account_income Many2one → account.account
    company_dependent=True domain=<expr> help='Default counterpart account for sales on invoice lines' string='Default Income Account' args: 'account.account'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/6.1/account_invoice_line_default_account
VERSION
VERSION 6.1.r005
CATEGORY
CATEGORYAccounting
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Therp BV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Therp BV
COMMITTERS
COMMITTERSAlexandre Fayolle, Ronald Portier
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:04:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - account
    - base_setup
    - product
    - process
    - decimal_precision
    - analytic
    - board
    - edi
    - email_template
    - mail
    - base_tools
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
When entering purchase invoices directly, the user has
to select an account which will be used as a counterpart in the generated
move lines. However, 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'. 
This module will add a default counterpart account to a partner (supplier
only), comparable to the similiar field in product. When a supplier invoice
is entered, withouth a product, the field from partner will be used as default.
Also when an expense account is entered on an invoice line (not automatically
selectd for a product), the expense account will be automatically linked to
the partner - unless explicitly disabled in the partner record.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_partner_expense_property_form res.partner.property.form.inherit res.partner field Inherits account.view_partner_property_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • onchange_account_id(self, cr, uid, ids, product_id, partner_id, inv_type, fposition_id, account_id)

New fields (0)

No new fields.

Public methods (0)

No public methods.