Purpose ======= Make it possible to compare analytic values between plans by inputting up to one account per plan on each line. For instance, if we have 2 plans: "Country" and "Product Type", with the following accounts | Country | Product Type | | ------- | ------------ | | BE | Drinks | | LU | Food | And the following invoices: * 1000€ of drinks in Belgium * 2000€ of food in Belgium * 3000€ of food in Luxemburg We want to be able to display the following pivot tables: | | Drinks | Food | Total | | --- | ------ | ---- | ----- | | BE | 1000 | 2000 | 3000 | | LU | 0 | 3000 | 3000 | | Tot | 1000 | 5000 | 6000 | | | Total | | ------ | ----- | | Food | 5000 | | * BE | 2000 | | * LU | 3000 | | Drinks | 1000 | | * BE | 1000 | | Total | 6000 | Implementation ============== * `ir.fields` are added/removed dynamically on `account.analytic.line` * Each analytic plan corresponds to one field on `account.analytic.line` * The fields are added dynamically in the views. * `account.analytic.plan` doesn't have a `company_id` field anymore, meaning that all the companies have access to all the plans. This means that the applicability fields and lines are now company dependent, and those can be used to know which fields/plans to display for which company. * There can no longer be one "Project" plan per company, even if the accounts of that project can still be owned by only one company. * There is now only one method to get the default (or "Project" plan), which is `_get_plan_columns` task-3497653 closes odoo/odoo#139225 Related: odoo/upgrade#5306 Related: odoo/enterprise#49226 Signed-off-by: William André (wan) <wan@odoo.com> Co-authored-by: william <wan@odoo.com> Co-authored-by: h4818 <ayh@odoo.com>
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
from . import test_access_rights
|
|
from . import test_burndown_chart
|
|
from . import test_project_base
|
|
from . import test_project_config
|
|
from . import test_project_flow
|
|
from . import test_project_milestone
|
|
from . import test_project_profitability
|
|
from . import test_project_recurrence
|
|
from . import test_project_sharing
|
|
from . import test_project_sharing_portal_access
|
|
from . import test_project_sharing_ui
|
|
from . import test_project_stage_multicompany
|
|
from . import test_project_subtasks
|
|
from . import test_project_tags_filter
|
|
from . import test_project_task_type
|
|
from . import test_project_ui
|
|
from . import test_project_update_access_rights
|
|
from . import test_project_update_flow
|
|
from . import test_project_update_ui
|
|
from . import test_portal
|
|
from . import test_multicompany
|
|
from . import test_personal_stages
|
|
from . import test_task_dependencies
|
|
from . import test_task_follow
|
|
from . import test_task_tracking
|
|
from . import test_project_report
|
|
from . import test_project_task_quick_create
|
|
from . import test_task_state
|
|
from . import test_project_task_mail_tracking_duration
|