Browse Source

pre-commit update

14.0
OCA-git-bot 5 years ago
committed by Jesús Alan Ramos Rodríguez
parent
commit
fcbbe8da30
  1. 2
      base_user_role/data/ir_cron.xml
  2. 2
      base_user_role/data/ir_module_category.xml
  3. 22
      base_user_role/views/role.xml
  4. 8
      base_user_role/views/user.xml

2
base_user_role/data/ir_cron.xml

@ -3,7 +3,6 @@
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
-->
<odoo noupdate="1">
<record model="ir.cron" id="cron_update_users">
<field name='name'>Update user roles</field>
<field name='interval_number'>3</field>
@ -15,5 +14,4 @@
<field name="state">code</field>
<field name="code">model.cron_update_users()</field>
</record>
</odoo>

2
base_user_role/data/ir_module_category.xml

@ -3,7 +3,6 @@
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
-->
<odoo>
<!--
This module category aims to be linked to role/group you create in your own
module (field 'res.groups.category_id').
@ -13,5 +12,4 @@ on the user form which will regroup all roles/groups for a better visibility.
<record model="ir.module.category" id="ir_module_category_role">
<field name='name'>User roles</field>
</record>
</odoo>

22
base_user_role/views/role.xml

@ -3,7 +3,6 @@
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
-->
<odoo>
<record id="view_res_users_role_form" model="ir.ui.view">
<field name="name">res.users.role.form</field>
<field name="model">res.users.role</field>
@ -20,12 +19,18 @@
</page>
<page string="Users">
<field name="line_ids" nolabel="1">
<tree editable="bottom" decoration-muted="not is_enabled">
<tree
editable="bottom"
decoration-muted="not is_enabled"
>
<field name="user_id" />
<field name="date_from" />
<field name="date_to" />
<field name="is_enabled" />
<field name="company_id" groups="base.group_multi_company"/>
<field
name="company_id"
groups="base.group_multi_company"
/>
</tree>
</field>
</page>
@ -34,7 +39,6 @@
</form>
</field>
</record>
<record id="view_res_users_role_tree" model="ir.ui.view">
<field name="name">res.users.role.tree</field>
<field name="model">res.users.role</field>
@ -45,7 +49,6 @@
</tree>
</field>
</record>
<record id="view_res_users_role_search" model="ir.ui.view">
<field name="name">res.users.role.search</field>
<field name="model">res.users.role</field>
@ -57,16 +60,15 @@
</search>
</field>
</record>
<record model="ir.actions.act_window" id="action_res_users_role_tree">
<field name="name">Roles</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.users.role</field>
<field name="view_id" ref="view_res_users_role_tree" />
</record>
<menuitem id="menu_action_res_users_role_tree"
<menuitem
id="menu_action_res_users_role_tree"
parent="base.menu_users"
action="action_res_users_role_tree"/>
action="action_res_users_role_tree"
/>
</odoo>

8
base_user_role/views/user.xml

@ -3,7 +3,6 @@
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
-->
<odoo>
<record id="view_res_users_form_inherit" model="ir.ui.view">
<field name="name">res.users.form.inherit</field>
<field name="model">res.users</field>
@ -17,14 +16,16 @@
<field name="date_from" />
<field name="date_to" />
<field name="is_enabled" />
<field name="company_id" groups="base.group_multi_company"/>
<field
name="company_id"
groups="base.group_multi_company"
/>
</tree>
</field>
</page>
</xpath>
</field>
</record>
<record id="view_res_users_search_inherit" model="ir.ui.view">
<field name="name">res.users.search.inherit</field>
<field name="model">res.users</field>
@ -35,5 +36,4 @@
</field>
</field>
</record>
</odoo>
Loading…
Cancel
Save