Repository
OCA/account-analytic · module folder · Try on Runboat
Module version
4.1.0
Category
Accounting/Accounting
Folder size
0.1 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-analytic
Last tracking update
2026-08-07 07:47:33
Authors
Odoo Community Association (OCA), Open Source Integrators
Maintainers
Odoo Community Association (OCA), Open Source Integrators
Committers
GitHub, Daniel Reis, Weblate, OCA Transbot, OCA-git-bot, oca-travis, oca-ci, Chandresh Thakkar, Wesley Oliveira, RLeeOSI
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
account_analytic_wip, mrp_analytic_cost
Description

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
product_search_form_view product.product.search.cost.type product.product search Inherits product.product_search_form_view
view_analytic_line_filter Analytic Line Filter: add ABC account.analytic.line search Inherits analytic.view_account_analytic_line_filter
view_analytic_line_form Analytic Line Form: add ABC account.analytic.line form Inherits account.view_account_analytic_line_form_inherit_account
view_analytic_line_tree Analytic Line Tree: add ABC account.analytic.line tree Inherits analytic.view_account_analytic_line_tree
view_form_activity_cost_rule view.form.activity.cost.rule activity.cost.rule form New
view_product_template_form Product Variant: add Activity Costs product.product form Inherits product.product_normal_form_view
view_tree_activity_cost_rule view.tree.activity.cost.rule activity.cost.rule tree New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (5)
  • activity_cost_id Many2one → activity.cost.rule
    args: 'activity.cost.rule', 'Activity Cost Rule'
  • amount_abcost Monetary
    compute='_compute_amount_abcost' help='Amount on child Analytic Items, rolled up to the parent' store=True args: 'Breakdown Amount'
  • child_ids One2many → account.analytic.line
    string='Related Analytic Items' args: 'account.analytic.line', 'parent_id'
  • parent_id Many2one → account.analytic.line
    ondelete='cascade' args: 'account.analytic.line', 'Parent Analytic Item'
  • unit_abcost Float
    compute='_compute_unit_abcost' help='Quantity set on child Analytic Items, rolled up to the parent' store=True args: 'Breakdown Quantity'
Public methods (1)
  • create(self, vals)
    @api.model

New fields (6)
  • active Boolean
    default=True
  • factor Float
    default=1 args: 'Qty. Factor'
  • name Char
    args: 'Description'
  • parent_id Many2one → product.product
    ondelete='cascade' args: 'product.product', 'Activity Product'
  • product_id Many2one → product.product
    required=True string='Cost Product' args: 'product.product'
  • standard_price Float
    readonly=False related='product_id.standard_price'
Public methods (1)
  • create(self, vals)
    @api.model

New fields (2)
  • activity_cost_ids One2many → activity.cost.rule
    help='This product will also generate analytic items for these Activity Costs' string='Activity Costs' args: 'activity.cost.rule', 'parent_id'
  • is_cost_type Boolean
    string='Is Cost Driver'
Public methods (2)
  • constrains_is_cost_type(self)
    @api.constrains('is_cost_type', 'activity_cost_ids')
  • onchange_for_standard_price(self)
    @api.onchange('activity_cost_ids')
    Rollup Activity Costs to parent Cost Type