From cea1d70775c2714ea831d56c9fff05ec3ece4d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 3 Apr 2012 20:06:26 +0200 Subject: [PATCH] Fix pep8 and pyflakes --- __tryton__.py | 2 +- product.py | 2 +- tests/test_account_product.py | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/__tryton__.py b/__tryton__.py index 440e882adb..0c7242082c 100644 --- a/__tryton__.py +++ b/__tryton__.py @@ -21,7 +21,7 @@ - сметка за разходи / приходу - данъци за клиент / доставчик ''', - 'description_ca_ES': '''Afegeix propietats de comptabilitat a productes i + 'description_ca_ES': '''Afegeix propietats de comptabilitat a productes i categories com: - Comptes de despeses i ingressos - Impostos per client i proveïdor diff --git a/product.py b/product.py index 53ce247b45..da96a2cd56 100644 --- a/product.py +++ b/product.py @@ -23,7 +23,7 @@ class Category(ModelSQL, ModelView): | Eval('account_parent')), }, depends=['account_parent'])) - account_revenue = fields.Property(fields.Many2One( 'account.account', + account_revenue = fields.Property(fields.Many2One('account.account', 'Account Revenue', domain=[ ('kind', '=', 'revenue'), ('company', '=', Eval('context', {}).get('company', 0)), diff --git a/tests/test_account_product.py b/tests/test_account_product.py index 6562f44ac0..27b4cba15d 100644 --- a/tests/test_account_product.py +++ b/tests/test_account_product.py @@ -2,7 +2,8 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. -import sys, os +import sys +import os DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, '..', '..', '..', '..', '..', 'trytond'))) if os.path.isdir(DIR): @@ -33,6 +34,7 @@ class AccountProductTestCase(unittest.TestCase): ''' test_depends() + def suite(): suite = trytond.tests.test_tryton.suite() suite.addTests(unittest.TestLoader().loadTestsFromTestCase(