Files
account-financial-tools/account_move_name_sequence/static/description
Christihan Laurel [Vauxoo] a909d0d38e [MIG] account_move_name_sequence: Migrate to v18.0
Changelog:
- Replace `_()` by `self.env._()`.
- Replace `_fetch_duplicate_supplier_reference` by
  `_fetch_duplicate_reference` to include both sale and purchase
  documents.
- Use `mute_logger` to suppress warnings when executing the
  `_prepare_sequence_current_moves` method without moves in the journals
  from the `post_init_hook`.
- Patch the `_validate_fields` and `_hash_moves` methods in tests to
  simulate the same behavior as if the journal entries were unlocked.
  This is necessary because, in the pipeline, the
  `account_journal_restrict_mode` module is installed, which locks
  posted entries, preventing them from being set to draft or deleted
  afterward.
- Enter test mode when executing threads in the
  `test_sequence_concurrency_95_pay2inv_inv2pay` test to avoid locks.
- Replace `_clean_moves` by `_clean_moves_and_payments`, since entries
  created from a payment cannot be deleted on their own and must be
  deleted along with the payment.

Co-authored-by: Bert Van Groenendael <bert.vangroenendael@dynapps.be>
Co-authored-by: oury.balde <oury.balde@xcg-consulting.fr>
2025-01-29 05:06:31 +00:00
..