IRC logs of #tryton for Wednesday, 2015-04-22

chat.freenode.net #tryton log beginning Wed Apr 22 00:00:01 CEST 2015
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:38
-!- Warsaw(c98a666a@gateway/web/freenode/ip.201.138.102.106) has joined #tryton01:07
-!- smarro(~sebastian@190.105.93.196) has joined #tryton01:08
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton01:39
-!- vairav(~vairav@c-24-130-116-187.hsd1.ca.comcast.net) has joined #tryton01:51
-!- digitalsatori1(~Thunderbi@116.234.88.44) has joined #tryton02:04
-!- MarkyC_(~MarkyC@135-23-252-4.cpe.pppoe.ca) has joined #tryton02:23
-!- vairav(~vairav@c-24-130-116-187.hsd1.ca.comcast.net) has joined #tryton02:55
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton03:51
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton04:05
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton04:35
-!- MarkyC_(~MarkyC@135-23-252-4.cpe.pppoe.ca) has joined #tryton04:48
-!- MarkyC(~MarkyC@135-23-252-4.cpe.pppoe.ca) has joined #tryton04:58
-!- MarkyC_(~MarkyC@135-23-252-4.cpe.pppoe.ca) has joined #tryton05:06
-!- jvblasco(~seba@62.43.196.37) has joined #tryton05:38
-!- zodman_(~zodman@187.155.18.247) has joined #tryton05:57
-!- MarkyC(~MarkyC@135-23-252-4.cpe.pppoe.ca) has joined #tryton06:30
-!- frispete_(~frispete@p54A908A1.dip0.t-ipconnect.de) has joined #tryton06:40
-!- mathsniper(7a64f958@gateway/web/freenode/ip.122.100.249.88) has joined #tryton06:49
mathsniperWhere can I find the changelog of trytond 3.6?06:49
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton06:50
-!- yangoon(~mathiasb@p549F1740.dip0.t-ipconnect.de) has joined #tryton07:01
-!- michael-kohlhaas(~mk@unaffiliated/michael-kohlhaas) has joined #tryton08:22
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:48
-!- deys(~deys@1.186.41.1) has joined #tryton08:50
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton08:54
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton08:56
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:02
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton09:14
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton09:17
-!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton09:39
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton09:46
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:06
-!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton10:35
-!- nicoe(~nicoe@2a02:a03f:3068:4b00:ee55:f9ff:fe7b:f7ac) has joined #tryton10:46
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton11:06
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton11:09
-!- digitalsatori1(~Thunderbi@116.234.88.44) has joined #tryton11:13
-!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton11:23
Jitesh_Nairi got this error -->UserError: ('UserError', (u'The value "32" of field "Tax" on "Product Template - Customer Tax" doesn\'t exist.', ''))12:03
Jitesh_Nairwhen i tried to append a tax on template12:03
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton13:04
-!- mariomop(~quassel@host46.190-138-115.telecom.net.ar) has joined #tryton13:04
-!- udono(~udono@port-92-195-117-231.dynamic.qsc.de) has joined #tryton13:32
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton13:38
-!- mathesis_(~ana@187.171.182.27) has joined #tryton13:39
-!- smarro(~sebastian@190.105.93.196) has joined #tryton13:44
Jitesh_Nairthis is the traceback of the error http://dpaste.com/18AAEH313:46
Jitesh_Nairif anyone wants to look how the error is13:46
-!- kstenger(~karla@200.124.209.158) has joined #tryton13:47
pokoliJitesh_Nair: it's the database complaining about a foreign key that doesn't exist13:47
pokoliJitesh_Nair: so it seem you deleted this tax, and then adding to the relation13:48
Jitesh_Nairpokoli, but then tax should have not existed??? but when i do tax._get_eval() iam getting proper output13:54
Jitesh_Nairi also did template.customer_taxes.append(Tax(id=32))13:55
Jitesh_Nairnow that one is fetching from  Tax module right??13:56
Jitesh_Nairso it should be existing i guess...and i havent tried any delete() function in my test script13:56
-!- digitalsatori(~Thunderbi@116.234.88.44) has joined #tryton14:15
pokoliJitesh_Nair: how do you get the 32 id? if it doesn't exist on the database it's normal that it fails14:28
Jitesh_Nairwhen i do Tax.find() i get a list of all the existing taxes14:35
Jitesh_Nairand then i get the tax that i need14:35
Jitesh_Nairpokoli, i guess tax.save() and then retrieving it from the db will prove that it exists... but then iam re running the scripts to confirm that14:36
Jitesh_Nairpokoli,  you were right buddy it doesnt exists14:37
Jitesh_Nairpokoli, thanks i will be working on it now14:38
Jitesh_Nairpokoli, but then iam doing tax.save() if it was to fail then y would it not show any error?....(greedy question)14:39
pokoliJitesh_Nair: yes, if it fails it will raise a error14:45
Jitesh_Nairpokoli, but tax.save() dint show any error14:46
Jitesh_Nairi added the tax type,rate,company and then saved it but there were no error in it14:47
Jitesh_Nairlater when i fetched tax from Mode('account.tax') there existed none14:47
pokoliJitesh_Nair: if you save it, you can use it directly as reference, don't need to fetch it14:48
Jitesh_Nairwel when i used it directly i got the error that i have posted previously ----->>>>>>  i got this error -->UserError: ('UserError', (u'The value "32" of field "Tax" on "Product Template - Customer Tax" doesn\'t exist.', ''))14:49
Jitesh_Nairpokoli, but what u have mentioned looks correct...now i have to find a way to save it into the db...14:52
Jitesh_Nairproperly*14:52
-!- yangoon(~mathiasb@p549F1740.dip0.t-ipconnect.de) has joined #tryton14:58
-!- prakashpandey(~prakashpa@103.245.118.154) has joined #tryton15:00
Jitesh_Nairpokoli, thanks for the help...i just found that one of the line in my script was overwriting my tax variable...thanks for pointing out at the part where the error exists15:01
prakashpandeyACTION pokoli: hi15:02
prakashpandeypokoli: there will be problem if I register a module two times in Pool?15:03
pokoliprakashpandey: mmmm what do you mean by register a module two times?15:03
pokoliprakashpandey: a module or a model?15:03
pokoliJitesh_Nair: you'r welcome15:03
prakashpandeypokoli: module15:04
prakashpandeypokoli: module.__register__15:04
prakashpandeypokoli: sorry module.register()15:04
pokoliprakashpandey: Pool.register() ??15:05
prakashpandeypokoli: yes15:05
pokoliprakashpandey: normally we register as much as three times per module15:05
pokoliprakashpandey: one per models, one per wizards, and one per reports15:05
prakashpandeypokoli: what if module x register Pool().register(*classes, module=y)?15:06
prakashpandeypokoli: check this https://github.com/openlabs/trytond-audit-trail/blob/develop/__init__.py#L1415:07
prakashpandeypokoli: I am doing something weird here and its working, I am scare if this will have side effects?15:09
pokoliprakashpandey: AFAIU you can register it on the audit_trail module15:09
pokoliprakashpandey: i can not imagine side effects15:09
prakashpandeypokoli: it was originally like that but didnt work15:10
pokoliprakashpandey: I imagine it's because that audit-trail is loaded before all the classes, because it will only depend on ir15:14
prakashpandeypokoli: yes, had the same thing. I looked through the code and couldnt find anything better to solve this hence I changed it15:16
pokoliprakashpandey: basically what you need is some mechanims to apply inheritance in all the classes in the pool15:19
pokoliprakashpandey: and i think we miss that (currently)15:19
prakashpandeypokoli: okay15:20
pokoliprakashpandey: but i think it's worth to start some discussion on the ML :)15:28
prakashpandeypokoli: so you mean we will get some way to inherit pool registeration! :) that will be nice15:31
prakashpandeypokoli: I will ask on mailing list then15:31
prakashpandeypokoli: thank you15:33
pokoliprakashpandey: what i have in my mind it to apply inheritance when all models are loaded on the pool15:33
-!- prakashpandey(~prakashpa@103.245.118.154) has joined #tryton15:49
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton16:41
-!- vairav(~vairav@c-24-130-116-187.hsd1.ca.comcast.net) has joined #tryton16:51
-!- prakashpandey(~prakashpa@103.245.118.154) has left #tryton16:51
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton17:10
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton17:23
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton17:41
-!- vairav(~vairav@hdqusers.modeln.com) has joined #tryton18:42
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton19:02
-!- vairav(~vairav@hdqusers.modeln.com) has joined #tryton19:02
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton19:30
-!- Warsaw(bbcc4ccd@gateway/web/freenode/ip.187.204.76.205) has joined #tryton19:55
WarsawHi19:55
WarsawDoes anyone know where to find the menuitem documentation for the XML files?19:56
WarsawI have crappy Internet, which may mean that I log off unexpectedly19:59
-!- smarro(~sebastian@190.51.111.75) has joined #tryton20:05
-!- vairav(~vairav@hdqusers.modeln.com) has joined #tryton20:27
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton20:44
-!- wawan(~gedegadu@36.83.154.40) has joined #tryton21:15
wawanhiiii21:15
-!- wawan(~gedegadu@36.83.154.40) has left #tryton21:16
-!- gremly(~gremly@190.85.36.58) has joined #tryton21:57
-!- apostatize(~visavis@gateway/vpn/privateinternetaccess/apostatize) has joined #tryton22:43
-!- smarro(~sebastian@190.105.93.196) has joined #tryton22:52
apostatizeFor fields in a view, is there a clear way to use a pyson statement for field visibility? tree_invisible only takes a boolean, but I wanted a way to hide certain fields when they are less relevant for a specific party. For example, we got a task report to toggle a field that's only relevant for female patient.23:41
-!- mathesis(~ana@187.171.243.63) has joined #tryton23:43
-!- mathesis(~ana@187.212.56.143) has joined #tryton23:51

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