IRC logs of #tryton for Wednesday, 2015-01-07

chat.freenode.net #tryton log beginning Wed Jan 7 00:00:02 CET 2015
-!- udono(~udono@ip-178-202-33-125.hsi09.unitymediagroup.de) has joined #tryton00:21
-!- lfm(~meanmicio@76.Red-2-136-64.dynamicIP.rima-tde.net) has joined #tryton00:21
-!- flox(~florent@unaffiliated/flox) has joined #tryton00:21
-!- Hamsterbau(~Hamsterba@80.146.165.65) has joined #tryton00:21
-!- gremly(~gremly@190.85.36.58) has joined #tryton00:22
-!- leio(~leio@gentoo/developer/leio) has joined #tryton00:22
-!- TheCowboy`(~TheCowboy@ip68-98-183-236.dc.dc.cox.net) has joined #tryton01:01
-!- digitalsatori(~Thunderbi@58.246.20.210) has joined #tryton02:40
-!- ljrios(~ljrios@189.225.26.5) has joined #tryton02:47
-!- digitalsatori1(~Thunderbi@58.246.20.210) has joined #tryton02:56
-!- digitalsatori(~Thunderbi@58.246.20.210) has joined #tryton03:22
-!- vak0160(~kvirc@36.72.229.107) has joined #tryton05:07
-!- vak0160(~kvirc@36.72.229.107) has left #tryton05:08
-!- vak0160(~kvirc@36.72.229.107) has joined #tryton05:08
-!- vak0160(~kvirc@36.72.229.107) has left #tryton05:08
-!- yangoon1(~mathiasb@p549F271F.dip0.t-ipconnect.de) has joined #tryton06:01
-!- digitalsatori(~Thunderbi@180.158.128.143) has joined #tryton06:18
-!- digitalsatori1(~Thunderbi@180.158.128.143) has joined #tryton06:56
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton07:34
-!- mar(~marius@v100.nfq.lt) has joined #tryton07:44
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton07:56
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:06
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:27
-!- VaticanCameos(~pritishc@103.245.118.154) has joined #tryton08:31
VaticanCameosWhen a sale is put in any state other than draft, all the elements in the saleline form view become disabled. Is there a way to keep one of the elements (a new button) enabled regardless? I tried setting readonly to False for draft, quotation and confirmed states when updating cls._buttons in __setup__() but that does not seem to work.08:35
VaticanCameoss/form view/tree view08:35
VaticanCameosI understand that the saleline becomes entirely readonly because of this line here: https://github.com/tryton/sale/blob/develop/sale.py#L10109:03
VaticanCameosis there any way to override this for one field (button) that I newly introduced in another module?09:03
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton09:25
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton09:30
marVaticanCameos, you can change states['readonly'] in __setup__09:33
-!- nicoe(~nicoe@87.215.31.146) has joined #tryton09:34
marI just don't see any place that tryton does it, but09:34
mar        cls.from_location.states['readonly'] = Not(Equal(Eval('state'), 'draft'))09:34
maranyhow, I believe that if you want to change sale, you should go back to "draft", change it, go back again09:37
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:39
VaticanCameosmar: https://gist.github.com/PritishC/b6f473318b526f451c63 I was trying to do it like this. invisible works, but readonly does not.09:41
VaticanCameosObviously it gets overriden by the lines field definition in Sale model.09:42
VaticanCameosSo the readonly bit does not work.09:42
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton09:43
maryou may also have to add transition?09:44
marctrl+f cls._transitions09:45
maranyhow, if you're doing it to sale, beware of amount caching in > draft states09:45
marthat's probably the reason you can't change lines when not in draft09:45
VaticanCameosmar: slightly confused here. cls._transitions is already set in tryton/sale. why would I have to set them again?09:47
marI probably don't get your question09:47
maryou have a sale in state != draft, right?09:48
marand you want to modify lines?09:48
marreadonly on field cascades into all "subfields" so if you want to modify one field on line, you have to make lines not readonly09:49
VaticanCameosmar: Ah. so the lines definition has to be changed on my side. I can't change the cascading bit for the button I'm trying to introduce?09:50
marI don't think so, I haven't seen something like that09:50
VaticanCameosWhat I need to do is, for a sale in either draft, confirmed, quotation states, the button needs to be enabled.09:51
VaticanCameosBut as you said, the readonly bit cascades onto all subfields in line.09:51
marcan you elaborate what does that button do?09:51
VaticanCameosThe button calls a wizard which allows us to update the product in the saleline. Leaving all that aside, the first thing to do is keep the button enabled.09:52
VaticanCameosIf that doesn't work, I guess I'll have to think of another way.09:52
marI'm thinking maybe you can make an action instead of button09:52
marlike "Update Cost Price"09:53
VaticanCameosSure, but won't that be a bit non-obvious? The button makes it a lot more obvious..09:54
VaticanCameosI'm trying the action button anyway just to see how it pans out09:54
-!- prksh(~prksh@103.245.118.154) has joined #tryton10:22
-!- trytry(~william@203-114-166-118.dsl.sta.inspire.net.nz) has joined #tryton10:47
trytryHi, I'm trying to create analytical accounts.10:48
-!- prksh(~prksh@103.245.118.154) has joined #tryton10:48
trytryI need to specify the root account.  Searching for one returns a empty list.10:49
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton10:49
trytryCreating a account, prompts the same view, and therefore the same problem.10:50
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has left #tryton10:53
pokolitrytry: you have to select type root on the root account10:57
pokolitrytry: you can also create if from the empty search list10:58
pokolis/if/it/10:58
-!- lfm_(~meanmicio@157.Red-2-136-68.dynamicIP.rima-tde.net) has joined #tryton10:59
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton11:02
trytryAhhh, that was so helpful.  In hindsight it makes sense but not it was not clear at the time.  Thanks.11:06
-!- lfm(~meanmicio@205.Red-88-14-147.dynamicIP.rima-tde.net) has joined #tryton11:15
-!- digitalsatori(~Thunderbi@114.81.254.170) has joined #tryton11:19
-!- prksh(~prksh@103.245.118.154) has joined #tryton11:33
-!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton12:03
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton12:07
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton12:08
-!- smarro(~sebastian@190.105.93.196) has joined #tryton13:06
-!- lfm_(~meanmicio@102.Red-95-121-246.dynamicIP.rima-tde.net) has joined #tryton13:12
-!- meanmicio(~meanmicio@102.Red-95-121-246.dynamicIP.rima-tde.net) has joined #tryton13:30
-!- meanmicio(~meanmicio@fsf/member/meanmicio) has joined #tryton13:30
-!- digitalsatori(~Thunderbi@114.92.210.36) has joined #tryton13:54
-!- prksh(~prksh@103.245.118.154) has joined #tryton14:18
-!- kstenger(~karla@200.124.209.158) has joined #tryton14:36
-!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has joined #tryton15:11
-!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton15:21
-!- prksh(~prksh@101.0.57.57) has joined #tryton16:06
-!- mar(~marius@v100.nfq.lt) has joined #tryton16:36
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton16:46
-!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has joined #tryton16:56
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton17:04
-!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton17:21
-!- meanmicio(~meanmicio@fsf/member/meanmicio) has joined #tryton17:30
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton17:45
-!- meanmicio(~meanmicio@fsf/member/meanmicio) has joined #tryton17:46
-!- plantian(~ian@206-211-209-202.utilitytelephone.net) has joined #tryton18:09
-!- sunny_dealmeida(~quassel@210.89.32.141) has joined #tryton18:11
-!- prksh(~prksh@101.0.57.57) has joined #tryton18:23
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton18:28
-!- prksh(~prksh@101.0.57.57) has joined #tryton18:50
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton18:52
-!- prksh(~prksh@101.0.57.57) has joined #tryton19:32
-!- newzen(~newzen@201.242.159.40) has joined #tryton20:05
plantianIs there a client side setting for session timeout or is it all server side ?21:01
plantianWe just started using a tryton client on OS X yosemite and it times out after 6 minutes and crashes.  The server is set on a 4 hours, 14400 seconds, timeout.21:07
plantianIt is tryton 2.8.21:07
-!- jcros(~Thunderbi@251.171.125.78.rev.sfr.net) has joined #tryton21:18
-!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton22:09

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