[Internal BoM][Fixed] Problems when using HRTXT and no options

- Also made the quick-start use a better column separator
This commit is contained in:
Salvador E. Tropea 2022-12-02 11:32:45 -03:00
parent 3b963a195b
commit be4582efb0
1 changed files with 7 additions and 0 deletions

View File

@ -683,6 +683,11 @@ class BoMOptions(BaseOptions):
# If no options get the defaults
self.csv = BoMCSV()
self.csv.config(self)
# HRTXT options
if self.format == 'hrtxt' and isinstance(self.hrtxt, type):
# If no options get the defaults
self.hrtxt = BoMTXT()
self.hrtxt.config(self)
# XLSX options
if self.format == 'xlsx' and isinstance(self.xlsx, type):
# If no options get the defaults
@ -966,6 +971,8 @@ class BoM(BaseOutput): # noqa: F821
gb['type'] = 'bom'
gb['dir'] = os.path.join('BoM', subd)
ops = {'format': fmt}
if fmt == 'HRTXT':
ops['hrtxt'] = {'separator': '|'}
if group_fields:
ops['group_fields'] = group_fields
if join_fields: