Skip to content
  • hupo-odoo's avatar
    [FIX] account: auto post valid invoices · 5a7fa16c
    hupo-odoo authored
    
    
    Previously, when account moves were set to auto post, and the cron was triggered to post them, if a single invoice triggered a UserError, none of them were posted (User error might be for example missing required field to post, archived journal, inactive currency, ...). This commit enables to post all valid invoices. The invoices that could not be posted are now visible on the accounting dashboard on their respective journal card with the 'to check' attribute, and a note is written on the chatter of the problematic invoices, describing the reason why the move could not be posted.
    
    For performance reasons, we lowered the number of moves that can be posted in a single batch. This way, if a move among a batch cannot be posted, all moves of this batch must be handled one by one. Doing batch of 100 is already the case in 16.0
    
    task-3244310
    
    closes odoo/odoo#128420
    
    Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
    5a7fa16c
Loading