changeset f85ed776da7e in modules/product_attribute:default
details:
https://hg.tryton.org/modules/product_attribute?cmd=changeset;node=f85ed776da7e
description:
Simplify views for non-admin users
issue8776
review252541002
diffstat:
product.xml | 7 +++++++
view/attribute_form.xml | 4 ++--
view/attribute_list.xml | 2 +-
view/attribute_list_simple.xml | 4 ++++
view/attribute_set_form.xml | 3 +--
5 files changed, 15 insertions(+), 5 deletions(-)
diffs (67 lines):
diff -r d935d8c98c5a -r f85ed776da7e product.xml
--- a/product.xml Mon Nov 25 21:55:20 2019 +0100
+++ b/product.xml Tue Nov 26 22:28:34 2019 +0100
@@ -50,9 +50,16 @@
<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">
diff -r d935d8c98c5a -r f85ed776da7e view/attribute_form.xml
--- a/view/attribute_form.xml Mon Nov 25 21:55:20 2019 +0100
+++ b/view/attribute_form.xml Tue Nov 26 22:28:34 2019 +0100
@@ -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="string"/>
+ <field name="string"/>
<label name="name"/>
<field name="name"/>
- <label name="string"/>
- <field name="string"/>
<label name="type_"/>
<field name="type_"/>
<label name="digits"/>
diff -r d935d8c98c5a -r f85ed776da7e view/attribute_list.xml
--- a/view/attribute_list.xml Mon Nov 25 21:55:20 2019 +0100
+++ b/view/attribute_list.xml Tue Nov 26 22:28:34 2019 +0100
@@ -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>
diff -r d935d8c98c5a -r f85ed776da7e view/attribute_list_simple.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/view/attribute_list_simple.xml Tue Nov 26 22:28:34 2019 +0100
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<tree>
+ <field name="string" expand="1"/>
+</tree>
diff -r d935d8c98c5a -r f85ed776da7e view/attribute_set_form.xml
--- a/view/attribute_set_form.xml Mon Nov 25 21:55:20 2019 +0100
+++ b/view/attribute_set_form.xml Tue Nov 26 22:28:34 2019 +0100
@@ -4,6 +4,5 @@
<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>