Browse Source

[IMP] Fix travis pylint

pull/174/head
Roel Adriaans 6 years ago
parent
commit
2fe6a0a2dc
  1. 3
      contract_time_markers/models/account_analytic_account.py
  2. 2
      contract_time_markers/readme/USAGE.rst
  3. 2
      contract_time_markers/tests/test_contract.py

3
contract_time_markers/models/account_analytic_account.py

@ -33,7 +33,8 @@ class AccountAnalyticAccount(models.Model):
partner_lang = line.analytic_account_id.partner_id.lang
if from_result and len(from_result[0]) > 1:
from_string = self._format_date(date_from, partner_lang, from_result[0])
from_string = self._format_date(date_from, partner_lang,
from_result[0])
name = re.sub(from_regex, from_string, name)
else:
# Original behaviour

2
contract_time_markers/readme/USAGE.rst

@ -15,4 +15,4 @@ Examples for 1 September 2018
- #END(dd MMMM yyy)# -- 01 September 2018
- #END(EEEE dd MMMM yyy)# -- Sunday 01 September 2018
- #START(dd/MM/yyyy) -- 30/09/2018
- #END# -- Default behaviour - Date format on based on partner language
- #END# -- Default behaviour - Date format on based on partner language

2
contract_time_markers/tests/test_contract.py

@ -3,8 +3,6 @@
# Copyright 2018 Road-Support - Roel Adriaans
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo.exceptions import ValidationError
from odoo.tests import common

Loading…
Cancel
Save