Register all buttons are registered in ir.model.button

issue6389
review36621002
This commit is contained in:
Sergi Almacellas Abellana
2018-03-01 12:42:29 +01:00
parent 1d77aa6e47
commit 682b59da65
5 changed files with 75 additions and 12 deletions
+64
View File
@@ -117,6 +117,35 @@ this repository contains the full copyright notices and license terms. -->
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.button" id="mandate_cancel_button">
<field name="name">cancel</field>
<field name="string">Cancel</field>
<field name="confirm">Are you sure to cancel the mandate?</field>
<field name="model"
search="[('model', '=', 'account.payment.sepa.mandate')]"/>
</record>
<record model="ir.model.button" id="mandate_draft_button">
<field name="name">draft</field>
<field name="string">Draft</field>
<field name="model"
search="[('model', '=', 'account.payment.sepa.mandate')]"/>
</record>
<record model="ir.model.button" id="mandate_validate_mandate_button">
<field name="name">validate_mandate</field>
<field name="string">Validate</field>
<field name="model"
search="[('model', '=', 'account.payment.sepa.mandate')]"/>
</record>
<record model="ir.model.button" id="mandate_request_button">
<field name="name">request</field>
<field name="string">Request</field>
<field name="model"
search="[('model', '=', 'account.payment.sepa.mandate')]"/>
</record>
<record model="ir.sequence.type" id="sequence_type_mandate">
<field name="name">SEPA Mandate</field>
<field name="code">account.payment.sepa.mandate</field>
@@ -231,6 +260,41 @@ this repository contains the full copyright notices and license terms. -->
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.button" id="message_cancel_button">
<field name="name">cancel</field>
<field name="string">Cancel</field>
<field name="model"
search="[('model', '=', 'account.payment.sepa.message')]"/>
</record>
<record model="ir.model.button" id="message_draft_button">
<field name="name">draft</field>
<field name="string">Draft</field>
<field name="model"
search="[('model', '=', 'account.payment.sepa.message')]"/>
</record>
<record model="ir.model.button" id="message_wait_button">
<field name="name">wait</field>
<field name="string">Wait</field>
<field name="model"
search="[('model', '=', 'account.payment.sepa.message')]"/>
</record>
<record model="ir.model.button" id="message_do_button">
<field name="name">do</field>
<field name="string">Do</field>
<field name="model"
search="[('model', '=', 'account.payment.sepa.message')]"/>
</record>
<record model="ir.model.button" id="group_generate_message_button">
<field name="name">generate_message</field>
<field name="string">Generate Message</field>
<field name="model"
search="[('model', '=', 'account.payment.group')]"/>
</record>
<record model="ir.action.report" id="report_mandate">
<field name="name">Mandate</field>
<field name="model">account.payment.sepa.mandate</field>
+4 -5
View File
@@ -23,10 +23,9 @@ 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"
confirm="Are you sure to cancel the mandate?"/>
<button name="draft" string="Draft" icon="tryton-go-previous"/>
<button name="request" string="Request" icon="tryton-go-next"/>
<button name="validate_mandate" string="Validate" icon="tryton-ok"/>
<button name="cancel" icon="tryton-cancel"/>
<button name="draft" icon="tryton-go-previous"/>
<button name="request" icon="tryton-go-next"/>
<button name="validate_mandate" icon="tryton-ok"/>
</group>
</form>
+4 -4
View File
@@ -14,10 +14,10 @@ this repository contains the full copyright notices and license terms. -->
<label name="state"/>
<field name="state"/>
<group col="-1" colspan="4" id="buttons">
<button name="cancel" string="Cancel" icon="tryton-cancel"/>
<button name="draft" string="Draft" icon="tryton-go-previous"/>
<button name="wait" string="Wait" icon="tryton-go-next"/>
<button name="do" string="Do" icon="tryton-ok"/>
<button name="cancel" icon="tryton-cancel"/>
<button name="draft" icon="tryton-go-previous"/>
<button name="wait" icon="tryton-go-next"/>
<button name="do" icon="tryton-ok"/>
</group>
<field name="filename" invisible="1" colspan="6"/>
</form>
+2 -2
View File
@@ -5,7 +5,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="type"/>
<field name="message" widget="binary" filename="filename"/>
<field name="state"/>
<button name="cancel" string="Cancel"/>
<button name="do" string="Do"/>
<button name="cancel"/>
<button name="do"/>
<field name="filename" tree_invisible="1"/>
</tree>
+1 -1
View File
@@ -4,6 +4,6 @@ this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/form/field[@name='kind']" position="after">
<field name="sepa_messages" colspan="4"/>
<button name="generate_message" string="Generate Message" colspan="4"/>
<button name="generate_message" colspan="4"/>
</xpath>
</data>