Add act_production_request as it was removed in production module

issue2971
This commit is contained in:
Cédric Krier
2013-02-05 19:23:06 +01:00
parent 4d089e1439
commit c60b0674d6
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ class CreateProductionRequest(Wizard):
Button('Cancel', 'end', 'tryton-cancel'),
Button('Create', 'create_', 'tryton-ok', default=True),
])
create_ = StateAction('production.act_production_request')
create_ = StateAction('stock_supply_production.act_production_request')
def do_create_(self, action):
pool = Pool()
+18
View File
@@ -42,6 +42,24 @@ this repository contains the full copyright notices and license terms. -->
</field>
</record>
<record model="ir.action.act_window" id="act_production_request">
<field name="name">Request Productions</field>
<field name="res_model">production</field>
<field name="search_value">[('state', '=', 'request')]</field>
</record>
<record model="ir.action.act_window.view"
id="act_production_request_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="production.production_view_list"/>
<field name="act_window" ref="act_production_request"/>
</record>
<record model="ir.action.act_window.view"
id="act_production_request_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="production.production_view_form"/>
<field name="act_window" ref="act_production_request"/>
</record>
<menuitem parent="production.menu_production_list" sequence="5"
action="act_production_request_create"
id="menu_production_request_create"/>