pass test for default - 5.2

This commit is contained in:
francesc 2019-07-18 10:57:11 +02:00
parent db52d6c8d5
commit 73a85493d7
2 changed files with 8 additions and 7 deletions

View File

@ -154,12 +154,13 @@ class AccountImportContaplusStart(ModelView):
@fields.depends('data')
def on_change_data(self):
inv = False
for iline in read_all(str(self.data)):
if len(iline.contra.strip()) > 0:
inv = True
break
self.is_invoice = inv
self.on_change_is_invoice()
if self.data:
for iline in read_all(str(self.data)):
if len(iline.contra.strip()) > 0:
inv = True
break
self.is_invoice = inv
self.on_change_is_invoice()
@staticmethod
def default_journal():

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<form string="Account Import Contaplus Start">
<form>
<label name="name"/>
<field name="name"/>
<label name="data"/>