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

chat.freenode.net #tryton log beginning Thu Dec 15 00:00:01 CET 2016
2016-12-15 01:01 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-15 01:06 -!- mathesis(~mathesis@187.148.110.77) has joined #tryton
2016-12-15 01:17 -!- nando_(~nando@190.117.90.11) has joined #tryton
2016-12-15 01:26 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-15 01:50 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2016-12-15 02:10 -!- morfeokmg(~smuxi@189.146.75.88) has joined #tryton
2016-12-15 02:20 -!- kstenger1(~karla@r190-133-123-14.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-15 05:16 -!- thaneor(~ldlc6@179.26.55.201) has joined #tryton
2016-12-15 07:52 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-12-15 08:22 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-15 08:51 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-12-15 08:59 -!- udono(~udono@tmo-111-181.customers.d1-online.com) has joined #tryton
2016-12-15 09:29 -!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-12-15 09:56 -!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2016-12-15 10:20 -!- silwol_(~silwol@80.66.37.182) has joined #tryton
2016-12-15 10:26 -!- Doflamingo(d9a2c88d@gateway/web/cgi-irc/kiwiirc.com/ip.217.162.200.141) has joined #tryton
2016-12-15 10:29 <mrichez> hi, 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() ?
2016-12-15 10:41 <Doflamingo> pokoli: I experimented with the apt packages but the Version of trytond there is 3.8.3
2016-12-15 10:41 <Doflamingo> pokoli: so I did set up a clean pip install of trytond. You said yesterday to use trytond -c <config_file>
2016-12-15 10:41 <Doflamingo> pokoli: but where do I get this config file from? Is there a template like in the apt package?
2016-12-15 10:43 <Doflamingo> pokoli: 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-ubuntu
2016-12-15 10:51 <cedk> mrichez: I do not see issue about updating
2016-12-15 10:52 <cedk> Doflamingo: there is no template because you must just set the option you need
2016-12-15 10:52 <cedk> Doflamingo: you can even run without any config file
2016-12-15 10:52 <cedk> Doflamingo: see http://doc.tryton.org/3.8/trytond/doc/topics/configuration.html#topics-configuration
2016-12-15 11:07 <notizblock> cedk: to clarify: district should be synonymous to subdivision?
2016-12-15 11:12 <cedk> notizblock: yes it is the first level of subdivision in the country
2016-12-15 11:48 <Doflamingo> cedk: Thank you. This is what I have done so far: http://pastebin.com/7TJGYQNF
2016-12-15 11:48 <Doflamingo> cedk: should I now be able to reach the sao webinterface from a different PC on the LAN?
2016-12-15 11:49 <pokoli> Doflamingo: you sould modify the listen property: http://doc.tryton.org/3.8/trytond/doc/topics/configuration.html#listen
2016-12-15 11:49 <pokoli> Doflamingo: otherwise it only listen to localhost
2016-12-15 11:53 -!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton
2016-12-15 11:54 <yangoon> Doflamingo: JFTR: there are backports available at http://tryton.alioth.debian.org/
2016-12-15 11:55 <Doflamingo> pokoli: I got trytond 4.2.0 now. So I got the following config:
2016-12-15 11:55 <Doflamingo> pokoli: [database]
2016-12-15 11:55 <Doflamingo> pokoli: uri = sqlite:///home/erp/tryton_db.sqlite
2016-12-15 11:55 <Doflamingo> pokoli: [web]
2016-12-15 11:56 <Doflamingo> pokoli: root = /home/erp/sao
2016-12-15 11:56 <Doflamingo> pokoli: listen = localhost:8000
2016-12-15 11:57 <Doflamingo> yangoon: Interesting... i'll look into it
2016-12-15 12:20 <Doflamingo> pokoli: I actually can reach trytond now... had to use the actual ip instead of "localhost" the listen property
2016-12-15 12:20 <Doflamingo> pokoli: now it asks me in the browser for a database and a username
2016-12-15 12:20 <Doflamingo> pokoli: maybe the uri is not correctly specified? "sqlite:///home/erp/tryton_db.sqlite"
2016-12-15 12:20 <Doflamingo> pokoli: the initialisation went without errors and it asked for the admin password at the end.
2016-12-15 12:21 <pokoli> Doflamingo: you have to eneter tryton_db as database
2016-12-15 12:22 <Doflamingo> pokoli: IOError: Database "tryton_db.sqlite" doesn't exist!
2016-12-15 12:22 <pokoli> Doflamingo: IIR correctly, for sqlite you have to specify the database path as the directory where sqlite databases are saved
2016-12-15 12:23 <Doflamingo> pokoli: ok, i'll try
2016-12-15 12:23 <pokoli> Doflamingo: http://doc.tryton.org/4.2/trytond/doc/topics/configuration.html#path
2016-12-15 12:27 <Doflamingo> pokoli: you nailed it. Thank you very much :D
2016-12-15 12:37 -!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has joined #tryton
2016-12-15 12:43 <pokoli> Doflamingo: great. I as not sure because I use postgresql normally
2016-12-15 12:43 -!- pistache(~pistache@lebib.org) has joined #tryton
2016-12-15 12:47 -!- mamcode_(~mamcode@190-204-38-187.dyn.dsl.cantv.net) has joined #tryton
2016-12-15 12:54 -!- pistache_(~pistache@lebib.org) has joined #tryton
2016-12-15 13:04 -!- mariomop(~quassel@host11.186-108-112.telecom.net.ar) has joined #tryton
2016-12-15 13:14 <notizblock> cedk: could you please elaborate on the validation you have in mind for https://tryton-rietveld.appspot.com/29831002/?
2016-12-15 13:23 <cedk> notizblock: some code in ModelStorage.validate that will ensure that the template syntax will work
2016-12-15 13:25 <cedk> notizblock: so probably calling get_full_address with an temporary address should work
2016-12-15 13:32 <cedk> did someone already try to use a different CSS for sao like one from https://bootswatch.com/
2016-12-15 13:36 <JanGB> cedk: I tried - but needs some handcraft as well
2016-12-15 13:38 <cedk> JanGB: "as well"?
2016-12-15 13:41 <JanGB> cedk: 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 :)
2016-12-15 13:42 <JanGB> cedk: so my opinion isn't neutral
2016-12-15 13:46 <JanGB> cedk: are you working on sao right now?
2016-12-15 13:47 <JanGB> cedk: 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 gtk
2016-12-15 13:51 <notizblock> cedk: wouldn't AddressFormat.get_format() be the proper place to check for valid substitutions?
2016-12-15 13:59 <cedk> notizblock: why?
2016-12-15 14:00 <cedk> JanGB: I do not understand
2016-12-15 14:00 <JanGB> cedk: in sao you have to click the + to open the submenues
2016-12-15 14:01 <notizblock> cedk: because this is where the substitutions are loaded.
2016-12-15 14:01 -!- smarro(~sebastian@201-213-196-43.net.prima.net.ar) has joined #tryton
2016-12-15 14:01 <JanGB> cedk: in gtk the textentry will open the submenu, if there is no action
2016-12-15 14:04 <cedk> JanGB: I still do not understand what are you calling textentry and how is it related to menu
2016-12-15 14:04 <cedk> notizblock: loaded but not executed
2016-12-15 14:05 <JanGB> cedk: left menu > + Parties > This will open party tree
2016-12-15 14:06 <mrichez> need 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/CdU9hedy
2016-12-15 14:06 <JanGB> cedk: left menu> Party > Configuration (there is no action, only submenu) - clicking on Configuration doeas nothing, I have to click the + to open submenu
2016-12-15 14:10 <JanGB> cedk: you got it?
2016-12-15 14:10 <cedk> JanGB: OK
2016-12-15 14:12 <JanGB> cedk: didn't investigate many time how to solve it
2016-12-15 14:21 <perilla> cedk: about css themes from bootswatch... I find it interesting...
2016-12-15 14:46 <Doflamingo> I wrote an installation guide on tryton with sao for ubuntu on http://stackoverflow.com/questions/41144739/tryton-erp-installation-with-sao-on-ubuntu
2016-12-15 14:47 <Doflamingo> Thanks for your help guys
2016-12-15 14:55 <pokoli> cedk: we have a custom css
2016-12-15 14:56 <pokoli> cedk: I'm sorry but I'm not allowed to share it. What we did is desing a custom bootstrap theme
2016-12-15 14:57 <pokoli> cedk: indeed I have a "npm package" which installs our custom theme and have sao as dependency
2016-12-15 14:57 <pokoli> cedk: the only think is to have a custom index.html (which is a copy of the existing one) with the custom css included
2016-12-15 14:58 <mrichez> has somebody an example of adding a transition (in a specific order) to an existing wizard ?
2016-12-15 14:58 <pokoli> ACTION is reading mrichez messages :P
2016-12-15 15:00 <pokoli> mrichez: I'm not sure to understand what you need, but it's a matter of have a StateTransition which returns the "next translation"
2016-12-15 15:00 <pokoli> mrichez: you can for example save the "last run" state in the view, and update it on the transitions
2016-12-15 15:01 <mrichez> pokoli: i need to do my transition in first step
2016-12-15 15:01 <pokoli> mrichez: something similar is done on the PayLine wizard: http://hg.tryton.org/modules/account_payment/file/6f51ae4bd244/account.py#l175
2016-12-15 15:02 <pokoli> mrichez: you can modify the _start_state of the wizard to indicate a new state if desired
2016-12-15 15:03 <mrichez> pokoli: so this could be correct: http://pastebin.com/CdU9hedy over this wizard: http://pastebin.com/wk3gYgJm
2016-12-15 15:04 <mrichez> pokoli: it's working, but i'm wonderin if it's the best way
2016-12-15 15:05 <pokoli> Doflamingo: very happy that our comments were usefull for you :)
2016-12-15 15:05 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2016-12-15 15:06 <pokoli> mrichez: I will override the start_state in the __setup__ function
2016-12-15 15:09 <mrichez> pokoli: like this: http://pastebin.com/61RunFgJ
2016-12-15 15:10 <pokoli> mrichez: yes, but only define the init attribute can be defined as you had before
2016-12-15 15:11 <pokoli> mrichez: 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 only
2016-12-15 15:11 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2016-12-15 15:12 <mrichez> pokoli: init = StateTransition() will be outside __setup__ , it's a new transition
2016-12-15 15:20 <mrichez> pokoli: thanks. working.
2016-12-15 15:20 <pokoli> mrichez: you're welcome :)
2016-12-15 16:41 <notizblock> cedk: I'm not sure if this is the proper approach http://pastebin.com/67JSd2p5
2016-12-15 16:43 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2016-12-15 16:49 <pokoli> notizblock: i don't think so
2016-12-15 16:50 <pokoli> notizblock: you should do something similiar to http://hg.tryton.org/modules/product_price_list/file/309cc740f939/price_list.py#l118
2016-12-15 16:50 <notizblock> pokoli: me neither, but adding validate() to the Address class and checking the format there seems wrong
2016-12-15 16:50 <pokoli> notizblock: basically is create an address with all the valid fields set as '' and call the full_address
2016-12-15 16:51 <pokoli> notizblock: if the format contains an invalid subsitution it will raise and error
2016-12-15 16:52 <notizblock> pokoli: hmm, this seems weird
2016-12-15 17:00 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-12-15 17:00 -!- meigallodixital_(~meigallod@172.94.112.35) has joined #tryton
2016-12-15 17:17 -!- thaneor1(~ldlc6@r179-25-183-102.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-15 17:26 -!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton
2016-12-15 17:30 -!- meigallodixital_(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton
2016-12-15 18:17 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2016-12-15 18:31 -!- smarro(~sebastian@58-227-16-190.fibertel.com.ar) has joined #tryton
2016-12-15 19:04 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-12-15 19:50 -!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has left #tryton
2016-12-15 20:19 -!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has joined #tryton
2016-12-15 21:09 -!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has joined #tryton
2016-12-15 21:14 -!- JanGB(~jan@ipservice-092-208-143-049.092.208.pools.vodafone-ip.de) has left #tryton
2016-12-15 21:34 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-15 21:36 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2016-12-15 21:40 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-12-15 22:03 -!- mamcode_(~mamcode@190-204-38-187.dyn.dsl.cantv.net) has joined #tryton
2016-12-15 22:59 -!- niki_(~niki@0x3e2c8626.mobile.telia.dk) has joined #tryton
2016-12-15 23:19 -!- irclog(~irclog@moretus.b2ck.com) has joined #tryton

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