IRC logs of #tryton for Monday, 2015-10-12 #tryton log beginning Mon Oct 12 00:00:01 CEST 2015
-!- cjbarnes18( has joined #tryton00:20
cjbarnes18hello,  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?00:23
cedkcjbarnes18: replacing is most of the time a bad idea, it is better to extend00:54
cedkcjbarnes18: so you just have to write a module that extend/override this method00:54
-!- lukio(~lukio@ has joined #tryton05:21
-!- yangoon( has joined #tryton07:02
-!- den2204(~mahon@ has joined #tryton07:23
-!- frispete_( has joined #tryton07:40
-!- rpit(~rpit@2a02:908:e670:3a80:8438:e0fb:78bc:a7c0) has joined #tryton07:43
-!- tbruyere( has joined #tryton08:18
-!- mrichez( has joined #tryton08:42
-!- Timitos(~kpreisler@ has joined #tryton08:46
-!- vcardon( has joined #tryton09:23
-!- Telesight( has joined #tryton10:10
-!- dj_xatra(d9a65382@gateway/web/freenode/ip. has joined #tryton10:29
-!- nicoe( has joined #tryton11:15
-!- dj_xatra(~dj_xatra@ has joined #tryton11:57
-!- kstenger( has joined #tryton15:16
-!- kstenger1( has joined #tryton15:38
-!- kstenger( has joined #tryton15:39
-!- smarro(~sebastian@ has joined #tryton17:19
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton17:25
-!- smarro(~sebastian@ has joined #tryton17:45
-!- sunny_dealmeida(~quassel@ has joined #tryton18:04
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton18:24
-!- vcardon( has left #tryton18:35
-!- bechamel( has joined #tryton18:52
-!- smarro(~sebastian@ has joined #tryton21:15
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton21:34
-!- smarro(~sebastian@ has joined #tryton21:49
-!- frispete( has joined #tryton22:07
-!- smarro(~sebastian@ has joined #tryton22:14
-!- aroncero(~aroncero@ has joined #tryton22:47
aronceroHi, is this pyson statement correct in a form view?22:52
aroncerostates="{'invisible': Not(Bool(Eval('my_boolean_field')))}"22:52
aronceroI want a page to be visible or not according a field22:55
cedkaroncero: you can no more put Python in XML, you must put the json dumps or you can use ModelView.view_attributes23:00
cedkaroncero: also if your field is a boolean, you don't need Bool but just put the correct default value23:01
cedkaroncero: something like: ~Eval('my_boolean_field', False)23:01
aroncerocedk: Ok, so no more pyson is states?23:09
cedkaroncero: you still can but in the dumps format, not the Python23:12
cedkaroncero: we removed all the eval of external data in Tryton for security23:12
aroncerocedk: ok, i am viewing an example in calendar_todo23:14
cedkaroncero: also it gives more flexbility to override this states by another module23:15
aroncerocedk: I understand it... I will try it. Thanks23:17
aroncerocedk: It works, :D23:19
-!- kstenger( has joined #tryton23:30

Generated by 2.11.0 by Marius Gedminas - find it at!