Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 141
    • Merge requests 141
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • erp5erp5
  • Merge requests
  • !2155

Open
Created Sep 11, 2025 by Titouan Soulard@tsoulardDeveloper
  • Report abuse
Report abuse

erp5_accounting: allow setting default accounts when initializing lines

  • Overview 4
  • Commits 2
  • Pipelines 1
  • Changes 20

While working on Bank Reconciliation, I had no way to know which accounts to use on Accounting Transaction Lines. One idea is to have a default account set in preferences for each of the possible account types, being set on Accounting Transaction Line depending on its id.

I then realized this could be quite useful even without Bank Reconciliation. For instance, when creating a Payment Transaction, if the settings are configured, one can have by default all three accounts already set, as in the following screenshot.

For now, I do not know if this is something we want, so I just open this MR to discuss, but the change is almost ready. We might want to add a simple test to check it works and does not break anything when unset. I also still have a few open issues:

  • should this preference be User or System? I chose User, but only losely thing it belongs here;
  • should this preference actually be global? I could imagine something Organization-wide only, but don't know where to put it. Maybe we can start the current way?
  • how to know if I should set source or destination account? Especially, is there any way to tell without using the Portal Type, which I currently do?

/cc @jerome

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: for-mr-pig
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7