Register all buttons are registered in ir.model.button

issue6389
review36621002
This commit is contained in:
Sergi Almacellas Abellana
2018-03-01 12:45:50 +01:00
parent 413fb690c6
commit fa4b4ae898
2 changed files with 9 additions and 11 deletions
+8 -10
View File
@@ -31,19 +31,17 @@ this repository contains the full copyright notices and license terms. -->
<field name="name">shipment_out_form</field>
</record>
<record model="ir.model.button"
id="shipment_out_create_shipping_button">
<field name="name">create_shipping</field>
<field name="string">Create Shipping for Packages</field>
<field name="model"
search="[('model', '=', 'stock.shipment.out')]"/>
</record>
<record model="ir.action.wizard" id="act_create_shipping_wizard">
<field name="name">Create Shipping</field>
<field name="wiz_name">stock.shipment.create_shipping</field>
</record>
<record model="ir.model.button" id="create_shipping_button">
<field name="name">create_shipping</field>
<field name="model"
search="[('model', '=', 'stock.shipment.out')]"/>
</record>
<record model="ir.model.button-res.group"
id="create_shipping_button_group_stock">
<field name="button" ref="create_shipping_button"/>
<field name="group" ref="stock.group_stock"/>
</record>
</data>
</tryton>
+1 -1
View File
@@ -7,6 +7,6 @@ this repository contains the full copyright notices and license terms. -->
position="after">
<label name="shipping_description"/>
<field name="shipping_description"/>
<button string="Create Shipping for Packages" name="create_shipping"/>
<button name="create_shipping"/>
</xpath>
</data>