Register all buttons are registered in ir.model.button

issue6389
review36621002
This commit is contained in:
Sergi Almacellas Abellana
2018-03-01 12:46:03 +01:00
parent 47d6a220b4
commit cc61bf6fe2
2 changed files with 13 additions and 2 deletions
+11
View File
@@ -48,6 +48,17 @@ this repository contains the full copyright notices and license terms. -->
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.model.button" id="user_validate_email_button">
<field name="name">validate_email</field>
<field name="string">Validate E-mail</field>
<field name="model" search="[('model', '=', 'web.user')]"/>
</record>
<record model="ir.model.button" id="user_reset_password_button">
<field name="name">reset_password</field>
<field name="string">Reset Password</field>
<field name="model" search="[('model', '=', 'web.user')]"/>
</record>
<record model="ir.action.report" id="report_email_validation">
<field name="name">Email Validation</field>
+2 -2
View File
@@ -11,8 +11,8 @@ this repository contains the full copyright notices and license terms. -->
<field name="active"/>
<label name="password"/>
<field name="password" widget="password"/>
<button name="reset_password" string="Reset Password" colspan="2"/>
<button name="reset_password" colspan="2"/>
<label name="email_valid"/>
<field name="email_valid"/>
<button name="validate_email" string="Validate E-mail" colspan="2"/>
<button name="validate_email" colspan="2"/>
</form>