IRC logs of #tryton for Wednesday, 2019-01-30

chat.freenode.net #tryton log beginning Wed Jan 30 00:00:01 CET 2019
-!- udono1(~udono@188.210.61.125) has joined #tryton23:42
-!- yangoon1(~mathiasb@i59F4A101.versanet.de) has joined #tryton03:20
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton04:53
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:17
-!- rpit(~rpit@p200300C88F2690003586AEACD9191DC9.dip0.t-ipconnect.de) has joined #tryton07:25
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:00
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:19
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton08:48
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton09:18
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton09:24
-!- thaneor1(~lenovo3@179.26.123.167) has joined #tryton10:04
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton10:35
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton10:52
-!- mariomop(~quassel@host201.201-253-198.telecom.net.ar) has joined #tryton11:18
-!- nzaniela(~nzaniela@41.80.79.92) has joined #tryton11:19
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton11:24
nzanielaSTATES_USER = {'readonly': (Eval('state') != 'open'),} does  this  mean  if state is  not open  then the  field is  readonly  pls11:44
nzanielai have  fields  displayed in the client and  am wondering why they  are all readonly11:45
nzanielaand  this  is  also in the  code am  reading  STATES_ADMIN = {   'readonly': Not(In(Eval('state'), ['approved', 'assigned', 'waiting_approval'])),}11:45
cedknzaniela: readonly key of states of a field, make it readonly if the PYSON statement is evaluated to True11:57
-!- rpit(~rpit@p200300C88F26900083E3609496DE5132.dip0.t-ipconnect.de) has joined #tryton11:57
nzanielacedk:  thanks12:06
nzanielacedk: 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
cedknzaniela: this other part is false12:09
nzanielacedk: hope  i  could  pick your mind this ...  the state is  open  so  its not  supposed  to be false12:11
cedknzaniela: there is an OR12:12
nzanielacedk: 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 readonly12:14
-!- hirschbeutel55(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton12:14
nzanielaor  whats the best way  to  have the field readonly  only if  the state is  open  and  not otherwise12:15
nzanielacedk: 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
pokolinzaniela: i understand the same as you :)12:21
nzanielapokoli: good we are in the same  boat  ...  but the client is  showing  this fields  as  readonly ? and i want them not readonly12:25
nzanielawhat am  missing12:25
nzaniela?12:25
-!- hulu(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton12:26
-!- nicoe(~nicoe@2a02:2788:54:1b6:7e2a:31ff:fe5e:b25d) has joined #tryton12:36
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton12:44
nzanielaHi 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 client12:47
-!- Abodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton12:55
-!- Abodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has left #tryton12:56
-!- Abodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton12:56
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton13:00
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton13:09
-!- Abodivbb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton13:15
-!- Wabodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton13:15
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton13:28
semariedo 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 me13:56
pokolinzaniela: have you tried refreshing the page? Maybe you modified the values and the expression is on sao cache13:59
pokolisemarie: why you need to see the total? are there some diferences on the workflow depending on the amount?14:00
pokolisemarie: i.e: If the user is not from a certaint group it can not process an sepa payment group higher than 10.00014:01
pokolisemarie: or it's only for cosmetic prouposes?14:01
nzanielapokoli: 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 idea14:05
pokolinzaniela: probably, you should use the sao version from same series14:05
nzanielapokoli: your comment earlier really  helped14:07
pokolinzaniela: I'm always happy to help :)14:10
semariepokoli: I want to be sure I have enough money on bank account before asking the bank to do something with it14:21
semarieand some payments could be postoned few days if required for example14:22
-!- udono(~udono@170-140-067-156.ip-addr.inexio.net) has joined #tryton14:22
pokolisemarie: 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 creation14:30
pokolisemarie: prevent or at least raise a warning14:30
pokolisemarie: otherwise the user can always omit this information14:30
semarieI 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 tryton14:33
semarieare *not*14:33
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton14:39
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton15:09
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton16:47
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton19:13
-!- udono1(~udono@170-140-067-156.ip-addr.inexio.net) has joined #tryton19:40
-!- udono(~udono@170-140-067-156.ip-addr.inexio.net) has joined #tryton19:43
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton21:00
-!- thaneor(~lenovo3@r167-56-50-113.dialup.adsl.anteldata.net.uy) has joined #tryton22:07
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:14

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!