You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.6 KiB
56 lines
2.6 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!--View for the fields in user forms.-->
|
|
<record id="view_users_form_simple_modif" model="ir.ui.view">
|
|
<field name="name">res.users.view.form.email.configurator.advanced
|
|
</field>
|
|
<field name="model">res.users</field>
|
|
<field name="inherit_id" ref="base.view_users_form_simple_modif"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='email']" position="replace">
|
|
<group id="mail_server" string="Mail Server Settings"
|
|
style="width:auto;">
|
|
<field name="email" widget="email"/>
|
|
</group>
|
|
</xpath>
|
|
<xpath expr="//field[@name='email']" position="after">
|
|
<field name="pwd" password="True"/>
|
|
<field name="provider" options="{'no_create':True}"/>
|
|
<div style="width:107px;">
|
|
<button class="btn btn-light" type="object"
|
|
name="action_confirm" id="confirm">
|
|
<i class="fa fa-desktop" aria-hidden="true"/>
|
|
Test Email
|
|
</button>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_users_form" model="ir.ui.view">
|
|
<field name="name">res.users.view.form.email.configurator.advanced
|
|
</field>
|
|
<field name="model">res.users</field>
|
|
<field name="inherit_id" ref="base.view_users_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='notification_type']" position="after">
|
|
<field name="automail" invisible="1"/>
|
|
<group string="Mail Server Settings" style="width:auto;">
|
|
<field name="email" widget="email"
|
|
attrs="{'required':[('automail','=',True)]}"/>
|
|
<field name="pwd" password="True"
|
|
attrs="{'required':[('automail','=',True)]}"/>
|
|
<field name="provider" options="{'no_create':True}"
|
|
rattrs="{'required':[('automail','=',True)]}"/>
|
|
<div style="width:107px;">
|
|
<button class="btn btn-light" type="object"
|
|
name="action_confirm" id="confirm">
|
|
<i class="fa fa-desktop" aria-hidden="true"/>
|
|
Test Email
|
|
</button>
|
|
</div>
|
|
</group>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|