diff options
| author | Benjamin Frantzen (bfr) <bfr@odoo.com> | 2020-05-26 07:46:18 +0000 |
|---|---|---|
| committer | Benjamin Frantzen (bfr) <bfr@odoo.com> | 2020-05-29 07:16:30 +0000 |
| commit | 913f22f73f208b0fa8ca947cf410e32c65adfc93 (patch) | |
| tree | fed595338f7eb5b0240c49e5c51fbf1fca275f42 /addons/account/wizard | |
| parent | 0226901ec74368532b0518034845849a9b54df88 (diff) | |
[ADD] account_edi: generic module to manage EDI (factur-x)
- account_edi is the base module to manage EDIs. It manages the generic worflow of import/export and defines the methods for import/export that should be overridden by each types of EDI (in different modules).
- On export, the files are added as attachment and can be embeded into pdf (format specific).
- On export, the exported format are set on the journal to allow different settings based on journal (different companies, countries, etc).
- On import, depending on the import method (from message_post or upload button in invoice tree view) a new invoice is created or an existing one is updated (only allowed draft invoices with no invoice lines).
- Adapted factur-x
Diffstat (limited to 'addons/account/wizard')
| -rw-r--r-- | addons/account/wizard/account_invoice_send.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/account/wizard/account_invoice_send.py b/addons/account/wizard/account_invoice_send.py index 90861b0c91e..56faf87fdd4 100644 --- a/addons/account/wizard/account_invoice_send.py +++ b/addons/account/wizard/account_invoice_send.py @@ -84,7 +84,8 @@ class AccountInvoiceSend(models.TransientModel): def _send_email(self): if self.is_email: - self.composer_id.send_mail() + # with_context : we don't want to reimport the file we just exported. + self.composer_id.with_context(no_new_invoice=True).send_mail() if self.env.context.get('mark_invoice_as_sent'): #Salesman send posted invoice, without the right to write #but they should have the right to change this flag |
