raiseUserError(_('You have to define which payment method must be available in the point of sale by reusing existing bank and cash through "Accounting / Configuration / Journals / Journals". Select a journal and check the field "PoS Payment Method" from the "Point of Sale" tab. You can also create new payment methods directly from menu "PoS Backend / Configuration / Payment Methods".'))
forjournalinjournals:
ifjournal.sequence_id:
number=journal.sequence_id.next_by_id()
else:
raiseUserError(_("No sequence defined on the journal"))