IRC logs of #tryton for Monday, 2015-10-12

chat.freenode.net #tryton log beginning Mon Oct 12 00:00:01 CEST 2015
2015-10-12 00:20 -!- cjbarnes18(~user@host86-129-110-17.range86-129.btcentralplus.com) has joined #tryton
2015-10-12 00:23 <cjbarnes18> hello, I would like to replace a method in the Address model in my module, what is the conventional way to do this? is there an example that you could direct me to?
2015-10-12 00:54 <cedk> cjbarnes18: replacing is most of the time a bad idea, it is better to extend
2015-10-12 00:54 <cedk> cjbarnes18: so you just have to write a module that extend/override this method
2015-10-12 05:21 -!- lukio(~lukio@181.47.148.245) has joined #tryton
2015-10-12 07:02 -!- yangoon(~mathiasb@p549F0372.dip0.t-ipconnect.de) has joined #tryton
2015-10-12 07:23 -!- den2204(~mahon@81.4.204.84) has joined #tryton
2015-10-12 07:40 -!- frispete_(~frispete@p54A91E16.dip0.t-ipconnect.de) has joined #tryton
2015-10-12 07:43 -!- rpit(~rpit@2a02:908:e670:3a80:8438:e0fb:78bc:a7c0) has joined #tryton
2015-10-12 08:18 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton
2015-10-12 08:42 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2015-10-12 08:46 -!- Timitos(~kpreisler@85.186.96.139) has joined #tryton
2015-10-12 09:23 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-10-12 10:10 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2015-10-12 10:29 -!- dj_xatra(d9a65382@gateway/web/freenode/ip.217.166.83.130) has joined #tryton
2015-10-12 11:15 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton
2015-10-12 11:57 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2015-10-12 15:16 -!- kstenger(~karla@r167-59-48-162.dialup.adsl.anteldata.net.uy) has joined #tryton
2015-10-12 15:38 -!- kstenger1(~karla@r167-59-55-101.dialup.adsl.anteldata.net.uy) has joined #tryton
2015-10-12 15:39 -!- kstenger(~karla@r167-59-55-101.dialup.adsl.anteldata.net.uy) has joined #tryton
2015-10-12 17:19 -!- smarro(~sebastian@181.16.4.44) has joined #tryton
2015-10-12 17:25 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-10-12 17:45 -!- smarro(~sebastian@181.16.4.44) has joined #tryton
2015-10-12 18:04 -!- sunny_dealmeida(~quassel@203.115.71.174) has joined #tryton
2015-10-12 18:24 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2015-10-12 18:35 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton
2015-10-12 18:52 -!- bechamel(~Adium@host-95-182-199-152.dynamic.voo.be) has joined #tryton
2015-10-12 21:15 -!- smarro(~sebastian@181.16.4.44) has joined #tryton
2015-10-12 21:34 -!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton
2015-10-12 21:49 -!- smarro(~sebastian@181.16.4.44) has joined #tryton
2015-10-12 22:07 -!- frispete(~frispete@p54A91E16.dip0.t-ipconnect.de) has joined #tryton
2015-10-12 22:14 -!- smarro(~sebastian@181.16.4.44) has joined #tryton
2015-10-12 22:47 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton
2015-10-12 22:52 <aroncero> Hi, is this pyson statement correct in a form view?
2015-10-12 22:52 <aroncero> states="{'invisible': Not(Bool(Eval('my_boolean_field')))}"
2015-10-12 22:55 <aroncero> I want a page to be visible or not according a field
2015-10-12 23:00 <cedk> aroncero: you can no more put Python in XML, you must put the json dumps or you can use ModelView.view_attributes
2015-10-12 23:01 <cedk> aroncero: also if your field is a boolean, you don't need Bool but just put the correct default value
2015-10-12 23:01 <cedk> aroncero: something like: ~Eval('my_boolean_field', False)
2015-10-12 23:02 <cedk> aroncero: http://doc.tryton.org/3.6/trytond/doc/ref/models/models.html?highlight=view_attribute#trytond.model.ModelView.view_attributes
2015-10-12 23:09 <aroncero> cedk: Ok, so no more pyson is states?
2015-10-12 23:09 <aroncero> cedk: http://tryton.readthedocs.org/projects/trytond/en/latest/topics/views/index.html#common-attributes-states
2015-10-12 23:12 <cedk> aroncero: you still can but in the dumps format, not the Python
2015-10-12 23:12 <cedk> aroncero: we removed all the eval of external data in Tryton for security
2015-10-12 23:14 <aroncero> cedk: ok, i am viewing an example in calendar_todo
2015-10-12 23:15 <cedk> aroncero: also it gives more flexbility to override this states by another module
2015-10-12 23:17 <aroncero> cedk: I understand it... I will try it. Thanks
2015-10-12 23:19 <aroncero> cedk: It works, :D
2015-10-12 23:30 -!- kstenger(~karla@r167-59-55-101.dialup.adsl.anteldata.net.uy) has joined #tryton

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