mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-12-24 10:21:45 +00:00
[MIG] account_ebics_batch: Migration to 15.0
This commit is contained in:
parent
71ba19ecd1
commit
5d2db183aa
@ -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",
|
||||
|
@ -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,
|
||||
)
|
||||
|
@ -22,7 +22,7 @@
|
||||
<field name="name">ebics.batch.log.tree</field>
|
||||
<field name="model">ebics.batch.log</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="EBICS Batch Import Logs" create="false">
|
||||
<tree create="false">
|
||||
<field name="create_date" />
|
||||
<field name="file_count" />
|
||||
<field name="state" />
|
||||
@ -83,7 +83,7 @@
|
||||
<notebook colspan="4">
|
||||
<page string="Batch Import Logs">
|
||||
<field name="log_ids" nolabel="1">
|
||||
<tree string="Log entries">
|
||||
<tree>
|
||||
<field name="create_date" />
|
||||
<field name="state" />
|
||||
<field name="error_count" />
|
||||
|
Loading…
Reference in New Issue
Block a user