[FIX] l10n_be_intrastat: skip EXTXVAL=0

An entry with EXTXVAL=0 should not be included in the Intrastat
declaration, otherwise it is rejected.

opw-686201
This commit is contained in:
Nicolas Martinelli 2016-08-31 11:02:48 +02:00
parent f1a331850d
commit 7b93e1dc7b
1 changed files with 3 additions and 1 deletions

View File

@ -342,8 +342,10 @@ class xml_decl(osv.TransientModel):
numlgn = 0
for linekey in entries:
numlgn += 1
amounts = entries[linekey]
if round(amounts[0], 0) == 0:
continue
numlgn += 1
item = ET.SubElement(datas, 'Item')
self._set_Dim(item, 'EXSEQCODE', unicode(numlgn))
self._set_Dim(item, 'EXTRF', unicode(linekey.EXTRF))