From a7570c1ec8313748fac60716fa7bd6084febf5e1 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Tue, 10 Jun 2008 18:14:51 +0200 Subject: [PATCH] Use separate views for wizards --- location.py | 4 ++-- location.xml | 13 +++++++++++++ product.py | 11 ++++++++++- product.xml | 2 +- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/location.py b/location.py index f0df4b1313..febf17ccc5 100644 --- a/location.py +++ b/location.py @@ -141,7 +141,7 @@ Party() class ChooseForecatsDateInit(WizardOSV): - _name = 'stock.choose_forecast_date.init' + _name = 'stock.location_forecast_date.init' forecast_date = fields.Date( 'Forecast Date', help='Allow to compute expected '\ 'stock quantities for this date.\n'\ @@ -157,7 +157,7 @@ class OpenProduct(Wizard): 'init': { 'result': { 'type': 'form', - 'object': 'stock.choose_forecast_date.init', + 'object': 'stock.location_forecast_date.init', 'state': [ ('end', 'Cancel', 'tryton-cancel'), ('open', 'Open', 'tryton-ok', True), diff --git a/location.xml b/location.xml index 5fa07f6c31..215c81cc87 100644 --- a/location.xml +++ b/location.xml @@ -169,6 +169,19 @@ lost_found + + stock.product_forecast_date.init + form + + + + supplier_location - form_action + form_relate product.product,0