Comment 12 for bug 582988

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote : Re: [6.0] Analytic account lines not being created for account moves

I've seen that just Mustufa Rangwala (mra) just reverted P. Christeas changes from revno 1628.3.67: http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/revision/3164.77.24

So, now the situation on the 6.0 is the same as on the 5.0: The code 'seems' to work, but... the "if ok" conditional branch is invalid:
  1 - Is only executed once! not for each move.
  2 - The "move" variable, may be undefined (it's defined on the loop, the if branch is outside of the loop):
                 Only the last move (if "ids" contains more than one move) gets it's analytic lines created.
                 If ids is empty, it fails (undefined variable).