Repository
odoo/odoo · module folder
Module version
1.0
Category
Accounting/Accounting
Folder size
0.84 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-07 05:12:48
Authors
Maintainers
None
Committers
Xavier Morel, Christophe Simonis, Martin Trigaux, Odoo Translation Bot, Goffin Simon, Nicolas Martinelli, qdp-odoo, Damien Bouvy, Yannick Tivisse, Odoo Online, Jorge Pinna Puissant, wan, Xavier-Do, jerome hanke (jhk), Andrea Grazioso (agr-odoo), Sébastien Theys, Nasreddin (bon), fw-bot, Adrien Widart, momegahed, william, Florian Gilbert
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
account_analytic_default_hr_expense, account_analytic_default_purchase
Description
Set default values for your analytic accounts.
==============================================

Allows to automatically select analytic accounts based on criterions:
---------------------------------------------------------------------
    * Product
    * Partner
    * User
    * Company
    * Date
    

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings.view.form.inherit.account.analytic.default res.config.settings form Inherits account.res_config_settings_view_form
view_account_analytic_default_form account.analytic.default.form account.analytic.default form New
view_account_analytic_default_form_search account.analytic.default.search account.analytic.default search New
view_account_analytic_default_kanban account.analytic.default.kanban account.analytic.default kanban New
view_account_analytic_default_tree account.analytic.default.tree account.analytic.default tree New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (10)
  • account_id Many2one → account.account
    help='Select an accounting account which will use analytic account specified in analytic default (e.g. create new customer invoice or Sales order if we select this account, it will automatically take this as an analytic account)' ondelete='cascade' string='Account' args: 'account.account'
  • analytic_id Many2one → account.analytic.account
    string='Analytic Account' args: 'account.analytic.account'
  • analytic_tag_ids Many2many → account.analytic.tag
    string='Analytic Tags' args: 'account.analytic.tag'
  • company_id Many2one → res.company
    help='Select a company which will use analytic account specified in analytic default (e.g. create new customer invoice or Sales order if we select this company, it will automatically take this as an analytic account)' ondelete='cascade' string='Company' args: 'res.company'
  • date_start Date
    help='Default start date for this Analytic Account.' string='Start Date'
  • date_stop Date
    help='Default end date for this Analytic Account.' string='End Date'
  • partner_id Many2one → res.partner
    help='Select a partner which will use analytic account specified in analytic default (e.g. create new customer invoice or Sales order if we select this partner, it will automatically take this as an analytic account)' ondelete='cascade' string='Partner' args: 'res.partner'
  • product_id Many2one → product.product
    help='Select a product which will use analytic account specified in analytic default (e.g. create new customer invoice or Sales order if we select this product, it will automatically take this as an analytic account)' ondelete='cascade' string='Product' args: 'product.product'
  • sequence Integer
    help='Gives the sequence order when displaying a list of analytic distribution' string='Sequence'
  • user_id Many2one → res.users
    help='Select a user which will use analytic account specified in analytic default.' ondelete='cascade' string='User' args: 'res.users'
Public methods (1)
  • account_get(self, product_id=None, partner_id=None, account_id=None, user_id=None, date=None, company_id=None)
    @api.model

New fields (2)
  • analytic_account_id Many2one
    compute='_compute_analytic_account' copy=True readonly=False store=True
  • analytic_tag_ids Many2many
    compute='_compute_analytic_account' copy=True readonly=False store=True
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…