mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
flake8
This commit is contained in:
committed by
Alexis de Lattre
parent
63c59e2dfa
commit
ee0db4e62f
File diff suppressed because it is too large
Load Diff
@@ -205,8 +205,9 @@ class IntrastatProductDeclarationXlsx(models.AbstractModel):
|
||||
wl = declaration._xls_declaration_line_fields()
|
||||
report = 'declaration'
|
||||
|
||||
title = self._get_title(declaration, report, format='normal')
|
||||
title_short = self._get_title(declaration, report, format='short')
|
||||
title = self._get_title(declaration, report, title_format='normal')
|
||||
title_short = self._get_title(declaration, report,
|
||||
title_format='short')
|
||||
sheet_name = title_short[:31].replace('/', '-')
|
||||
|
||||
params = {
|
||||
@@ -218,9 +219,9 @@ class IntrastatProductDeclarationXlsx(models.AbstractModel):
|
||||
}
|
||||
return [params]
|
||||
|
||||
def _get_title(self, declaration, report, format='normal'):
|
||||
def _get_title(self, declaration, report, title_format='normal'):
|
||||
title = declaration.year_month
|
||||
if format == 'normal':
|
||||
if title_format == 'normal':
|
||||
if report == 'computation':
|
||||
title += ' : ' + _('Computation Lines')
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user