Skip to content

Commit

Permalink
[FIX] l10n_es_aeat_*: PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed Jun 25, 2015
1 parent 4de6e45 commit 9c8e163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions l10n_es_aeat/wizard/export_to_boe.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from openerp.tools.safe_eval import safe_eval as eval
from openerp import models, fields, api, _

EXPRESSION_PATTERN = re.compile('(\$\{.+?\})')
EXPRESSION_PATTERN = re.compile(r'(\$\{.+?\})')


class L10nEsAeatReportExportToBoe(models.TransientModel):
Expand All @@ -42,8 +42,7 @@ class L10nEsAeatReportExportToBoe(models.TransientModel):
string="State", default='open')

def _formatString(self, text, length, fill=' ', align='<'):
"""
Formats the string into a fixed length ASCII (iso-8859-1) record.
"""Formats the string into a fixed length ASCII (iso-8859-1) record.
Note:
'Todos los campos alfanuméricos y alfabéticos se presentarán
Expand Down
5 changes: 2 additions & 3 deletions l10n_es_aeat_mod130/models/mod130.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,10 @@ def onchange_casilla_18(self):

@api.multi
def _get_periods(self, period):
self.ensure_one()
"""
Obtiene el periodo o periodos contables asociados al trimestre del
"""Obtiene el periodo o periodos contables asociados al trimestre del
informe asociado.
"""
self.ensure_one()
period_obj = self.env["account.period"]
year = self.fiscalyear_id.date_start.split('-')[0]
# Obtener el primer mes del trimestre
Expand Down

0 comments on commit 9c8e163

Please sign in to comment.