changeset 5d60412205c1 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=5d60412205c1
description:
        Add document widget

        issue10173
        review330471004
diffstat:

 CHANGELOG                           |   1 +
 trytond/ir/ui/form.rnc              |   1 +
 trytond/ir/ui/form.rng              |   1 +
 trytond/ir/view/attachment_form.xml |  32 ++++++++++++++++----------------
 4 files changed, 19 insertions(+), 16 deletions(-)

diffs (75 lines):

diff -r ccaa706ed324 -r 5d60412205c1 CHANGELOG
--- a/CHANGELOG Tue Mar 23 23:56:54 2021 +0100
+++ b/CHANGELOG Sat Mar 27 17:17:00 2021 +0100
@@ -1,3 +1,4 @@
+* Add document widget on form view
 * Add full text and similarity search and FullText field
 * Add URL type to icon
 * Use instance method to get next sequence value
diff -r ccaa706ed324 -r 5d60412205c1 trytond/ir/ui/form.rnc
--- a/trytond/ir/ui/form.rnc    Tue Mar 23 23:56:54 2021 +0100
+++ b/trytond/ir/ui/form.rnc    Sat Mar 27 17:17:00 2021 +0100
@@ -46,6 +46,7 @@
     | "date"
     | "datetime"
     | "dict"
+    | "document"
     | "email"
     | "float"
     | "html"
diff -r ccaa706ed324 -r 5d60412205c1 trytond/ir/ui/form.rng
--- a/trytond/ir/ui/form.rng    Tue Mar 23 23:56:54 2021 +0100
+++ b/trytond/ir/ui/form.rng    Sat Mar 27 17:17:00 2021 +0100
@@ -190,6 +190,7 @@
           <value>date</value>
           <value>datetime</value>
           <value>dict</value>
+          <value>document</value>
           <value>email</value>
           <value>float</value>
           <value>html</value>
diff -r ccaa706ed324 -r 5d60412205c1 trytond/ir/view/attachment_form.xml
--- a/trytond/ir/view/attachment_form.xml       Tue Mar 23 23:56:54 2021 +0100
+++ b/trytond/ir/view/attachment_form.xml       Sat Mar 27 17:17:00 2021 +0100
@@ -2,25 +2,25 @@
 <!-- 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 col="2">
-    <group id="content" col="2" colspan="1">
-        <label name="resource"/>
-        <field name="resource"/>
-        <label name="name"/>
-        <group id="name_data" col="1" colspan="1">
-            <field name="data" filename_visible="1"/>
-            <group name="link" string="">
-                <field name="name"/>
-            </group>
+    <label name="resource"/>
+    <field name="resource"/>
+    <label name="name"/>
+    <group id="name_data" col="1" colspan="1">
+        <field name="data" filename_visible="1"/>
+        <group name="link" string="">
+            <field name="name"/>
         </group>
-        <label name="type"/>
-        <field name="type"/>
-        <label name="link"/>
-        <field name="link" widget="url"/>
-        <label name="copy_to_resources"/>
-        <field name="copy_to_resources" yexpand="0"/>
     </group>
-    <field name="data" widget="image" readonly="1"/>
+    <label name="type"/>
+    <field name="type"/>
+    <label name="link"/>
+    <field name="link" widget="url"/>
+    <label name="copy_to_resources"/>
+    <field name="copy_to_resources" yexpand="0"/>
     <notebook>
+        <page string="Document" name="data" col="1">
+            <field name="data" widget="document"/>
+        </page>
         <page name="description" col="1">
             <field name="description"/>
         </page>

Reply via email to