Merge pull request #4 from Noviat/fixes-ldm

flake8
This commit is contained in:
Raphaël Valyi
2019-05-30 15:38:41 -03:00
committed by GitHub
2 changed files with 6 additions and 5 deletions

View File

@@ -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:

View File

@@ -4,7 +4,7 @@
# @author Luc de Meyer <info@noviat.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
from odoo import fields, models
class ProductCategory(models.Model):