changeset 21b77510b21a in modules/party:default
details: https://hg.tryton.org/modules/party?cmd=changeset&node=21b77510b21a
description:
        Add support for avatar

        issue10085
        review343561002
diffstat:

 party.py            |   3 ++-
 view/party_form.xml |  22 ++++++++++++----------
 2 files changed, 14 insertions(+), 11 deletions(-)

diffs (46 lines):

diff -r 26357bb18e09 -r 21b77510b21a party.py
--- a/party.py  Wed Mar 24 21:37:48 2021 +0100
+++ b/party.py  Sun Mar 28 19:20:36 2021 +0200
@@ -874,7 +874,8 @@
         pool = Pool()
         Attachment = pool.get('ir.attachment')
         Note = pool.get('ir.note')
-        return [Attachment, Note]
+        Avatar = pool.get('ir.avatar')
+        return [Attachment, Note, Avatar]
 
 
 class EraseAsk(ModelView):
diff -r 26357bb18e09 -r 21b77510b21a view/party_form.xml
--- a/view/party_form.xml       Wed Mar 24 21:37:48 2021 +0100
+++ b/view/party_form.xml       Sun Mar 28 19:20:36 2021 +0200
@@ -2,17 +2,19 @@
 <!-- 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="6">
-    <label name="name"/>
-    <field name="name" xexpand="1"/>
-    <label name="code"/>
-    <field name="code"/>
-    <group col="-1" colspan="2" id="checkboxes">
-        <label name="active"/>
-        <field name="active" xexpand="0" width="25"/>
-        <!-- Add here some checkboxes ! -->
+    <group col="6" colspan="5" id="header" yalign="0">
+        <label name="name"/>
+        <field name="name" xexpand="1"/>
+        <label name="code"/>
+        <field name="code"/>
+        <group col="-1" colspan="2" id="checkboxes">
+            <label name="active"/>
+            <field name="active" xexpand="0" width="25"/>
+                <!-- Add here some checkboxes ! -->
+        </group>
+        <label name="replaced_by"/>
+        <field name="replaced_by"/>
     </group>
-    <label name="replaced_by"/>
-    <field name="replaced_by"/>
     <notebook colspan="6">
         <page string="General" id="general">
             <field name="addresses" mode="form,tree" colspan="4"

Reply via email to