From 7cbb473f044d0e5cec0b3d81ddbeca331a387132 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sat, 26 Nov 2022 16:57:01 +0100 Subject: [PATCH] [MIG] account_ebics_batch: Migration to 15.0 --- account_ebics_batch/__manifest__.py | 2 +- account_ebics_batch/models/ebics_batch_log.py | 5 +---- account_ebics_batch/views/ebics_batch_log_views.xml | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/account_ebics_batch/__manifest__.py b/account_ebics_batch/__manifest__.py index e9d2133..d1d3420 100644 --- a/account_ebics_batch/__manifest__.py +++ b/account_ebics_batch/__manifest__.py @@ -3,7 +3,7 @@ { "name": "EBICS Files batch import", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "license": "AGPL-3", "author": "Noviat", "website": "https://www.noviat.com", diff --git a/account_ebics_batch/models/ebics_batch_log.py b/account_ebics_batch/models/ebics_batch_log.py index 9dfb064..f81af12 100644 --- a/account_ebics_batch/models/ebics_batch_log.py +++ b/account_ebics_batch/models/ebics_batch_log.py @@ -35,7 +35,6 @@ class EbicsBatchLog(models.Model): has_draft_files = fields.Boolean(compute="_compute_ebics_files_fields") state = fields.Selection( selection=[("draft", "Draft"), ("error", "Error"), ("done", "Done")], - string="State", required=True, readonly=True, default="draft", @@ -147,10 +146,9 @@ class EbicsBatchLog(models.Model): self.state = state def _ebics_import(self, config, date_from, date_to, import_dict): - ctx = dict(self.env.context, ebics_download=True) xfer_wiz = ( self.env["ebics.xfer"] - .with_context(ctx) + .with_context(ebics_download=True) .create( { "ebics_config_id": config.id, @@ -185,7 +183,6 @@ class EbicsBatchLogItem(models.Model): ) state = fields.Selection( selection=[("draft", "Draft"), ("error", "Error"), ("done", "Done")], - string="State", required=True, readonly=True, ) diff --git a/account_ebics_batch/views/ebics_batch_log_views.xml b/account_ebics_batch/views/ebics_batch_log_views.xml index 716882f..8e3ae59 100644 --- a/account_ebics_batch/views/ebics_batch_log_views.xml +++ b/account_ebics_batch/views/ebics_batch_log_views.xml @@ -22,7 +22,7 @@ ebics.batch.log.tree ebics.batch.log - + @@ -83,7 +83,7 @@ - +