Comment 2 for bug 926541

Revision history for this message
Jeroen Vet (jeroen-vet) wrote :

Hi Amit,
Thanks for your feedback. Stock splitting works fine if you use the stock split wizard, this is because the wizard doesn't actually use the action_split method on stock.move but uses the split_move_line method on stock.move.line.split (an osv.memory object).
I don't think action_split is used anywhere in the code so that is probably why the incorrect code went unnoticed. I came across the bug when I tried to use action_split in one of my own customisations. Although action_split is not used in the system I still think that, since the method is available, it should either work correctly or be removed altogether.
BR Jeroen