Commit Graph

6 Commits

Author SHA1 Message Date
Rodrigo
d53b8698ec [FIX] account_move_name_sequence: call flush before _fetch_duplicate_supplier_reference method
same issue https://github.com/OCA/account-financial-tools/issues/1501
this fix not working for v16 https://github.com/OCA/account-financial-tools/pull/1514
2023-11-13 12:19:44 +01:00
Rodrigo
3b477f3b86 [MIG] account_move_name_sequence: Migration to 16.0 2023-11-13 12:19:44 +01:00
Pierre Verkest
defe3d4903 [FIX] account_move_name_sequence: Use account move date to compute prefix
In case you want name your invoice YYYY-MM-SEQ (ie: 2022-07-00001)
where:
 * YYYY: is the account move year
 * MM: is the account move month
 * SEQ: is a numerical sequence that is continue along the fiscal year
   assuming fiscal year is over two years (ie: from july to june next year)

Before this commit the sequence prefix use now() to be compute but the
range is selected with the account move date.

This commit make consistency computing prefix with the account
move date as well.

So account move manage the first janunary for the last day of
the previous year will properly use the account move date.

Co-authored-by: Alexis de Lattre <alexis.delattre@akretion.com>
2023-11-13 12:19:44 +01:00
Francisco Javier Luna Vazquez
0dc729c886 [FIX] account_move_name_sequence: Exclude no_gap sequences from _is_end_of_seq_chain 2023-11-13 12:19:44 +01:00
Alexis de Lattre
e6ae066a47 sequence is now required on journals
Add post-install script to create a sequence for all existing journals
Update README accordingly
2023-11-13 12:14:34 +01:00
Alexis de Lattre
9c250274c6 Add module account_move_name_sequence
This module restores the good old behavior where journal entry numbers
were generated from a sequence configured on the journal.
2023-11-13 12:14:34 +01:00