Register all buttons are registered in ir.model.button

issue6389
review36621002
This commit is contained in:
Sergi Almacellas Abellana committed 2018-03-01 12:43:28 +01:00
1 parent b64996e966
commit 81f7646b85
2 files changed
+24 -3

No files matched your search

+21
View File
@@ -93,6 +93,27 @@ this repository contains the full copyright notices and license terms. -->
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.button" id="landed_cost_cancel_button">
<field name="name">cancel</field>
<field name="string">Cancel</field>
<field name="model"
search="[('model', '=', 'account.landed_cost')]"/>
</record>
<record model="ir.model.button" id="landed_cost_post_button">
<field name="name">post</field>
<field name="string">Post</field>
<field name="model"
search="[('model', '=', 'account.landed_cost')]"/>
</record>
<record model="ir.model.button" id="landed_cost_draft_button">
<field name="name">draft</field>
<field name="string">Draft</field>
<field name="model"
search="[('model', '=', 'account.landed_cost')]"/>
</record>
<record model="ir.rule.group" id="rule_group_landed_cost">
<field name="model" search="[('model', '=', 'account.landed_cost')]"/>
<field name="global_p" eval="True"/>
+3 -3
View File
@@ -15,8 +15,8 @@ this repository contains the full copyright notices and license terms. -->
<label name="state"/>
<field name="state"/>
<group col="-1" colspan="2" id="buttons">
<button name="cancel" string="Cancel" icon="tryton-cancel"/>
<button name="draft" string="Draft" icon="tryton-clear"/>
<button name="post" string="Post" icon="tryton-ok"/>
<button name="cancel" icon="tryton-cancel"/>
<button name="draft" icon="tryton-clear"/>
<button name="post" icon="tryton-ok"/>
</group>
</form>