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

chat.freenode.net #tryton log beginning Wed Jan 7 00:00:02 CET 2015
2015-01-07 00:21 -!- udono(~udono@ip-178-202-33-125.hsi09.unitymediagroup.de) has joined #tryton
2015-01-07 00:21 -!- lfm(~meanmicio@76.Red-2-136-64.dynamicIP.rima-tde.net) has joined #tryton
2015-01-07 00:21 -!- flox(~florent@unaffiliated/flox) has joined #tryton
2015-01-07 00:21 -!- Hamsterbau(~Hamsterba@80.146.165.65) has joined #tryton
2015-01-07 00:22 -!- gremly(~gremly@190.85.36.58) has joined #tryton
2015-01-07 00:22 -!- leio(~leio@gentoo/developer/leio) has joined #tryton
2015-01-07 01:01 -!- TheCowboy`(~TheCowboy@ip68-98-183-236.dc.dc.cox.net) has joined #tryton
2015-01-07 02:40 -!- digitalsatori(~Thunderbi@58.246.20.210) has joined #tryton
2015-01-07 02:47 -!- ljrios(~ljrios@189.225.26.5) has joined #tryton
2015-01-07 02:56 -!- digitalsatori1(~Thunderbi@58.246.20.210) has joined #tryton
2015-01-07 03:22 -!- digitalsatori(~Thunderbi@58.246.20.210) has joined #tryton
2015-01-07 05:07 -!- vak0160(~kvirc@36.72.229.107) has joined #tryton
2015-01-07 05:08 -!- vak0160(~kvirc@36.72.229.107) has left #tryton
2015-01-07 05:08 -!- vak0160(~kvirc@36.72.229.107) has joined #tryton
2015-01-07 05:08 -!- vak0160(~kvirc@36.72.229.107) has left #tryton
2015-01-07 06:01 -!- yangoon1(~mathiasb@p549F271F.dip0.t-ipconnect.de) has joined #tryton
2015-01-07 06:18 -!- digitalsatori(~Thunderbi@180.158.128.143) has joined #tryton
2015-01-07 06:56 -!- digitalsatori1(~Thunderbi@180.158.128.143) has joined #tryton
2015-01-07 07:34 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-01-07 07:44 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2015-01-07 07:56 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-01-07 08:06 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-01-07 08:27 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-01-07 08:31 -!- VaticanCameos(~pritishc@103.245.118.154) has joined #tryton
2015-01-07 08:35 <VaticanCameos> When 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.
2015-01-07 08:35 <VaticanCameos> s/form view/tree view
2015-01-07 09:03 <VaticanCameos> I understand that the saleline becomes entirely readonly because of this line here: https://github.com/tryton/sale/blob/develop/sale.py#L101
2015-01-07 09:03 <VaticanCameos> is there any way to override this for one field (button) that I newly introduced in another module?
2015-01-07 09:25 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-01-07 09:30 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2015-01-07 09:33 <mar> VaticanCameos, you can change states['readonly'] in __setup__
2015-01-07 09:34 -!- nicoe(~nicoe@87.215.31.146) has joined #tryton
2015-01-07 09:34 <mar> I just don't see any place that tryton does it, but
2015-01-07 09:34 <mar> cls.from_location.states['readonly'] = Not(Equal(Eval('state'), 'draft'))
2015-01-07 09:37 <mar> anyhow, I believe that if you want to change sale, you should go back to "draft", change it, go back again
2015-01-07 09:39 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-01-07 09:41 <VaticanCameos> mar: https://gist.github.com/PritishC/b6f473318b526f451c63 I was trying to do it like this. invisible works, but readonly does not.
2015-01-07 09:42 <VaticanCameos> Obviously it gets overriden by the lines field definition in Sale model.
2015-01-07 09:42 <VaticanCameos> So the readonly bit does not work.
2015-01-07 09:43 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-01-07 09:44 <mar> you may also have to add transition?
2015-01-07 09:45 <mar> ctrl+f cls._transitions
2015-01-07 09:45 <mar> anyhow, if you're doing it to sale, beware of amount caching in > draft states
2015-01-07 09:45 <mar> that's probably the reason you can't change lines when not in draft
2015-01-07 09:47 <VaticanCameos> mar: slightly confused here. cls._transitions is already set in tryton/sale. why would I have to set them again?
2015-01-07 09:47 <mar> I probably don't get your question
2015-01-07 09:48 <mar> you have a sale in state != draft, right?
2015-01-07 09:48 <mar> and you want to modify lines?
2015-01-07 09:49 <mar> readonly on field cascades into all "subfields" so if you want to modify one field on line, you have to make lines not readonly
2015-01-07 09:50 <VaticanCameos> mar: 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?
2015-01-07 09:50 <mar> I don't think so, I haven't seen something like that
2015-01-07 09:51 <VaticanCameos> What I need to do is, for a sale in either draft, confirmed, quotation states, the button needs to be enabled.
2015-01-07 09:51 <VaticanCameos> But as you said, the readonly bit cascades onto all subfields in line.
2015-01-07 09:51 <mar> can you elaborate what does that button do?
2015-01-07 09:52 <VaticanCameos> The 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.
2015-01-07 09:52 <VaticanCameos> If that doesn't work, I guess I'll have to think of another way.
2015-01-07 09:52 <mar> I'm thinking maybe you can make an action instead of button
2015-01-07 09:53 <mar> like "Update Cost Price"
2015-01-07 09:54 <VaticanCameos> Sure, but won't that be a bit non-obvious? The button makes it a lot more obvious..
2015-01-07 09:54 <VaticanCameos> I'm trying the action button anyway just to see how it pans out
2015-01-07 10:22 -!- prksh(~prksh@103.245.118.154) has joined #tryton
2015-01-07 10:47 -!- trytry(~william@203-114-166-118.dsl.sta.inspire.net.nz) has joined #tryton
2015-01-07 10:48 <trytry> Hi, I'm trying to create analytical accounts.
2015-01-07 10:48 -!- prksh(~prksh@103.245.118.154) has joined #tryton
2015-01-07 10:49 <trytry> I need to specify the root account. Searching for one returns a empty list.
2015-01-07 10:49 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-01-07 10:50 <trytry> Creating a account, prompts the same view, and therefore the same problem.
2015-01-07 10:53 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has left #tryton
2015-01-07 10:57 <pokoli> trytry: you have to select type root on the root account
2015-01-07 10:58 <pokoli> trytry: you can also create if from the empty search list
2015-01-07 10:58 <pokoli> s/if/it/
2015-01-07 10:59 -!- lfm_(~meanmicio@157.Red-2-136-68.dynamicIP.rima-tde.net) has joined #tryton
2015-01-07 11:02 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-01-07 11:06 <trytry> Ahhh, that was so helpful. In hindsight it makes sense but not it was not clear at the time. Thanks.
2015-01-07 11:15 -!- lfm(~meanmicio@205.Red-88-14-147.dynamicIP.rima-tde.net) has joined #tryton
2015-01-07 11:19 -!- digitalsatori(~Thunderbi@114.81.254.170) has joined #tryton
2015-01-07 11:33 -!- prksh(~prksh@103.245.118.154) has joined #tryton
2015-01-07 12:03 -!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton
2015-01-07 12:07 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-01-07 12:08 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-01-07 13:06 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-01-07 13:12 -!- lfm_(~meanmicio@102.Red-95-121-246.dynamicIP.rima-tde.net) has joined #tryton
2015-01-07 13:30 -!- meanmicio(~meanmicio@102.Red-95-121-246.dynamicIP.rima-tde.net) has joined #tryton
2015-01-07 13:30 -!- meanmicio(~meanmicio@fsf/member/meanmicio) has joined #tryton
2015-01-07 13:54 -!- digitalsatori(~Thunderbi@114.92.210.36) has joined #tryton
2015-01-07 14:18 -!- prksh(~prksh@103.245.118.154) has joined #tryton
2015-01-07 14:36 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-01-07 15:11 -!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has joined #tryton
2015-01-07 15:21 -!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton
2015-01-07 16:06 -!- prksh(~prksh@101.0.57.57) has joined #tryton
2015-01-07 16:36 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2015-01-07 16:46 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-01-07 16:56 -!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has joined #tryton
2015-01-07 17:04 -!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton
2015-01-07 17:21 -!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton
2015-01-07 17:30 -!- meanmicio(~meanmicio@fsf/member/meanmicio) has joined #tryton
2015-01-07 17:45 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-01-07 17:46 -!- meanmicio(~meanmicio@fsf/member/meanmicio) has joined #tryton
2015-01-07 18:09 -!- plantian(~ian@206-211-209-202.utilitytelephone.net) has joined #tryton
2015-01-07 18:11 -!- sunny_dealmeida(~quassel@210.89.32.141) has joined #tryton
2015-01-07 18:23 -!- prksh(~prksh@101.0.57.57) has joined #tryton
2015-01-07 18:28 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-01-07 18:50 -!- prksh(~prksh@101.0.57.57) has joined #tryton
2015-01-07 18:52 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton
2015-01-07 19:32 -!- prksh(~prksh@101.0.57.57) has joined #tryton
2015-01-07 20:05 -!- newzen(~newzen@201.242.159.40) has joined #tryton
2015-01-07 21:01 <plantian> Is there a client side setting for session timeout or is it all server side ?
2015-01-07 21:07 <plantian> We 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.
2015-01-07 21:07 <plantian> It is tryton 2.8.
2015-01-07 21:18 -!- jcros(~Thunderbi@251.171.125.78.rev.sfr.net) has joined #tryton
2015-01-07 22:09 -!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton

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