Last active
February 22, 2021 15:56
-
-
Save alt-odoo/19d47ece3eefabb1c07b28308ced0e43 to your computer and use it in GitHub Desktop.
Fix 1 Sequence V14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| journals = env['account.journal'].search([]) | |
| sequence_list = '' | |
| for journal in journals: | |
| jmove = env['account.move'].search([('journal_id','=',journal.id)],order = 'date desc', limit = 1) | |
| sequence_list += '{} (#{} {})\n'.format(jmove.name, journal.id,journal.name) | |
| raise Warning(sequence_list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment