summaryrefslogtreecommitdiff
path: root/addons/uom/views
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2018-04-25 15:21:02 +0200
committerYannick Tivisse <yti@odoo.com>2018-04-26 15:13:38 +0200
commit99f497b390e680629dce3a7e2e282ada74ee9884 (patch)
tree3eb22b0bdcbe3d9709246309ff0dd0e404d1d259 /addons/uom/views
parentab179bb2d7b8f890e04ea79e70d7bc0898e7599f (diff)
[IMP] *: Define groups on res.users models
The reified view on the res users will be dropped in the following commit. The previous commit adds support to define each group as a computed field on the res users. This commit defines: - A boolean field for each 'isolated' res.group, i.e. a group in the hidden category. - A selection field for each 'Application' res.group, i.e. a group in a application category. Example: - The group to manage pricelist in sales becomes a boolean field - The groups project user/manager become a selection field
Diffstat (limited to 'addons/uom/views')
-rw-r--r--addons/uom/views/res_users_views.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/uom/views/res_users_views.xml b/addons/uom/views/res_users_views.xml
new file mode 100644
index 00000000000..55240233a6a
--- /dev/null
+++ b/addons/uom/views/res_users_views.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<odoo>
+ <record id="res_users_view_form" model="ir.ui.view">
+ <field name="name">res.users.form.uom.inherit</field>
+ <field name="model">res.users</field>
+ <field name="inherit_id" ref="base.view_users_form"/>
+ <field name="arch" type="xml">
+ <group name="technical" position="inside">
+ <label for="has_group_uom" colspan="3"/>
+ <div>
+ <field name='has_group_uom' colspan="1" class="oe_inline"/>
+ </div>
+ </group>
+ </field>
+ </record>
+</odoo>