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 #tryton00:01
-!- yangoon1(~mathiasb@i59F4A101.versanet.de) has joined #tryton04:01
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton05:01
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:01
-!- rpit(~rpit@p200300C88F2690003586AEACD9191DC9.dip0.t-ipconnect.de) has joined #tryton08:01
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton09:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:01
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton09:01
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton10:01
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton10:01
-!- thaneor1(~lenovo3@179.26.123.167) has joined #tryton11:01
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton11:01
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton11:01
-!- mariomop(~quassel@host201.201-253-198.telecom.net.ar) has joined #tryton12:01
-!- nzaniela(~nzaniela@41.80.79.92) has joined #tryton12:01
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton12:01
nzanielaSTATES_USER = {'readonly': (Eval('state') != 'open'),} does  this  mean  if state is  not open  then the  field is  readonly  pls12:01
nzanielai have  fields  displayed in the client and  am wondering why they  are all readonly12:01
nzanielaand  this  is  also in the  code am  reading  STATES_ADMIN = {   'readonly': Not(In(Eval('state'), ['approved', 'assigned', 'waiting_approval'])),}12:01
cedknzaniela: readonly key of states of a field, make it readonly if the PYSON statement is evaluated to True12:01
-!- rpit(~rpit@p200300C88F26900083E3609496DE5132.dip0.t-ipconnect.de) has joined #tryton12:01
nzanielacedk:  thanks13:01
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')), })13:01
cedknzaniela: this other part is false13:01
nzanielacedk: hope  i  could  pick your mind this ...  the state is  open  so  its not  supposed  to be false13:01
cedknzaniela: there is an OR13:01
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 readonly13:01
-!- hirschbeutel55(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton13:01
nzanielaor  whats the best way  to  have the field readonly  only if  the state is  open  and  not otherwise13:01
nzanielacedk: this is an  example of the  field i have on code location = fields.Many2One('garage.location', 'Location',13:01
nzaniela        depends=['machine'], states={'readonly': Or((Eval('create_uid') != Eval('_user', '0')),(Eval('state') != 'open')),})13:01
pokolinzaniela: i understand the same as you :)13:01
nzanielapokoli: good we are in the same  boat  ...  but the client is  showing  this fields  as  readonly ? and i want them not readonly13:01
nzanielawhat am  missing13:01
nzaniela?13:01
-!- hulu(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton13:01
-!- nicoe(~nicoe@2a02:2788:54:1b6:7e2a:31ff:fe5e:b25d) has joined #tryton13:01
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton13:01
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 client13:01
-!- Abodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton13:01
-!- Abodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has left #tryton13:01
-!- Abodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton13:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:01
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton14:01
-!- Abodivbb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton14:01
-!- Wabodivb(c532fa2f@gateway/web/freenode/ip.197.50.250.47) has joined #tryton14:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:01
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 me14:01
pokolinzaniela: have you tried refreshing the page? Maybe you modified the values and the expression is on sao cache14:01
pokolisemarie: why you need to see the total? are there some diferences on the workflow depending on the amount?15:01
pokolisemarie: i.e: If the user is not from a certaint group it can not process an sepa payment group higher than 10.00015:01
pokolisemarie: or it's only for cosmetic prouposes?15: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 idea15:01
pokolinzaniela: probably, you should use the sao version from same series15:01
nzanielapokoli: your comment earlier really  helped15:01
pokolinzaniela: I'm always happy to help :)15:01
semariepokoli: I want to be sure I have enough money on bank account before asking the bank to do something with it15:01
semarieand some payments could be postoned few days if required for example15:01
-!- udono(~udono@170-140-067-156.ip-addr.inexio.net) has joined #tryton15:01
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 creation15:01
pokolisemarie: prevent or at least raise a warning15:01
pokolisemarie: otherwise the user can always omit this information15:01
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 tryton15:01
semarieare *not*15:01
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton15:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton16:01
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton17:01
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton20:01
-!- udono1(~udono@170-140-067-156.ip-addr.inexio.net) has joined #tryton20:01
-!- udono(~udono@170-140-067-156.ip-addr.inexio.net) has joined #tryton20:01
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton22:01
-!- thaneor(~lenovo3@r167-56-50-113.dialup.adsl.anteldata.net.uy) has joined #tryton23:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:01

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