From 930dfd920e9fe902f4ce7ec5ffdd9f3c3024c15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20L=C3=B3pez?= Date: Tue, 27 Jan 2015 12:56:33 +0100 Subject: [PATCH] =?UTF-8?q?247:=201.=20Revisi=C3=B3n=20y=20cambio=20de=20r?= =?UTF-8?q?eglas=20de=20distribuci=C3=B3n=20de=20coste.=202.=20Creaci?= =?UTF-8?q?=C3=B3n=20de=20columna=20stored=5Fat=20para=20nursery.productio?= =?UTF-8?q?n=203.=20Refactorizaciones=20de=20de=20c=C3=B3digo=20diversas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cost_manage.py | 4 ++-- production.py | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cost_manage.py b/cost_manage.py index 9324fe4..ae8ef18 100644 --- a/cost_manage.py +++ b/cost_manage.py @@ -1,5 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. from trytond.pool import PoolMeta diff --git a/production.py b/production.py index 9d0f54e..d48f7d3 100644 --- a/production.py +++ b/production.py @@ -1,5 +1,6 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. + from trytond.model import fields from trytond.pool import PoolMeta from trytond.modules.cost_manage import ComposeCostSource, CostCenter @@ -36,5 +37,5 @@ class Production(ComposeCostSource, CostCenter): super(Production, cls).done(productions) cls.cost_compute(productions) - def get_factor(self, field=None): + def on_change_with_factor(self, field=None): return None \ No newline at end of file