2
0
account-financial-tools/account_move_name_sequence/models
Pierre Verkest 6599bfd112 [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>
2022-11-22 14:36:51 +01:00
..
__init__.py [FIX] ir_sequence: Fix creating date_range_seq with range_month and range_day 2022-11-22 14:36:51 +01:00
account_journal.py [MIG] account_move_name_sequence: Migration to 15.0 2022-11-22 14:36:51 +01:00
account_move.py [FIX] account_move_name_sequence: Use account move date to compute prefix 2022-11-22 14:36:51 +01:00
ir_sequence.py [REF] account_move_name_sequence: Use Odoo native methods + Typos 2022-11-22 14:36:51 +01:00