mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-21 16:52:01 +02:00
Initial commit: Security packages
This commit is contained in:
commit
bb469e4763
1399 changed files with 278378 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
<odoo>
|
||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.form.auth_password_policy</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="priority" eval ="20"/>
|
||||
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<!-- add before the Access Rights section -->
|
||||
<xpath expr="//div[@id='allow_import']" position="before">
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
<div class="o_setting_left_pane"/>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="minlength" class="mr8"/>
|
||||
<field name="minlength"/>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<odoo>
|
||||
<record id="change_password" model="ir.ui.view">
|
||||
<field name="name">Enable password meter on own password wizard</field>
|
||||
<field name="inherit_id" ref="base.change_password_own_form"/>
|
||||
<field name="model">change.password.own</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='new_password']" position="attributes">
|
||||
<attribute name="widget">password_meter</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record id="change_password_multi" model="ir.ui.view">
|
||||
<field name="name">Enable password meter on multi passwords wizard</field>
|
||||
<field name="inherit_id" ref="base.change_password_wizard_user_tree_view"/>
|
||||
<field name="model">change.password.user</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='new_passwd']" position="attributes">
|
||||
<attribute name="widget">password_meter</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue