Previously, all costs allocated to a task were associated, if set, to the analytic account of their project. This commit adds a deeper level of granularity, as the user will be able to override the project analytic account and add analytic tags. When creating timesheets or creating account move line related to SO linked to a task, the analytic account of the task is now taken into account rather than the one defined on the project. If an analytic account is set on the SO, it remains the default account used. If a task is related to an SOL and an invoice line is created from this SOL, the analytic tags of the task are also given to the account move line. If different analytic account are linked to a same SOL through the project using this SOL or the tasks using this SOL, than no default analytic account is set on the invoice line. PR : #70527 task-2458135
18 lines
572 B
Python
18 lines
572 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import analytic_account
|
|
from . import analytic_account_tag
|
|
from . import project_milestone
|
|
from . import project_project_stage
|
|
from . import project_task_recurrence
|
|
# `project_task_stage_personal` has to be loaded before `project`
|
|
from . import project_task_stage_personal
|
|
from . import project
|
|
from . import project_collaborator
|
|
from . import project_update
|
|
from . import res_config_settings
|
|
from . import res_partner
|
|
from . import digest
|
|
from . import ir_ui_menu
|