Register all buttons are registered in ir.model.button

issue6389
review36621002
This commit is contained in:
Sergi Almacellas Abellana committed 2018-03-01 12:44:48 +01:00
1 parent 867867a1af
commit a062c20d1d
2 files changed
+8 -2

No files matched your search

+8 -1
View File
@@ -122,7 +122,14 @@ this repository contains the full copyright notices and license terms. -->
<field name="group" ref="group_purchase_request"/>
</record>
<record model="ir.action.keyword"
<record model="ir.model.button"
id="purchase_hande_purchase_cancellation_exception_button">
<field name="name">handle_purchase_cancellation_exception</field>
<field name="string">Handle Purchase Cancellation</field>
<field name="model" search="[('model', '=', 'purchase.request')]"/>
</record>
<record model="ir.action.keyword"
id="wizard_purchase_cancellation_handle_exception_keyword">
<field name="action"
ref="wizard_purchase_cancellation_handle_exception"/>
-1
View File
@@ -42,7 +42,6 @@ this repository contains the full copyright notices and license terms. -->
<field name="state"/>
<group col="-1" colspan="2" id="buttons">
<button name="handle_purchase_cancellation_exception"
string="Handle Purchase Cancellation"
icon="tryton-go-next"/>
</group>
</form>