health-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health-dev] tryton web- i can´t see the appointments


From: arnold rolando yauri guerra
Subject: Re: [Health-dev] tryton web- i can´t see the appointments
Date: Mon, 17 Oct 2022 13:00:28 -0500

Hello Sergi 
thanks for you support
i use this correction 
--- a/src/view/tree.js	Sun Oct 09 18:33:16 2022 +0200
+++ b/src/view/tree.js	Fri Oct 14 13:12:44 2022 +0200
@@ -1372,12 +1372,19 @@
         var redraw = function() {
             for (; i < rows.length; i++) {
                 var row = rows[i];
-                var record = row.record,
-                    column = row.tree.columns[0];
-                if (!record.is_loaded(column.attributes.name)) {
+                var record = row.record;
+                var field_name;
+                for (var j=0; j < row.tree.columns.length; j++) {
+                    var column = row.tree.columns[j];
+                    if (column.type == 'field') {
+                        field_name = column.attributes.name;
+                        break;
+                    }
+                }
+                if (field_name && !record.is_loaded(field_name)) {
                     // Prefetch the first field to prevent promises in
                     // Cell.render
-                    record.load(column.attributes.name).done(redraw);
+                    record.load(field_name).done(redraw);
                     return;
                 } else {
                     row.redraw(selected, expanded);
I change the code and restart the service but i still have the same problemn with appointment


El lun, 17 oct 2022 a las 9:55, Sergi Almacellas Abellana (<sergi@koolpi.com>) escribió:
Hi Arnold.

There is an upstream bug that makes the appointments view crash on the
upstream.
Fortunatly, I already reported and fixed it. You can see the details here:

https://bugs.tryton.org/issue11762

Currently the fix is just on the development branch, but it be
backported to 6.0 series (the one that gnuhealth uses) in a week or so.

Everything should work as expected once the fix is backported and released.

Hope it helps!

El 17/10/22 a les 16:24, health-dev-request@gnu.org ha escrit:
> tryton web- i can´t see the appointments


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]