From 7618e2e657366e87d9e6be81a7268306c34e5538 Mon Sep 17 00:00:00 2001 From: "Habib (ayh)" Date: Thu, 26 Jan 2023 14:17:51 +0000 Subject: [PATCH] [IMP] account: hide print statement button odoo/enterprise#36355 adds the ability to generate PDF's and attach them to the statement. To give the user feedback of completion, the PDF is then downloaded. Since this is a duplication of features, the report is no longer bound to the print menu. Task-3151040 closes odoo/odoo#111542 X-original-commit: 331aabe79b80b06f44bc2de1712742ec8f00f735 Related: odoo/enterprise#36559 Signed-off-by: Laurent Smet Signed-off-by: Ayob Habib (ayh) --- addons/account/i18n/account.pot | 6 +----- addons/account/models/account_bank_statement.py | 3 ++- addons/account/views/account_report.xml | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index 49fe35f2388..fdf03da08d5 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -2490,11 +2490,6 @@ msgstr "" msgid "Attach a file" msgstr "" -#. module: account -#: model:ir.model.fields,field_description:account.field_account_bank_statement__attachment_ids -msgid "Attachment" -msgstr "" - #. module: account #: model:ir.model.fields,field_description:account.field_account_account__message_attachment_count #: model:ir.model.fields,field_description:account.field_account_account_template__message_attachment_count @@ -2510,6 +2505,7 @@ msgid "Attachment Count" msgstr "" #. module: account +#: model:ir.model.fields,field_description:account.field_account_bank_statement__attachment_ids #: model:ir.model.fields,field_description:account.field_account_bank_statement_line__attachment_ids #: model:ir.model.fields,field_description:account.field_account_invoice_send__attachment_ids #: model:ir.model.fields,field_description:account.field_account_move__attachment_ids diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index b12d3f2d372..939ddb3bc24 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -150,7 +150,8 @@ class AccountBankStatement(models.Model): ) attachment_ids = fields.Many2many( - comodel_name='ir.attachment' + comodel_name='ir.attachment', + string="Attachments", ) # ------------------------------------------------------------------------- diff --git a/addons/account/views/account_report.xml b/addons/account/views/account_report.xml index 6cc34f6d611..6f5711e6200 100644 --- a/addons/account/views/account_report.xml +++ b/addons/account/views/account_report.xml @@ -74,7 +74,6 @@ account.report_statement account.report_statement - report