Use separate views for wizards

This commit is contained in:
Bertrand Chenal committed 2008-06-10 18:14:51 +02:00
1 parent 81dbdc17c3
commit a7570c1ec8
4 files changed
+26 -4

No files matched your search

+2 -2
View File
@@ -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),
+13
View File
@@ -169,6 +169,19 @@
<field name="type">lost_found</field>
</record>
<record model="ir.ui.view" id="stock.product_forecast_date_init_view_form">
<field name="model">stock.product_forecast_date.init</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Product Quantity.">
<label name="forecast_date"/>
<field name="forecast_date"/>
</form>
]]>
</field>
</record>
<record model="ir.property" id="property_supplier_location">
<field name="name">supplier_location</field>
<field name="field"
+10 -1
View File
@@ -174,6 +174,15 @@ class Product(OSV):
Product()
class ChooseForecatsDateInit(WizardOSV):
_name = 'stock.product_forecast_date.init'
forecast_date = fields.Date(
'Forecast Date', help='Allow to compute expected '\
'stock quantities for this date.\n'\
'* An empty value is an infinite date in the future.\n'\
'* A date in the past will provide historical values.')
ChooseForecatsDateInit()
class OpenLocation(Wizard):
'Products by Locations'
_name = 'stock.location.open'
@@ -181,7 +190,7 @@ class OpenLocation(Wizard):
'init': {
'result': {
'type': 'form',
'object': 'stock.choose_forecast_date.init',
'object': 'stock.product_forecast_date.init',
'state': [
('end', 'Cancel', 'tryton-cancel'),
('open', 'Open', 'tryton-ok', True),
+1 -1
View File
@@ -51,7 +51,7 @@
</record>
<record model="ir.action.keyword"
id="act_location_quantity_keyword1">
<field name="keyword">form_action</field>
<field name="keyword">form_relate</field>
<field name="model">product.product,0</field>
<field name="action" ref="wizard_open_location"/>
</record>