Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] analytic_mixin_analytic_accounts_and_plans #673

Open
wants to merge 2 commits into
base: 16.0
Choose a base branch
from

Conversation

norlinhenrik
Copy link

@norlinhenrik norlinhenrik commented Jul 21, 2024

This PR is based on #565. See also PR 1207 for account_financial_report.

account.move.line new fields:

  • analytic_account_ids (useful for account_financial_report)
  • analytic_account_names (introduced in [16.0][ADD] analytic_mixin_analytic_account #565)
  • analytic_plan_ids (introduced by me)
  • analytic_plan_names (for consistency, but I don't need it)

The compute method in account_financial_report (AGPL) is written for stored fields, with good performance.
The compute method in #565 (LGPL) is written for non-stored fields.

QUESTIONS

  1. If account_financial_report depends on this module for analytic_account_ids, will the performance suffer?
  2. If no dependency, and both modules introduce analytic_account_ids, can both be used in the same database?
  3. What should be the module name?

@pedrobaeza
Copy link
Member

Please avoid plurals in module names, and I would say that this requires a shorter name that summarizes the goal of the module.

@norlinhenrik
Copy link
Author

I suggested "accounts" and "plans" since they are many2many fields. But I am fine with "account" and "plan".

What would be a good shorter name?

  • analytic_account_and_plan?
  • analytic_account_and_plan_mixin?
  • analytic_mixin_fields?

@pedrobaeza pedrobaeza added this to the 16.0 milestone Jul 22, 2024
@pedrobaeza
Copy link
Member

What about analytic_unfolding_mixin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants