[FIX] po file parser: database creation crashes if res_id is an empty string
bzr revid: olt@tinyerp.com-20101126082048-ndc55bsf4vo3cu2c
This commit is contained in:
parent
352bb205aa
commit
cf152730b8
|
@ -253,6 +253,8 @@ class TinyPoFile(object):
|
|||
|
||||
if self.tnrs:
|
||||
type, name, res_id, source, trad = self.tnrs.pop(0)
|
||||
if not res_id:
|
||||
res_id = '0'
|
||||
else:
|
||||
tmp_tnrs = []
|
||||
line = None
|
||||
|
|
Loading…
Reference in New Issue