pass test for default - 5.2
This commit is contained in:
parent
db52d6c8d5
commit
73a85493d7
13
account.py
13
account.py
|
@ -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():
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Reference in New Issue