-
- Downloads
[REF] *: Analytic Apocalypse
The goal of this commit is to get rid of the analytic tags as they were confusing, serving tag purposes as well as distribution on analytic accounts. Everywhere analytic tags were used as a distribution have been replaced with a new widget that will dispatch distribution on analytic accounts. If there was an analytic account field next to the tags, it has been included in the distribution. Analytic tags that were used simply as information tags have been removed. To fill the new widget, there are now 2 kind of rules that will help fill and prefill it. The first are applicability: previous groups have been removed, and have by replaced by plans. Each account is required to have a plan. These plans define when they are available in the widget: a default applicability per plan and applicability lines that can specify rules following the context of the widget. The second one are distribution models, that will replace previous default rules but follow the same principles. The accounts (and so the plans) that will be given by the distribution model can override the applicability rules from before. closes odoo/odoo#98914 Related: odoo/upgrade#3885 Related: odoo/enterprise#30743 Signed-off-by:William André (wan) <wan@odoo.com> Co-authored-by:
Habib (ayh) <ayh@odoo.com>
Showing
- addons/account/__manifest__.py 4 additions, 2 deletionsaddons/account/__manifest__.py
- addons/account/models/__init__.py 3 additions, 1 deletionaddons/account/models/__init__.py
- addons/account/models/account_analytic_account.py 64 additions, 0 deletionsaddons/account/models/account_analytic_account.py
- addons/account/models/account_analytic_default.py 0 additions, 68 deletionsaddons/account/models/account_analytic_default.py
- addons/account/models/account_analytic_distribution_model.py 37 additions, 0 deletionsaddons/account/models/account_analytic_distribution_model.py
- addons/account/models/account_analytic_line.py 40 additions, 108 deletionsaddons/account/models/account_analytic_line.py
- addons/account/models/account_analytic_plan.py 35 additions, 0 deletionsaddons/account/models/account_analytic_plan.py
- addons/account/models/account_move.py 5 additions, 14 deletionsaddons/account/models/account_move.py
- addons/account/models/account_move_line.py 69 additions, 123 deletionsaddons/account/models/account_move_line.py
- addons/account/models/account_move_line_tax_details.py 2 additions, 2 deletionsaddons/account/models/account_move_line_tax_details.py
- addons/account/models/account_reconcile_model.py 4 additions, 9 deletionsaddons/account/models/account_reconcile_model.py
- addons/account/models/account_tax.py 6 additions, 10 deletionsaddons/account/models/account_tax.py
- addons/account/models/res_config_settings.py 0 additions, 1 deletionaddons/account/models/res_config_settings.py
- addons/account/report/account_invoice_report.py 1 addition, 3 deletionsaddons/account/report/account_invoice_report.py
- addons/account/report/account_invoice_report_view.xml 0 additions, 11 deletionsaddons/account/report/account_invoice_report_view.xml
- addons/account/security/account_security.xml 0 additions, 8 deletionsaddons/account/security/account_security.xml
- addons/account/security/ir.model.access.csv 3 additions, 3 deletionsaddons/account/security/ir.model.access.csv
- addons/account/tests/test_account_analytic.py 156 additions, 33 deletionsaddons/account/tests/test_account_analytic.py
- addons/account/tests/test_account_move_out_invoice.py 35 additions, 53 deletionsaddons/account/tests/test_account_move_out_invoice.py
- addons/account/tests/test_account_move_reconcile.py 3 additions, 2 deletionsaddons/account/tests/test_account_move_reconcile.py
Loading
Please register or sign in to comment