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

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

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