chat.freenode.net #tryton log beginning Wed Jan 30 00:00:01 CET 2019 | ||
-!- udono1(~udono@188.210.61.125) has joined #tryton | 23:42 | |
-!- yangoon1(~mathiasb@i59F4A101.versanet.de) has joined #tryton | 03:20 | |
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton | 04:53 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 07:17 | |
-!- rpit(~rpit@p200300C88F2690003586AEACD9191DC9.dip0.t-ipconnect.de) has joined #tryton | 07:25 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 08:00 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:09 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:19 | |
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton | 08:48 | |
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton | 09:18 | |
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton | 09:24 | |
-!- thaneor1(~lenovo3@179.26.123.167) has joined #tryton | 10:04 | |
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton | 10:35 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 10:52 | |
-!- mariomop(~quassel@host201.201-253-198.telecom.net.ar) has joined #tryton | 11:18 | |
-!- nzaniela(~nzaniela@41.80.79.92) has joined #tryton | 11:19 | |
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton | 11:24 | |
nzaniela | STATES_USER = {'readonly': (Eval('state') != 'open'),} does this mean if state is not open then the field is readonly pls | 11:44 |
---|---|---|
nzaniela | i have fields displayed in the client and am wondering why they are all readonly | 11:45 |
nzaniela | and this is also in the code am reading STATES_ADMIN = { 'readonly': Not(In(Eval('state'), ['approved', 'assigned', 'waiting_approval'])),} | 11:45 |
cedk | nzaniela: readonly key of states of a field, make it readonly if the PYSON statement is evaluated to True | 11:57 |
-!- rpit(~rpit@p200300C88F26900083E3609496DE5132.dip0.t-ipconnect.de) has joined #tryton | 11:57 | |
nzaniela | cedk: thanks | 12:06 |
nzaniela | cedk: what does this really mean cause i know the client is evaluating it to boolean causing the fields to be readonly but the state is open... states={'readonly': Or((Eval('create_uid') != Eval('_user', '0')) (Eval('state') != 'open')), }) | 12:08 |
cedk | nzaniela: this other part is false | 12:09 |
nzaniela | cedk: hope i could pick your mind this ... the state is open so its not supposed to be false | 12:11 |
cedk | nzaniela: there is an OR | 12:12 |
nzaniela | cedk: if i understand on the execution does it mean , if the create_uid that is e.g admin is not equal to admin who is 0 or state is open then readonly | 12:14 |
-!- hirschbeutel55(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton | 12:14 | |
nzaniela | or whats the best way to have the field readonly only if the state is open and not otherwise | 12:15 |
nzaniela | cedk: this is an example of the field i have on code location = fields.Many2One('garage.location', 'Location', | 12:16 |
nzaniela | depends=['machine'], states={'readonly': Or((Eval('create_uid') != Eval('_user', '0')),(Eval('state') != 'open')),}) | 12:16 |
pokoli | nzaniela: i understand the same as you :) | 12:21 |
nzaniela | pokoli: good we are in the same boat ... but the client is showing this fields as readonly ? and i want them not readonly | 12:25 |
nzaniela | what am missing | 12:25 |
nzaniela | ? | 12:25 |
-!- hulu(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 12:26 | |
-!- nicoe(~nicoe@2a02:2788:54:1b6:7e2a:31ff:fe5e:b25d) has joined #tryton | 12:36 | |
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton | 12:44 | |
nzaniela | Hi i think this is an issue with sao ... in the python client it works and the field example above location is editable in the tryton client | 12:47 |
-!- Abodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton | 12:55 | |
-!- Abodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has left #tryton | 12:56 | |
-!- Abodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton | 12:56 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 13:00 | |
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton | 13:09 | |
-!- Abodivbb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton | 13:15 | |
-!- Wabodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton | 13:15 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 13:28 | |
semarie | do it would have interest to add a sum="Amount" attribute on <field name="amount"> on Payment (payment_list.xml) ? it is something I need (to see the total amount of sepa payment before processing it), but I could keep it locally if it is only me | 13:56 |
pokoli | nzaniela: have you tried refreshing the page? Maybe you modified the values and the expression is on sao cache | 13:59 |
pokoli | semarie: why you need to see the total? are there some diferences on the workflow depending on the amount? | 14:00 |
pokoli | semarie: i.e: If the user is not from a certaint group it can not process an sepa payment group higher than 10.000 | 14:01 |
pokoli | semarie: or it's only for cosmetic prouposes? | 14:01 |
nzaniela | pokoli: i think the issue might be the sao client i was using earlier was develop branch but the trytond with code was 4.4 .. i think that might be the issue if not no idea | 14:05 |
pokoli | nzaniela: probably, you should use the sao version from same series | 14:05 |
nzaniela | pokoli: your comment earlier really helped | 14:07 |
pokoli | nzaniela: I'm always happy to help :) | 14:10 |
semarie | pokoli: I want to be sure I have enough money on bank account before asking the bank to do something with it | 14:21 |
semarie | and some payments could be postoned few days if required for example | 14:22 |
-!- udono(~udono@170-140-067-156.ip-addr.inexio.net) has joined #tryton | 14:22 | |
pokoli | semarie: so if tryton knows how money there is on the bank (it should if you have the statemets updated) you can add some validation on the process method of the payment workflow to prevent such creation | 14:30 |
pokoli | semarie: prevent or at least raise a warning | 14:30 |
pokoli | semarie: otherwise the user can always omit this information | 14:30 |
semarie | I understand. but it would add too much complexity: payments from direct-debit should be considered too. and some kind of payments like loaning are managed by tryton | 14:33 |
semarie | are *not* | 14:33 |
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton | 14:39 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 15:09 | |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 16:47 | |
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton | 19:13 | |
-!- udono1(~udono@170-140-067-156.ip-addr.inexio.net) has joined #tryton | 19:40 | |
-!- udono(~udono@170-140-067-156.ip-addr.inexio.net) has joined #tryton | 19:43 | |
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton | 21:00 | |
-!- thaneor(~lenovo3@r167-56-50-113.dialup.adsl.anteldata.net.uy) has joined #tryton | 22:07 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:14 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!