Register all buttons are registered in ir.model.button

issue6389
review36621002
This commit is contained in:
Sergi Almacellas Abellana
2018-03-01 12:44:30 +01:00
parent 77472844cd
commit acfc85e473
2 changed files with 24 additions and 3 deletions
+3 -3
View File
@@ -10,8 +10,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="run" string="Run" icon="tryton-executable"/>
<button name="do" string="Do" icon="tryton-ok"/>
<button name="cancel" icon="tryton-cancel"/>
<button name="run" icon="tryton-executable"/>
<button name="do" icon="tryton-ok"/>
</group>
</form>
+21
View File
@@ -278,6 +278,27 @@ this repository contains the full copyright notices and license terms. -->
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.button" id="work_cycle_cancel_button">
<field name="name">cancel</field>
<field name="string">Cancel</field>
<field name="model"
search="[('model', '=', 'production.work.cycle')]"/>
</record>
<record model="ir.model.button" id="work_cycle_do_button">
<field name="name">do</field>
<field name="string">Do</field>
<field name="model"
search="[('model', '=', 'production.work.cycle')]"/>
</record>
<record model="ir.model.button" id="work_cycle_run_button">
<field name="name">run</field>
<field name="string">Run</field>
<field name="model"
search="[('model', '=', 'production.work.cycle')]"/>
</record>
<record model="ir.rule.group" id="rule_group_work_cycle">
<field name="model" search="[('model', '=', 'production.work.cycle')]"/>
<field name="global_p" eval="True"/>