mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
@@ -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:
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user