mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-24 02:22:01 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -57,7 +57,7 @@ class AccountJournal(models.Model):
|
|||
journal_ids = self.ids
|
||||
|
||||
if journal_ids:
|
||||
self._cr.execute('''
|
||||
self.env.cr.execute('''
|
||||
SELECT
|
||||
move.journal_id,
|
||||
ARRAY_AGG(doc.edi_format_id) AS edi_format_ids
|
||||
|
|
@ -67,7 +67,7 @@ class AccountJournal(models.Model):
|
|||
AND move.journal_id IN %s
|
||||
GROUP BY move.journal_id
|
||||
''', [tuple(journal_ids)])
|
||||
protected_edi_formats_per_journal = {r[0]: set(r[1]) for r in self._cr.fetchall()}
|
||||
protected_edi_formats_per_journal = {r[0]: set(r[1]) for r in self.env.cr.fetchall()}
|
||||
else:
|
||||
protected_edi_formats_per_journal = defaultdict(set)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue