When selecting several invoices from the list view, it is possible to trigger an action to export all edi documents in a zip file. This commit fixes 2 different issues: a) We want to be able to export edi documents that have not been sent. Therefore, we no longer filter for 'sent' and 'cancelled' edi documents. b) We want to also export edi documents that have ubl format. These documents are, from 16.2, in another field on account.move and no longer part of edi_document_ids. This is the reason why we had to move the logic from account_edi to account to make it overridable to other modules. This new way of overriding the function will also enable other formats to be included in the export function. task-3441449 (issue 1) task-3439427 (issue 2) closes odoo/odoo#131242 X-original-commit: f8654b3501aca6e5d77ced5f73cb351c61684cd2 Related: odoo/enterprise#45529 Related: odoo/upgrade#5032 Signed-off-by: Laurent Smet (las) <las@odoo.com>
5 lines
69 B
Python
5 lines
69 B
Python
# -*- encoding: utf-8 -*-
|
|
|
|
from . import models
|
|
from . import wizard
|