Cost-Revenue Spread Contract

account_spread_contract
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/11.0/account_spread_contract
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Onestein
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Onestein
COMMITTERS
COMMITTERSAndrea, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/account-financial-tools/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-financial-tools:
    - account_spread_cost_revenue
OCA/contract:
    - contract
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - analytic
    - web_planner
    - portal
    - http_routing
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
account_analytic_account_recurring_form_form account.analytic.account xpath Inherits contract.account_analytic_account_recurring_form_form
view_account_spread_contract_line_link_wizard account.spread.contract.line.link.wizard form New
view_account_spread_template account.spread.template header Inherits account_spread_cost_revenue.view_account_spread_template
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • spread_check Selection
    compute='_compute_spread_check' args: [('linked', 'Linked'), ('unlinked', 'Unlinked'), ('unavailable', 'Unavailable')]
  • spread_template_id Many2one → account.spread.template
    copy=False string='Spread Template' args: 'account.spread.template'
Public methods (1)
  • spread_details(self)
    @api.multi
    Button on the contract lines tree view of the contract form to show the spread template form view.

New fields (5)
  • company_id Many2one → res.company
    required=True string='Company' args: 'res.company'
  • contract_id Many2one
    readonly=True related='contract_line_id.analytic_account_id'
  • contract_line_id Many2one → account.analytic.invoice.line
    readonly=True required=True string='Contract Line' args: 'account.analytic.invoice.line'
  • contract_type Selection
    readonly=True related='contract_line_id.analytic_account_id.contract_type'
  • spread_template_id Many2one → account.spread.template
    required=True string='Spread Template' args: 'account.spread.template'
Public methods (1)
  • confirm(self)
    @api.multi

New fields (1)
  • contract_line_ids One2many → account.analytic.invoice.line
    string='Contract Lines' args: 'account.analytic.invoice.line', 'spread_template_id'
Public methods (1)
  • action_unlink_contract_line(self)
    @api.multi