Commit Graph

8 Commits

Author SHA1 Message Date
Francisco Javier Luna Vazquez
e55ff74217 [FIX] account_move_name_sequence: Exclude no_gap sequences from _is_end_of_seq_chain 2022-05-26 16:30:39 -05:00
Francisco Javier Luna Vazquez
fad863d367 [MIG] account_move_name_sequence: Migration to 15.0 2022-05-26 16:20:43 -05:00
Francisco Javier Luna Vazquez
5291fe8ff8 [REF] account_move_name_sequence: Use Odoo native methods + Typos 2022-05-26 15:31:08 -05:00
Moises Lopez
d659e44985 [REF] account_move_name_sequence: Moves with name '/' can not be posted
After remove required=True for journal.sequence_id field it is possible to post an invoice with misconfigured journal with empty sequence

So, this constraint will raise an error for this kind of cases since that using '/' could raise the unique constraint for all other moves
2022-05-26 15:31:08 -05:00
Moises Lopez
b5cbca9961 [FIX] ir_sequence: Fix creating date_range_seq with range_month and range_day
More info about:
 - https://github.com/odoo/odoo/pull/91019

TODO: Revert this commit after it is merged
2022-05-26 15:31:08 -05:00
Moises Lopez
c23129b0c8 [REF] account_move_name_sequence: Add number_next_actual and date range lines data based on current moves 2022-05-26 15:31:08 -05:00
Alexis de Lattre
bee5d4c8b5 sequence is now required on journals
Add post-install script to create a sequence for all existing journals
Update README accordingly
2022-05-26 15:31:08 -05:00
Alexis de Lattre
89ab5bbae5 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.
2022-05-26 15:31:08 -05:00