[16.0] account_move_name_sequence side effect : reporting holes in sequence
remi-filament opened this issue · 1 comments
Module
account_move_name_sequence
Describe the bug
When using account_move_name_sequence, the sequence_number are not computed anymore (as per
)In v16, 2 new functions have been added to check if there are potential holes in sequence, based on sequence_number :
- made_sequence_hole on account_move (https://github.com/odoo/odoo/blob/ec8070adb38d092d743679c2dd30872424d46e9d/addons/account/models/account_move.py#L231)
- has_sequence_holes on account_journal (https://github.com/odoo/odoo/blob/ec8070adb38d092d743679c2dd30872424d46e9d/addons/account/models/account_journal_dashboard.py#L76)
To Reproduce
Affected versions: 16.0
Steps to reproduce the behavior:
- Install account_move_name_sequence
- Configure customer invoice journal to use refund sequence
- Create a customer invoice and validate
- Create a credit note on this invoice (with modify option) and validate
You get the following display on accounting dashboard (Gaps in the sequence) :
And the red names on account invoices tree view :
Expected behavior
These warnings should not be displayed if there are no real gaps in sequence
Additional context
I am not sure how to fix it, the easiest way would be to not compute these fields anymore (as for sequence_number), although it feels like we are losing some functionality here, but I cannot think of a correct way to check there a no gaps once you use sequence.
Fixed with #1615