diff --git a/__tryton__.py b/__tryton__.py index ab2dcb5401..9a7452a7bc 100644 --- a/__tryton__.py +++ b/__tryton__.py @@ -1,15 +1,15 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. { - "name" : "Stock Supply with Week Days", - "name_bg_BG" : "Доставка на налиност с дни от седмицата", - 'name_ca_ES' : 'Estoc per dies de la setmana', - "name_de_DE" : "Lagerverwaltung Bestellwesen nach Wochentagen", - "name_es_CO" : "Existencias por días de la semana", - "name_es_ES" : "Suministro de existencias por días de la semana", - "name_fr_FR" : "Approvisionnement par jours de semaine", - "version" : "2.3.0", - "author" : "B2CK", + "name": "Stock Supply with Week Days", + "name_bg_BG": "Доставка на налиност с дни от седмицата", + 'name_ca_ES': 'Estoc per dies de la setmana', + "name_de_DE": "Lagerverwaltung Bestellwesen nach Wochentagen", + "name_es_CO": "Existencias por días de la semana", + "name_es_ES": "Suministro de existencias por días de la semana", + "name_fr_FR": "Approvisionnement par jours de semaine", + "version": "2.3.0", + "author": "B2CK", 'email': 'info@b2ck.com', 'website': 'http://www.tryton.org/', "description": '''Define the delivery days of the week by suppliers. @@ -18,7 +18,7 @@ Impact supply dates computations. "description_bg_BG": '''Задаване на дните за доставка в седмицата по доставчици - Оказва влияние върху изчисляването на датите ''', - 'description_ca_ES': '''Defineix els dies de la setmana d'entrega dels + 'description_ca_ES': '''Defineix els dies de la setmana d'entrega dels proveïdors. Afecta el càlcul de dates de subministre. ''', "description_de_DE": '''Bestellwesen nach Wochentagen @@ -34,11 +34,11 @@ Afecta al cálculo de las fechas de suministro. "description_fr_FR": '''Défini les jours de livraisons par fournisseurs. Impacte les calculs de dates de livraisons. ''', - "depends" : [ + "depends": [ "ir", "purchase", ], - "xml" : [ + "xml": [ "purchase.xml", ], 'translation': [ diff --git a/purchase.py b/purchase.py index 907cca481a..b80811582b 100644 --- a/purchase.py +++ b/purchase.py @@ -6,8 +6,8 @@ from trytond.model import ModelView, ModelSQL, fields class ProductSupplier(ModelSQL, ModelView): _name = 'purchase.product_supplier' - weekdays = fields.One2Many('purchase.product_supplier.day', 'product_supplier', - 'Week Days') + weekdays = fields.One2Many('purchase.product_supplier.day', + 'product_supplier', 'Week Days') def compute_supply_date(self, product_supplier, date=None): date = super(ProductSupplier, self).compute_supply_date( diff --git a/tests/test_stock_supply_day.py b/tests/test_stock_supply_day.py index b73052db39..06015a1255 100644 --- a/tests/test_stock_supply_day.py +++ b/tests/test_stock_supply_day.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):