Sale Order Change Analytic Account

sale_order_change_analytic_account
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/14.0/sale_order_change_analytic_account
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSsbejaoui, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sale_order_change_analytic_wizard_form sale.order.change.analytic form New
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • action_open_sale_order_change_analytic_wizard(self)

New fields (3)
  • current_analytic_account_id Many2one
    ondelete='cascade' readonly=True related='sale_id.analytic_account_id'
  • new_analytic_account_id Many2one → account.analytic.account
    comodel_name='account.analytic.account' ondelete='cascade' required=True string='New Analytic Account'
  • sale_id Many2one → sale.order
    comodel_name='sale.order' domain=[('state', '=', 'sale')] ondelete='cascade' readonly=True required=True string='Sale order'
Public methods (2)
  • action_update(self)
    Action to update the analytic account on target sale order :return: dict/action
  • default_get(self, fields_list)
    @api.model
    Inherit to auto fill the sale_id depending on the context :param fields_list: list of str :return: dict