Simplify views for non-admin users

issue8776
review252541002
This commit is contained in:
Cédric Krier
2019-11-26 22:28:34 +01:00
parent 8613b78232
commit f3a47cde0c
5 changed files with 15 additions and 5 deletions
+7
View File
@@ -50,9 +50,16 @@ this repository contains the full copyright notices and license terms. -->
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.ui.view" id="attribute_view_list_simple">
<field name="model">product.attribute</field>
<field name="type">tree</field>
<field name="priority" eval="10"/>
<field name="name">attribute_list_simple</field>
</record>
<record model="ir.ui.view" id="attribute_view_list">
<field name="model">product.attribute</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">attribute_list</field>
</record>
<record model="ir.ui.view" id="attribute_view_form">
+2 -2
View File
@@ -2,10 +2,10 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form>
<label name="name"/>
<field name="name"/>
<label name="string"/>
<field name="string"/>
<label name="name"/>
<field name="name"/>
<label name="type_"/>
<field name="type_"/>
<label name="digits"/>
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="name" expand="1"/>
<field name="string" expand="1"/>
<field name="type_"/>
<field name="name" tree_invisible="1"/>
</tree>
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<tree>
<field name="string" expand="1"/>
</tree>
+1 -2
View File
@@ -4,6 +4,5 @@ this repository contains the full copyright notices and license terms. -->
<form>
<label name="name"/>
<field name="name"/>
<newline/>
<field name="attributes" colspan="4"/>
<field name="attributes" colspan="4" view_ids="product_attribute.attribute_view_list"/>
</form>