Analytic rule engine

Rational

Some accounting moves are created automatically or with a document that does not have the analytic selections. For such moves the accountant has to create manually the analytic lines. This can be painful when there are a lot of moves and when those moves are kind of recurring.

Proposal

We propose to add a mechanism based on MatchMixin design pattern that will be triggered when a move is posted and if the move does not have any analytic lines defined.
The default criteria will be:

  • account
  • journal
  • party

Implementation

https://bugs.tryton.org/issue6007

I’m not sure if this should be in the standard analytic_account or if a specific module analytic_account_rule should be created?

Indeed the implementation requires very few code, so it will not bloat the analytic_account to have them.