IRC logs of #tryton for Thursday, 2016-12-15

chat.freenode.net #tryton log beginning Thu Dec 15 00:00:01 CET 2016
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:01
-!- mathesis(~mathesis@187.148.110.77) has joined #tryton01:06
-!- nando_(~nando@190.117.90.11) has joined #tryton01:17
-!- smarro(~sebastian@181.16.7.104) has joined #tryton01:26
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton01:50
-!- morfeokmg(~smuxi@189.146.75.88) has joined #tryton02:10
-!- kstenger1(~karla@r190-133-123-14.dialup.adsl.anteldata.net.uy) has joined #tryton02:20
-!- thaneor(~ldlc6@179.26.55.201) has joined #tryton05:16
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:52
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:22
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:51
-!- udono(~udono@tmo-111-181.customers.d1-online.com) has joined #tryton08:59
-!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton09:29
-!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton09:56
-!- silwol_(~silwol@80.66.37.182) has joined #tryton10:20
-!- Doflamingo(d9a2c88d@gateway/web/cgi-irc/kiwiirc.com/ip.217.162.200.141) has joined #tryton10:26
mrichezhi, in module purchase_request there's a wizard to create purchases from purchase_requests: everything is done in transition_start. With my new module quotations, i need to get data from quotations (if existing) to create purchase. What is the best way to do this ? if i call super() purchases are already created and then i should update purchases ? or define a totally new transition_start without super() ?10:29
Doflamingopokoli: I experimented with the apt packages but the Version of trytond there is 3.8.310:41
Doflamingopokoli: so I did set up a clean pip install of trytond. You said yesterday to use trytond -c <config_file>10:41
Doflamingopokoli: but where do I get this config file from? Is there a template like in the apt package?10:41
Doflamingopokoli: btw... I will post the solution (how to install tryton with sao on ubuntu xenial) on my stackoverflow post, once I got it running. http://stackoverflow.com/questions/41144739/tryton-erp-installation-with-sao-on-ubuntu10:43
cedkmrichez: I do not see issue about updating10:51
cedkDoflamingo: there is no template because you must just set the option you need10:52
cedkDoflamingo: you can even run without any config file10:52
cedkDoflamingo: see http://doc.tryton.org/3.8/trytond/doc/topics/configuration.html#topics-configuration10:52
notizblockcedk: to clarify: district should be synonymous to subdivision?11:07
cedknotizblock: yes it is the first level of subdivision in the country11:12
Doflamingocedk: Thank you. This is what I have done so far: http://pastebin.com/7TJGYQNF11:48
Doflamingocedk: should I now be able to reach the sao webinterface from a different PC on the LAN?11:48
pokoliDoflamingo: you sould modify the listen property: http://doc.tryton.org/3.8/trytond/doc/topics/configuration.html#listen11:49
pokoliDoflamingo: otherwise it only listen to localhost11:49
-!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton11:53
yangoonDoflamingo: JFTR: there are backports available at http://tryton.alioth.debian.org/11:54
Doflamingopokoli: I got trytond 4.2.0 now. So I got the following config:11:55
Doflamingopokoli: [database]11:55
Doflamingopokoli: uri = sqlite:///home/erp/tryton_db.sqlite11:55
Doflamingopokoli: [web]11:55
Doflamingopokoli: root = /home/erp/sao11:56
Doflamingopokoli: listen = localhost:800011:56
Doflamingoyangoon: Interesting... i'll look into it11:57
Doflamingopokoli: I actually can reach trytond now... had to use the actual ip instead of "localhost" the listen property12:20
Doflamingopokoli: now it asks me in the browser for a database and a username12:20
Doflamingopokoli: maybe the uri is not correctly specified? "sqlite:///home/erp/tryton_db.sqlite"12:20
Doflamingopokoli: the initialisation went without errors and it asked for the admin password at the end.12:20
pokoliDoflamingo: you have to eneter tryton_db as database12:21
Doflamingopokoli: IOError: Database "tryton_db.sqlite" doesn't exist!12:22
pokoliDoflamingo: IIR correctly, for sqlite you have to specify the database path as the directory where sqlite databases are saved12:22
Doflamingopokoli: ok, i'll try12:23
pokoliDoflamingo: http://doc.tryton.org/4.2/trytond/doc/topics/configuration.html#path12:23
Doflamingopokoli: you nailed it. Thank you very much :D12:27
-!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has joined #tryton12:37
pokoliDoflamingo: great. I as not sure because I use postgresql normally12:43
-!- pistache(~pistache@lebib.org) has joined #tryton12:43
-!- mamcode_(~mamcode@190-204-38-187.dyn.dsl.cantv.net) has joined #tryton12:47
-!- pistache_(~pistache@lebib.org) has joined #tryton12:54
-!- mariomop(~quassel@host11.186-108-112.telecom.net.ar) has joined #tryton13:04
notizblockcedk: could you please elaborate on the validation you have in mind for https://tryton-rietveld.appspot.com/29831002/?13:14
cedknotizblock: some code in ModelStorage.validate that will ensure that the template syntax will work13:23
cedknotizblock: so probably calling get_full_address with an temporary address should work13:25
cedkdid someone already try to use a different CSS for sao like one from https://bootswatch.com/13:32
JanGBcedk: I tried - but needs some handcraft as well13:36
cedkJanGB: "as well"?13:38
JanGBcedk: I tried to fix something in the current setup (space between icons an text in menu f.e) and you know, I'm a declared enemy of bootstrap :)13:41
JanGBcedk: so my opinion isn't neutral13:42
JanGBcedk: are you working on sao right now?13:46
JanGBcedk: because I was thinking to open a issue but wanted to find a solution first: in the menu if there is no action on entry, only submenus - a click should open the submenu like in gtk13:47
notizblockcedk: wouldn't AddressFormat.get_format() be the proper place to check for valid substitutions?13:51
cedknotizblock: why?13:59
cedkJanGB: I do not understand14:00
JanGBcedk: in sao you have to click the + to open the submenues14:00
notizblockcedk: because this is where the substitutions are loaded.14:01
-!- smarro(~sebastian@201-213-196-43.net.prima.net.ar) has joined #tryton14:01
JanGBcedk: in gtk the textentry will open the submenu, if there is no action14:01
cedkJanGB: I still do not understand what are you calling textentry and how is it related to menu14:04
cedknotizblock: loaded but not executed14:04
JanGBcedk: left menu > + Parties > This will open party tree14:05
mrichezneed some advice: i had to add an "init" step to an existing wizard : http://pastebin.com/wk3gYgJm  Is it correct to do that ? : http://pastebin.com/CdU9hedy14:06
JanGBcedk: left menu> Party > Configuration (there is no action, only submenu) - clicking on Configuration doeas nothing, I have to click the + to open submenu14:06
JanGBcedk: you got it?14:10
cedkJanGB: OK14:10
JanGBcedk: didn't investigate many time how to solve it14:12
perillacedk: about css themes from bootswatch... I find it interesting...14:21
DoflamingoI wrote an installation guide on tryton with sao for ubuntu on http://stackoverflow.com/questions/41144739/tryton-erp-installation-with-sao-on-ubuntu14:46
DoflamingoThanks for your help guys14:47
pokolicedk: we have a custom css14:55
pokolicedk: I'm sorry but I'm not allowed to share it. What we did is desing a custom bootstrap theme14:56
pokolicedk: indeed I have a "npm package" which installs our custom theme and have sao as dependency14:57
pokolicedk: the only think is to have a custom index.html (which is a copy of the existing one) with the custom css included14:57
mrichezhas somebody an example of adding a transition (in a specific order) to an existing wizard ?14:58
pokoliACTION is reading mrichez messages :P14:58
pokolimrichez: I'm not sure to understand what you need, but it's a matter of have a StateTransition which returns the "next translation"15:00
pokolimrichez: you can for example save the "last run" state in the view, and update it on the transitions15:00
mrichezpokoli: i need to do my transition in first step15:01
pokolimrichez: something similar is done on the PayLine wizard: http://hg.tryton.org/modules/account_payment/file/6f51ae4bd244/account.py#l17515:01
pokolimrichez: you can modify the _start_state of the wizard to indicate a new state if desired15:02
mrichezpokoli: so this could be correct: http://pastebin.com/CdU9hedy  over this wizard: http://pastebin.com/wk3gYgJm15:03
mrichezpokoli: it's working, but i'm wonderin if it's the best way15:04
pokoliDoflamingo: very happy that our comments were usefull for you :)15:05
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton15:05
pokolimrichez: I will override the start_state in the __setup__ function15:06
mrichezpokoli: like this: http://pastebin.com/61RunFgJ15:09
pokolimrichez: yes, but only define the init attribute can be defined as you had before15:10
pokolimrichez: For me the point is to create a __setup__ whenever you define something that already exists, and that's the case of the start_state only15:11
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton15:11
mrichezpokoli: init =  StateTransition() will be outside __setup__ , it's a new transition15:12
mrichezpokoli: thanks. working.15:20
pokolimrichez: you're welcome :)15:20
notizblockcedk: I'm not sure if this is the proper approach http://pastebin.com/67JSd2p516:41
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton16:43
pokolinotizblock: i don't think so16:49
pokolinotizblock: you should do something similiar to http://hg.tryton.org/modules/product_price_list/file/309cc740f939/price_list.py#l11816:50
notizblockpokoli: me neither, but adding validate() to the Address class and checking the format there seems wrong16:50
pokolinotizblock: basically is create an address with all the valid fields set as '' and call the full_address16:50
pokolinotizblock: if the format contains an invalid subsitution it will raise and error16:51
notizblockpokoli: hmm, this seems weird16:52
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton17:00
-!- meigallodixital_(~meigallod@172.94.112.35) has joined #tryton17:00
-!- thaneor1(~ldlc6@r179-25-183-102.dialup.adsl.anteldata.net.uy) has joined #tryton17:17
-!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton17:26
-!- meigallodixital_(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton17:30
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton18:17
-!- smarro(~sebastian@58-227-16-190.fibertel.com.ar) has joined #tryton18:31
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton19:04
-!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has left #tryton19:50
-!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has joined #tryton20:19
-!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has joined #tryton21:09
-!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has left #tryton21:14
-!- smarro(~sebastian@181.16.7.104) has joined #tryton21:34
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton21:36
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton21:40
-!- mamcode_(~mamcode@190-204-38-187.dyn.dsl.cantv.net) has joined #tryton22:03
-!- niki_(~niki@0x3e2c8626.mobile.telia.dk) has joined #tryton22:59
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton23:19

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