parameters: (self, acc_template_ref, company, journals_dict=None)
return_statement: return journal_data
docstring: We add use_documents or not depending on the context
docstring_summary: We add use_documents or not depending on the context
docstring_tokens: We add use_documents or not depending on the context
function: def _prepare_all_journals(self, acc_template_ref, company, journals_dict=None):
          """ We add use_documents or not depending on the context"""
          journal_data = super()._prepare_all_journals(acc_template_ref, company, journals_dict)
  
          # if chart has localization, then we use documents by default
          if company._localization_use_documents():
              for vals_journal in journal_data:
                  if vals_journal['type'] in ['sale', 'purchase']:
                      vals_journal['l10n_latam_use_documents'] = True
          return journal_data
function_tokens: def _prepare_all_journals ( self , acc_template_ref , company , journals_dict = None ) : journal_data = super ( ) . _prepare_all_journals ( acc_template_ref , company , journals_dict ) # if chart has localization, then we use documents by default if company . _localization_use_documents ( ) : for vals_journal in journal_data : if vals_journal [ 'type' ] in [ 'sale' , 'purchase' ] : vals_journal [ 'l10n_latam_use_documents' ] = True return journal_data