Register all buttons are registered in ir.model.button
issue6389 review36621002
This commit is contained in:
1 parent
099b319474
commit
001ffb9aaa
2 files changed
+11
-3
No files matched your search
@@ -127,6 +127,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
|
||||
<record model="ir.model.button" id="forecast_cancel_button">
|
||||
<field name="name">cancel</field>
|
||||
<field name="string">Cancel</field>
|
||||
<field name="model" search="[('model', '=', 'stock.forecast')]"/>
|
||||
</record>
|
||||
<record model="ir.model.button-res.group"
|
||||
@@ -137,6 +138,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
|
||||
<record model="ir.model.button" id="forecast_draft_button">
|
||||
<field name="name">draft</field>
|
||||
<field name="string">Draft</field>
|
||||
<field name="model" search="[('model', '=', 'stock.forecast')]"/>
|
||||
</record>
|
||||
<record model="ir.model.button-res.group"
|
||||
@@ -147,6 +149,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
|
||||
<record model="ir.model.button" id="forecast_confirm_button">
|
||||
<field name="name">confirm</field>
|
||||
<field name="string">Confirm</field>
|
||||
<field name="model" search="[('model', '=', 'stock.forecast')]"/>
|
||||
</record>
|
||||
<record model="ir.model.button-res.group"
|
||||
@@ -155,5 +158,10 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="group" ref="group_stock_forecast"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.model.button" id="forecast_complete_button">
|
||||
<field name="name">complete</field>
|
||||
<field name="model" search="[('model', '=', 'stock.forecast')]"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</tryton>
|
||||
@@ -20,9 +20,9 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<label name="state"/>
|
||||
<field name="state"/>
|
||||
<group colspan="2" col="-1" id="buttons">
|
||||
<button string="Reset to Draft" name="draft" icon="tryton-clear"/>
|
||||
<button string="Cancel" name="cancel" icon="tryton-cancel"/>
|
||||
<button string="Confirm" name="confirm" icon="tryton-ok"/>
|
||||
<button name="draft" icon="tryton-clear"/>
|
||||
<button name="cancel" icon="tryton-cancel"/>
|
||||
<button name="confirm" icon="tryton-ok"/>
|
||||
</group>
|
||||
</group>
|
||||
</form>
|
||||
Reference in new issue
Block a user