Skip to content

Instantly share code, notes, and snippets.

@alt-odoo
Last active February 22, 2021 15:56
Show Gist options
  • Select an option

  • Save alt-odoo/19d47ece3eefabb1c07b28308ced0e43 to your computer and use it in GitHub Desktop.

Select an option

Save alt-odoo/19d47ece3eefabb1c07b28308ced0e43 to your computer and use it in GitHub Desktop.
Fix 1 Sequence V14
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