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

chat.freenode.net #tryton log beginning Wed Apr 15 00:00:01 CEST 2015
-!- apostatize(~visavis@gateway/vpn/privateinternetaccess/apostatize) has joined #tryton00:23
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton00:31
-!- MarkyC(~MarkyC@135-23-252-4.cpe.pppoe.ca) has joined #tryton01:27
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton01:31
-!- newzen(~newzen@200.93.114.96) has joined #tryton01:53
-!- smarro(~sebastian@190.105.93.196) has joined #tryton03:04
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton03:24
-!- newzen(~newzen@200.93.94.10) has joined #tryton03:31
-!- digitalsatori(~Thunderbi@101.87.133.130) has joined #tryton05:11
-!- newzen(~newzen@200.93.94.10) has joined #tryton05:25
-!- digitalsatori(~Thunderbi@101.87.133.130) has joined #tryton06:08
-!- frispete(~frispete@p54A9082A.dip0.t-ipconnect.de) has joined #tryton06:40
-!- yangoon(~mathiasb@p549F18CD.dip0.t-ipconnect.de) has joined #tryton07:01
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton07:25
-!- michael-kohlhaas(~mk@unaffiliated/michael-kohlhaas) has joined #tryton08:06
-!- digitalsatori(~Thunderbi@101.87.133.130) has joined #tryton08:38
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton08:51
-!- digitalsatori(~Thunderbi@101.87.133.130) has joined #tryton09:10
-!- digitalsatori(~Thunderbi@101.87.133.130) has joined #tryton09:30
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton09:31
-!- digitalsatori(~Thunderbi@101.87.133.130) has joined #tryton09:46
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton10:06
-!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton10:13
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton10:25
-!- yangoon(~mathiasb@p549F0AC0.dip0.t-ipconnect.de) has joined #tryton10:26
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton10:33
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton10:33
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton10:33
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton10:34
-!- nicoe(~nicoe@91.179.2.235) has joined #tryton10:35
-!- deys(~deys@1.186.37.3) has joined #tryton10:35
-!- deys(~deys@1.186.37.3) has joined #tryton10:43
pokolihi, how can I syncronize ir model data? I see a button there but it's always readonly10:55
-!- digitalsatori(~Thunderbi@101.87.133.130) has joined #tryton11:09
-!- nicoe(~nicoe@2a02:a03f:3068:4b00:ee55:f9ff:fe7b:f7ac) has joined #tryton11:17
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton11:23
-!- digitalsatori1(~Thunderbi@101.87.133.130) has joined #tryton11:33
yangoonpokoli: same for me;)11:58
yangoondidn't have the time so far to look at permissions etc.11:58
yangoonpokoli: doesn't it work with the proteus script you posted on a recent issue?11:59
pokoliyangoon: can not see any speciall permissions12:00
pokoliyangoon: that was the issue https://bugs.tryton.org/issue465112:05
pokoliyangoon: and, i get a write access error while using proteus12:05
yangoonah, weird12:05
pokoliyangoon: no ir.access record means no access for anyone? Am I right?12:10
pokoliyangoon: there is an access rule that only allows read for ir.model.data12:12
yangoonpokoli: ususally it means access for everyone12:12
-!- newzen(~newzen@200.93.94.10) has joined #tryton12:12
pokoliyangoon: so you have to modify it to allow write in order to make the button available12:13
yangoonpokoli: probably that's the solution, yes12:13
yangoonpokoli: probably a missing access definition for the admin group12:14
pokoliyangoon: I will report is as bug :)12:15
yangoonpokoli: +112:16
-!- digitalsatori(~Thunderbi@101.87.133.130) has joined #tryton12:27
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton13:06
-!- smarro(~sebastian@190.105.93.196) has joined #tryton13:06
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton13:16
-!- deys(~deys@1.186.37.3) has joined #tryton13:30
-!- deys(~deys@1.186.37.3) has joined #tryton13:34
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton13:53
-!- lfm(~meanmicio@11.Red-79-157-220.dynamicIP.rima-tde.net) has joined #tryton14:04
-!- kstenger(~karla@200.124.209.158) has joined #tryton14:05
-!- digitalsatori(~Thunderbi@101.87.133.130) has joined #tryton14:12
-!- smarro(~sebastian@190.173.162.254) has joined #tryton14:48
-!- MarkyC(~MarkyC@158.106.83.87) has joined #tryton14:56
-!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has left #tryton15:08
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton15:11
-!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton15:13
-!- umang(67f5769a@gateway/web/freenode/ip.103.245.118.154) has joined #tryton15:25
umangHi! In 3.4, I am getting product quantity as 0 when I call product.quantity on product with the locations and stock_date_end in context. Am I missing something?15:27
pokoliumang: do you think this is not correct?16:01
pokoliumang: how can we reproduce it?16:02
umangpokoli: This is a module I wrote on 3.2 https://github.com/openlabs/trytond-sale-available-stock/blob/develop/sale.py It shows a user the available stock on sale line using a function field. That function field is also an on_change_with method. It returns correct quanttity when it is called as on_change_with method in sale line view, but gives 0 quantity when called as a getter16:10
umangI think it's because of something in the context that sale line view has and sale view doesn't16:11
umangAnd this used to work fine in 3.216:12
pokoliumang: if you open the product search list, there is the quantity shown there16:12
pokoliumang: could you check if the result is the same?16:12
umangNo there it shows the quantity16:13
pokoliumag: maybe you're missing stock_skip_warehouse16:14
pokoliumang: you can see the context used on this view on the product field definition of sale line (line 1027 of sale.py on 3.4 branch)16:14
umangpokoli: Already setting that in context16:16
pokoliumang: i see you're using stock_assign16:19
pokoliumang: have you check that there aren't assigned moves that make the diference?16:19
umangpokoli: Yes checked that and also tried removing stock_assign from context. Do you know what "_check_access" in context is for?16:21
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton16:23
pokoliumang: for checking access permisions, you should have this set to true16:26
umangpokoli: Thanks16:26
kstengerumang: your depends contain '_parent_sale.warehouse' but you use self.warehouse, could that be it?16:31
umangkstenger: I am using that because here self.warehouse is a function field and it uses parent sale's warehouse in it's getter16:33
kstengerumang: ok, I thought that  would be a depend of the other getter16:35
pokoliumang: why you don't set the context on the field, and directly call product.quantity?16:36
umangpokoli: You mean to say set context on the lines field on sale and then try ?16:40
pokoliumang: on the functional field of lines16:40
pokoliand avoid set_context inside field16:40
umangpokoli: I think I can't do that because I change the warehouse to fetch quantity depending on some fields and setting context in the getter helps me do that16:44
pokoliumang: right, context it's only used for relation fields, sorry16:48
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton16:55
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton17:07
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton17:13
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton17:29
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton17:32
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton17:37
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton17:46
-!- kstenger(~karla@200.124.209.158) has joined #tryton18:00
-!- smarro(~sebastian@190.105.93.196) has joined #tryton18:09
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton18:15
-!- nineinchnick(~jwas@109.231.18.226) has joined #tryton18:33
-!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton18:35
-!- MarkyC_(~MarkyC@pat-199-212-66-244.airyork.yorku.ca) has joined #tryton18:45
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton18:47
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton19:04
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton19:09
-!- sunny_dealmeida(~quassel@203.115.76.15) has joined #tryton20:01
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton20:17
-!- lukio(~lukio@181.47.181.184) has joined #tryton20:22
-!- pablovannini(~pablo@181.47.181.184) has joined #tryton20:22
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton20:26
-!- smarro(~sebastian@186.57.175.129) has joined #tryton20:36
-!- yangoon(~mathiasb@p549F0489.dip0.t-ipconnect.de) has joined #tryton20:49
-!- mariomop(~quassel@host105.190-138-113.telecom.net.ar) has joined #tryton21:10
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton21:14
-!- yangoon(~mathiasb@p549F0FB7.dip0.t-ipconnect.de) has joined #tryton21:39
-!- frispete(~frispete@p54A9082A.dip0.t-ipconnect.de) has joined #tryton22:02
-!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton22:05
-!- frispete(~frispete@p54A9082A.dip0.t-ipconnect.de) has joined #tryton22:13
-!- frispete(~frispete@p54A9082A.dip0.t-ipconnect.de) has joined #tryton22:20
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton22:28
-!- frispete(~frispete@p54A9082A.dip0.t-ipconnect.de) has joined #tryton22:30
-!- smarro(~sebastian@190.105.93.196) has joined #tryton22:46
-!- lukio(~lukio@181.47.181.184) has left #tryton23:23

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