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')
|
@fields.depends('data')
|
||||||
def on_change_data(self):
|
def on_change_data(self):
|
||||||
inv = False
|
inv = False
|
||||||
for iline in read_all(str(self.data)):
|
if self.data:
|
||||||
if len(iline.contra.strip()) > 0:
|
for iline in read_all(str(self.data)):
|
||||||
inv = True
|
if len(iline.contra.strip()) > 0:
|
||||||
break
|
inv = True
|
||||||
self.is_invoice = inv
|
break
|
||||||
self.on_change_is_invoice()
|
self.is_invoice = inv
|
||||||
|
self.on_change_is_invoice()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def default_journal():
|
def default_journal():
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<!-- The COPYRIGHT file at the top level of this repository contains the full
|
<!-- The COPYRIGHT file at the top level of this repository contains the full
|
||||||
copyright notices and license terms. -->
|
copyright notices and license terms. -->
|
||||||
<form string="Account Import Contaplus Start">
|
<form>
|
||||||
<label name="name"/>
|
<label name="name"/>
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<label name="data"/>
|
<label name="data"/>
|
||||||
|
|
Loading…
Reference in New Issue