IRC logs of #tryton for Tuesday, 2015-10-20

chat.freenode.net #tryton log beginning Tue Oct 20 00:00:02 CEST 2015
-!- vbastos(~textual@san1823193.lnk.telstra.net) has joined #tryton02:59
-!- smarro(~sebastian@181.168.163.136) has joined #tryton03:51
-!- smarro(~sebastian@181.168.163.136) has joined #tryton04:08
-!- yangoon1(~mathiasb@p549F0D52.dip0.t-ipconnect.de) has joined #tryton07:01
-!- kstenger(~karla@r167-59-1-157.dialup.adsl.anteldata.net.uy) has joined #tryton07:21
-!- frispete(~frispete@p54A91EDD.dip0.t-ipconnect.de) has joined #tryton07:40
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton08:11
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton08:26
-!- bechamel(~Adium@host-95-182-199-152.dynamic.voo.be) has joined #tryton08:34
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:53
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:20
-!- munron(~AndChat73@154.119.81.119) has joined #tryton09:34
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:36
-!- aroncero(~aroncero@86.63.19.153) has joined #tryton09:38
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton09:44
-!- rpit(~rpit@2a02:908:e670:3a80:78f4:bcf7:91e9:7563) has joined #tryton09:59
-!- albert_(~albert@133.Red-80-27-169.dynamicIP.rima-tde.net) has joined #tryton10:24
-!- frispete(~frispete@p54A91EDD.dip0.t-ipconnect.de) has joined #tryton10:42
-!- Timitos1(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton11:01
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton11:39
-!- nicoe(~nicoe@2a02:a03f:30ad:7d00:ee55:f9ff:fe7b:f7ac) has joined #tryton11:42
-!- PCatinean(~wiz@188.25.231.124) has joined #tryton11:58
-!- albert_(~albert@133.Red-80-27-169.dynamicIP.rima-tde.net) has joined #tryton12:11
-!- albert_(~albert@mail.electrans.es) has joined #tryton12:24
-!- mariomop(~quassel@host8.190-138-102.telecom.net.ar) has joined #tryton12:34
-!- prakashpandey(~prakashpa@1.39.33.153) has joined #tryton12:40
-!- mariomop(~quassel@host8.190-138-102.telecom.net.ar) has joined #tryton13:03
-!- rpit(~rpit@2a02:908:e670:3a80:ad00:ff77:e361:c33b) has joined #tryton13:04
-!- albert_(~albert@mail.electrans.es) has joined #tryton13:16
-!- prakashpandey(~prakashpa@180.188.243.78) has joined #tryton13:22
prakashpandey:cedk priority field in ir.ui.view is respected? I am trying to priortize a view but tryton doesnt do13:23
pokoliprakashpandey: yes, it's used on several base modules13:25
pokoliprakashpandey: what are you trying and what are you expecting?13:26
pokoliprakashpandey: for example in account invoice: http://hg.tryton.org/modules/account_invoice/file/b335d8b91bbb/invoice.xml#l30213:27
prakashpandeypokoli so I have a dependency of two modules which have conflicting view for a model if they are not applied correctly its broken!13:27
prakashpandeypokoli: both conflicted views are inherited ones13:28
pokoliprakashpandey: ok, so it's something with inheritance, but the modules doesn't depend on each other, do they?13:28
prakashpandeyno they dont13:29
prakashpandeypokoli: handling depending modules would have been easy13:29
prakashpandeypokoli: I suspect this is causing problem https://github.com/tryton/trytond/blob/3.4/trytond/model/modelview.py#L185-L18613:30
pokoliprakashpandey: maybe it's related to http://hg.tryton.org/trytond/rev/95349f15b88b but I'm not sure13:32
pokoliprakashpandey: you can add and extra_depends to fix inheritance, but what's your problem in view inheritance? are you removing some fields?13:33
prakashpandeypokoli: yes I am moving fields here and there so child view couldnt find the path13:34
prakashpandeypokoli: is it possible to remove existing view? or may be disable it?13:34
pokoliprakashpandey: AFAIK no, it's not possible to remove an existing view, but it should not be hard to add an active field on ir.ui.view13:37
pokoliprakashpandey: so why you don't add fields in the correct place instead of moving them?13:38
pokoliprakashpandey: an if you change to move/remove fields on view it's always good to do it in the last module which depends on all the other modules and you know all the available fields13:39
prakashpandeypokoli: actually I was cleaning the view by adding groups and notebooks, this other module was unaware of changes13:40
-!- aroncero_(~aroncero@86.63.19.153) has joined #tryton13:41
pokoliprakashpandey: so best solution is to clean the views on two modules, and inherit on the correct place. You can add an empty notebook on the base module and intherit on modules adding pages13:42
cedkprakashpandey: prority is not used to sort inheritance application, this is the module deps tree that is used13:43
pokoliprakashpandey: and there is https://bugs.tryton.org/issue3295 to remove empty notebook, but no still implemented :(13:43
prakashpandeypokoli: :D this goes to tryton client right?13:44
pokoliprakashpandey: yes, to the tryton clientS ;)13:44
pokoliprakashpandey: because all pages can be hidden by states and this is only available on client side13:45
prakashpandeypokoli: ok13:45
-!- aroncero__(~aroncero@86.63.19.153) has joined #tryton13:46
-!- smarro(~sebastian@181.168.163.136) has joined #tryton13:53
-!- albert_(~albert@mail.electrans.es) has joined #tryton14:28
-!- prakashpandey(~prakashpa@180.188.243.78) has left #tryton14:39
-!- smarro(~sebastian@190.108.228.120) has joined #tryton14:57
-!- bechamel(~Adium@host-95-182-199-152.dynamic.voo.be) has joined #tryton15:58
-!- aroncero_(~aroncero@86.63.19.153) has joined #tryton16:01
-!- albert_(~albert@142.Red-2-139-177.staticIP.rima-tde.net) has joined #tryton16:14
-!- smarro(~sebastian@190.108.228.120) has joined #tryton17:05
-!- albert_(~albert@142.Red-2-139-177.staticIP.rima-tde.net) has joined #tryton17:20
-!- aroncero__(~aroncero@86.63.19.153) has joined #tryton17:22
-!- munron(~AndChat73@197.221.234.40) has joined #tryton17:24
-!- aroncero(~aroncero@86.63.19.153) has joined #tryton17:28
-!- aroncero_(~aroncero@86.63.19.153) has joined #tryton17:40
-!- aroncero__(~aroncero@86.63.19.153) has joined #tryton17:46
-!- aroncero(~aroncero@86.63.19.153) has joined #tryton17:54
-!- tuxzw(~AndChat73@197.221.234.40) has joined #tryton17:55
-!- albert_(~albert@142.Red-2-139-177.staticIP.rima-tde.net) has joined #tryton17:59
-!- aroncero_(~aroncero@86.63.19.153) has joined #tryton18:06
-!- aroncero__(~aroncero@86.63.19.153) has joined #tryton18:40
-!- munron(~AndChat73@197.221.234.40) has joined #tryton19:18
-!- pral(b645ec05@gateway/web/freenode/ip.182.69.236.5) has joined #tryton19:28
pralHi all... I am trying to write a record (overriding write method) ... and getting this error - InternalError: cannot execute UPDATE in a read-only transaction19:29
cedkpral: this means you are inside a readonly transaction19:30
cedkpral: probably an on_change or a search19:30
pral@cedk: trying to write from execute method of Report class19:31
pral@cedk: write method of another class (inheriting ModelSQL)19:31
cedkpral: report are readonly, they just show data19:32
-!- sunny_dealmeida(~quassel@203.115.71.174) has joined #tryton19:34
pralhttp://pastebin.com/btVPXSui19:35
cedkpral: yes Report are called in a readonly transaction19:36
cedkpral: I think you should really rethink your need of a counter19:37
cedkpral: what's the goal of counting the number of call?19:37
pralcedk: getting how many times the report is printed19:37
cedkpral: that says why you need that?19:38
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton19:38
cedkpral: that doesn't say why you need that?19:38
pralclient's requirement for his module19:39
cedkpral: also it will not give you the number of time the report will be printed because the user could print it many times19:39
cedkpral: customer can often ask stupid things they don't understand19:39
pralcedk: I know that he can save the file and print it any number of times19:39
pralcedk: :)19:39
cedkpral: so you know you are doing something useless19:40
pralcedk: now I am getting more of this feeling19:40
cedkpral: you must ask to your customer why is he requesting this and probably a real problem will emerge and a good solution could be find19:41
pralcedk: will sure do ... just for the sake of knowledge, can we make a readonly transaction write values ?19:43
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton19:43
cedkpral: you can change the kind of transaction in __rpc__19:44
cedkpral: but doing so on report makes the report allowed to modify the database19:45
cedkACTION bbl19:46
pralcedk: Thanks for your guidance Sir... Look forward to interact more with community...19:52
-!- smarro(~sebastian@190.108.228.120) has joined #tryton19:58
-!- lukio(~lukio@181.47.148.245) has joined #tryton20:59
-!- sunny_dealmeida(~quassel@203.115.71.174) has joined #tryton20:59
-!- bvillasanti(~bvillasan@190.105.65.239) has joined #tryton21:12
-!- kstenger(~karla@r167-59-8-228.dialup.adsl.anteldata.net.uy) has joined #tryton21:13
cedksmarro: hi, did you see the email at foundation@22:17
cedksmarro: about the schedule22:17
smarrocedk: yes22:17
cedksmarro: I put on lanyrd that it is from 9am to 6pm but I'm not sure which agrement we have22:18
smarrocedk: 9am to 6pm it's ok22:18
cedksmarro: I put the meeting from 6pm to 8pm22:19
smarrocedk: yes, agree with the time22:19
cedksmarro: OK I'll answer22:21
smarrocedk: thks22:22
-!- pablovannini(~pablo@181.47.148.245) has joined #tryton22:46
-!- kstenger1(~karla@r167-59-20-46.dialup.adsl.anteldata.net.uy) has joined #tryton22:51
-!- lukio(~lukio@181.47.148.245) has left #tryton22:56

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!