Refactoring send&print wizard. ============================== Main reason for this commit is that we want to let the user decide when to generate the relevant documents / approvals for its invoices. The natural choice is when the information leaves Odoo. So now, each time the users decide to download/send its invoices, he will be able to select the relevant documents to be generated and the approvals to be requested from the send&print wizard. This used to happen automatically during the posting with lots of undesirable behaviors (difficulty to update/revert, hard to know exactly what will happen,...) Main changes: 1/ Send&print wizard - The model 'account.invoice.send' has been replaced by 'account.move.send' and became models.Model to handle asynchrounous generation of documents (webservice,..) in case of more than one invoice. - The wizard is meant to be overriden in order to add checkbox and document to be generated. A comprehensive exemple can be found in account_edi_ubl_cii. 2/ Import invoice from attachments - The decoding logic has moved from account_edi to account on the attachemnts. - The function _extend_with_attachments() serve as a common entry point for import (from chatter, dashboard). 3/ Export invoice pdf / document - All the specific actions to export attachments should be implemented on the account.move and called from the wizard in _generate_documents() - The official pdf for the invoice is now only generated once the user request it. In order to regenerate the pdf and documents, it needs to be deleted. task-id: 3117238 [enterprise](https://github.com/odoo/enterprise/pull/36757) [community](https://github.com/odoo/odoo/pull/111857 ) [IMP] web: enable close on ir.actions.act_url in wizard Before this commit, calling ir.actions.act_url on a modal leaves the modal open. Which feels ackward in the send&print wizard. We now enable 'close' parameter on ir.actions.act_url. If set, the wizard will close after act_url. closes odoo/odoo#111857 Related: odoo/enterprise#36757 Related: odoo/upgrade#4387 Signed-off-by: Laurent Smet <las@odoo.com>
15 lines
494 B
Python
15 lines
494 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import account_automatic_entry_wizard
|
|
from . import account_unreconcile
|
|
from . import account_validate_account_move
|
|
from . import account_move_reversal
|
|
from . import account_resequence
|
|
from . import setup_wizards
|
|
from . import account_move_send
|
|
from . import base_document_layout
|
|
from . import account_payment_register
|
|
from . import account_tour_upload_bill
|
|
from . import accrued_orders
|