IRC logs of #tryton for Wednesday, 2014-03-19

chat.freenode.net #tryton log beginning Wed Mar 19 00:00:02 CET 2014
2014-03-19 00:58 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2014-03-19 01:00 -!- digitalsatori(~Thunderbi@116.234.123.99) has joined #tryton
2014-03-19 02:39 -!- defyasdf(~defyasdf@ec2-54-234-60-70.compute-1.amazonaws.com) has joined #tryton
2014-03-19 05:54 -!- acu(~acu@50.244.13.221) has joined #tryton
2014-03-19 05:59 -!- rwm(~RWM@196.44.240.58) has joined #tryton
2014-03-19 05:59 <rwm> any example of a searcher function on many2one function field
2014-03-19 06:02 -!- yangoon(~mathiasb@p549F136D.dip0.t-ipconnect.de) has joined #tryton
2014-03-19 06:06 -!- acu(~acu@50.244.13.221) has joined #tryton
2014-03-19 06:11 -!- acu(~acu@50.244.13.221) has joined #tryton
2014-03-19 06:31 -!- littlebit(~Thunderbi@ulmg-5d844909.pool.mediaWays.net) has joined #tryton
2014-03-19 06:44 -!- frispete_(~frispete@p54A900BA.dip0.t-ipconnect.de) has joined #tryton
2014-03-19 06:48 -!- acu(~acu@50.244.13.221) has joined #tryton
2014-03-19 07:14 -!- acu(~acu@50.244.13.221) has joined #tryton
2014-03-19 08:29 -!- mfladischer(~fladische@sh144.medunigraz.at) has joined #tryton
2014-03-19 08:35 -!- pobsteta(~Thunderbi@ARennes-651-1-230-72.w90-32.abo.wanadoo.fr) has joined #tryton
2014-03-19 08:38 -!- rwm(~RWM@196.44.240.58) has joined #tryton
2014-03-19 08:46 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-03-19 08:48 -!- jeancavallo(~giovanni@bob75-9-88-181-2-176.fbx.proxad.net) has joined #tryton
2014-03-19 08:50 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2014-03-19 08:52 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2014-03-19 09:23 -!- eewa(eewa@2a00:dcc0:eda:3748:247:48:123:6) has joined #tryton
2014-03-19 09:30 <eewa> Hi All.
2014-03-19 09:47 -!- udono(~udono@ip-88-152-168-173.unitymediagroup.de) has joined #tryton
2014-03-19 09:59 -!- corro(~corro@46.22.23.85) has joined #tryton
2014-03-19 10:04 <eewa> I've had search around the Net to find out if Tryton supports Multiple Organisation Model.
2014-03-19 10:04 <eewa> Is this supported...?
2014-03-19 10:06 <cedk> eewa: what is that?
2014-03-19 10:07 <eewa> cedk: I've had search around the Net to find out if Tryton supports Multiple Organisation Model.
2014-03-19 10:10 <cedk> eewa: and what is "Multiple Organisation Model"?
2014-03-19 10:11 <eewa> cedk: Host more then a single Organisation on a single server installation.
2014-03-19 10:12 <cedk> eewa: there is the "multi-company" that can be used
2014-03-19 10:12 <cedk> eewa: but you should have a very high needs to use this because it is harder to configure
2014-03-19 10:13 <eewa> cedk: OK. Does this mean that we could host Tryton ERP as a Cloud service for our customers instead of single server installs for each customer?
2014-03-19 10:14 <eewa> cedk: Our requirement is to try and consolidate our services by moving away from single/VM server solutions to a Cloud based solution.
2014-03-19 10:15 <eewa> cedk: I just want to make 100% sure that the multi-company concept is in fact multiple organisation, and it will also support more then a single set of accounting books within that company...?
2014-03-19 10:15 <cedk> eewa: first, it is "Tryton" not "Tryton ERP" :-)
2014-03-19 10:16 <eewa> cedk: Oops... My apologies.. Sorry for that ;-)
2014-03-19 10:16 <cedk> eewa: I don't understand the cloud stuff? What does it have to do with multi-company?
2014-03-19 10:17 <eewa> cedk: Standard single server installation is owned by an Entity "Organisation". An Organisation can also have more then a single set of accounting books.
2014-03-19 10:18 <cedk> eewa: how can a company has many accounting?
2014-03-19 10:18 <eewa> cedk: When the holding organisation owns more then a single business.
2014-03-19 10:19 <cedk> eewa: so it is many companies
2014-03-19 10:19 <eewa> Each business has it's own set of accounts, business processes, etc...
2014-03-19 10:19 <eewa> cedk: Yes. It is many companies.
2014-03-19 10:19 <cedk> eewa: if each business/company is different then you should not do multi-company
2014-03-19 10:19 <cedk> multi-company is when they share the same way of working
2014-03-19 10:20 <eewa> cedk: This is exactly why I want to make sure we are not he same page regarding this topic.
2014-03-19 10:20 <eewa> cedk: What do you suggest?
2014-03-19 10:21 <cedk> eewa: I don't know your companies so I can not suggest
2014-03-19 10:21 <eewa> cedk: I understand.
2014-03-19 10:22 <eewa> cedk: The tie breaker here is Tryton vs. iDempiere.
2014-03-19 10:23 <cedk> eewa: the easy choosing way is: do you need different modules for each companies if yes then don't go with multi-company
2014-03-19 10:25 <eewa> cedk: This link will make you understand better the requirement. http://www.chuckboecking.com/blog/bid/223994/ADempiere-and-iDempiere-Users-Roles-and-Organizations
2014-03-19 10:26 <eewa> cedk: We currently have support couple Organisations "Entities" with mixture of single (physical on-site) as well as hosted VMs.
2014-03-19 10:27 <eewa> cedk: Each with a single instance installed for that specific Entity.
2014-03-19 10:27 <cedk> eewa: can not read video
2014-03-19 10:27 <eewa> cedk: hmm...
2014-03-19 10:27 <eewa> cedk: OK. I'll try and explain.
2014-03-19 10:28 <eewa> cedk: We currently have support couple Organisations "Entities" with mixture of single (physical on-site) as well as hosted VMs.
2014-03-19 10:28 <eewa> cedk: Each with a single instance installed for that specific Entity.
2014-03-19 10:28 <cedk> eewa: still don't understand why you are talking about VM
2014-03-19 10:28 <eewa> cedk: Virtual Machine hosted in our Virtual Cluster with Public IP.
2014-03-19 10:29 <cedk> eewa: I don't understand because you are mixin installation architecture with business consideration
2014-03-19 10:29 <eewa> cedk: Let me explain...
2014-03-19 10:29 <cedk> eewa: ok but please don't speak about VM
2014-03-19 10:30 <eewa> cedk: Will you please care to explain why not VM? From our point of view that is a single (although Virtually hosted) installed instance of Tryton.
2014-03-19 10:31 <cedk> eewa: what are the companies, how are they linked, what did they share, what did they not share…
2014-03-19 10:31 <cedk> eewa: I don't care about your installation infrastructure
2014-03-19 10:31 <eewa> cedk: OK. I understand better.
2014-03-19 10:32 <eewa> cedk: Companies are in NO means linked to each other. We support them.
2014-03-19 10:32 <eewa> cedk: Each Company/Organisation is treated separately from each other.
2014-03-19 10:32 <cedk> eewa: so don't use at all mutli-company
2014-03-19 10:32 <corro> eewa: sounds to me like you want seperate databases for each customer and multiple application servers for request handling, a typical cloud infrastructure AFAIK
2014-03-19 10:32 <cedk> eewa: one instance/database per company
2014-03-19 10:32 <cedk> corro: nothing to do with cloud
2014-03-19 10:33 <corro> cedk: nobody knows what it is anyway, so I may just as well make up my own definition ;)
2014-03-19 10:33 <cedk> eewa: you can use one instance of trytond to connect to many database but if you expect to have a lot of concurent user better to get one instance of trytond per database
2014-03-19 10:34 <eewa> cedk: Cloud Infrastructure/Architecture ... Yes.
2014-03-19 10:34 <cedk> corro: so better to never talk about
2014-03-19 10:34 <eewa> cedk: With iDempiere we don't need separate DB or instances..?
2014-03-19 10:34 <cedk> eewa: avoid any VM, database often perform badly on them
2014-03-19 10:34 <corro> cedk: true
2014-03-19 10:35 <cedk> eewa: when I speak about DB I mean the DB of "CREATE DATABASE" but they can be in the same postgresql instance
2014-03-19 10:35 <eewa> cedk: We will not use VM for DB. DB will be run on bare metal.
2014-03-19 10:36 <eewa> cedk: Ah... My apologies for defining DB as separate DB instance... ;-)
2014-03-19 10:38 <eewa> cedk: OK... So the bottom line is Tryton is Multi-Organisation Capable... With a tweak or 10 to make it happen..?
2014-03-19 10:38 <cedk> eewa: don't understand
2014-03-19 10:38 <eewa> cedk: Not by initial design... But by own creativity and a bit of coding.
2014-03-19 10:39 <cedk> eewa: nothing to code to run many trytond instance and create many database
2014-03-19 10:39 <eewa> cedk: You explained that with Trytond we can connect each Organisation to a separate DB.
2014-03-19 10:40 <eewa> cedk: Nothing to code..? What about " multiple application servers for request handling "
2014-03-19 10:40 <cedk> eewa: it is each organisation has his own DB
2014-03-19 10:41 <cedk> eewa: run on many ports
2014-03-19 10:41 <eewa> cedk: Hmm... This design could get very messy over time.
2014-03-19 10:41 <cedk> eewa: but you can put a reverse-proxy for dispatching
2014-03-19 10:41 <eewa> cedk: Not very scalable..
2014-03-19 10:42 <cedk> eewa: or you can run many trytond, use a reverse-proxy for load balancing and each user select the database to use
2014-03-19 10:42 <cedk> eewa: only constraint is torun the same code on each trytond instance
2014-03-19 10:44 <eewa> cedk: I understand please "each user select the database to use", but please explain "torun the same code on each trytond instance"
2014-03-19 10:45 <jeancavallo> eewa: All servers must run exactly the same version of the code
2014-03-19 10:45 <eewa> cedk: I think I understand reverse-proxy for load balancing but not sure if I understand the how...? Do you have any reference I could go and have a look at..?
2014-03-19 10:45 <cedk> eewa: no, I don't
2014-03-19 10:46 <eewa> jeancavallo: Thank you for clearing... Makes sense.
2014-03-19 10:46 <cedk> eewa: but any doc about reverse-proxy will do the job as trytond use HTTP(S)
2014-03-19 10:46 <eewa> cedk: Thanks... I'll search for that.
2014-03-19 10:47 <eewa> cedk: Idea is to have single landing/login page and from there redirect..?
2014-03-19 10:49 <cedk> eewa: use profiles on the client login
2014-03-19 10:50 <eewa> cedk: OK. I understand. Think I might have already found "How to / explanation"
2014-03-19 10:51 <eewa> cedk: Thank you very much for your time.
2014-03-19 10:51 <eewa> cedk: Appreciate it.
2014-03-19 10:51 <eewa> cedk: Oh... And your patients.. ;-)
2014-03-19 10:54 -!- eewa(eewa@2a00:dcc0:eda:3748:247:48:123:6) has left #tryton
2014-03-19 11:02 -!- strebitz(~sebastian@91.183.59.105) has joined #tryton
2014-03-19 11:08 <cedk> pokoli: if you want your client actions be in 3.2, you should finish today because I'm going to close the repositories
2014-03-19 11:09 <pokoli> cedk: :( sao is already frozen?
2014-03-19 11:12 <cedk> pokoli: no
2014-03-19 11:13 <cedk> pokoli: but need patches for all to be pushed
2014-03-19 11:14 <pokoli> cedk: I would like to have it for 3.2, but I'm not sure I can finish the sao patch today (will try)
2014-03-19 11:14 <pokoli> cedk: We can not make and exception for the sao patch?
2014-03-19 11:15 <cedk> pokoli: I don't like to make exceptions
2014-03-19 11:16 <cedk> the rule is exactly for this case
2014-03-19 11:16 <pokoli> cedk: I don't like too, when you will close the repos? at midnight?
2014-03-19 11:18 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton
2014-03-19 11:18 <cedk> pokoli: tonight
2014-03-19 11:40 -!- smarro(~sebastian@190.105.85.74) has joined #tryton
2014-03-19 11:46 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton
2014-03-19 11:57 -!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton
2014-03-19 12:11 -!- mariomop(~quassel@host92.190-136-195.telecom.net.ar) has joined #tryton
2014-03-19 12:14 -!- rwm(~RWM@197.234.245.15) has joined #tryton
2014-03-19 12:15 -!- rwm_(~RWM@197.234.245.15) has joined #tryton
2014-03-19 12:15 -!- rwm(~RWM@197.234.245.15) has joined #tryton
2014-03-19 12:16 <rwm> Need help on searcher function with many2one function field
2014-03-19 12:17 <rwm> debugger is stopping at this line on prompt: if is_leaf(domain):
2014-03-19 12:20 <cedk> rwm: just show your searcher code (no copy paste in chat)
2014-03-19 12:21 <rwm> so who do I show?
2014-03-19 12:21 <rwm> link?
2014-03-19 12:22 <cedk> rwm: use bin paster
2014-03-19 12:26 <rwm> is that a plugin?
2014-03-19 12:26 <rwm> sorry I learning
2014-03-19 12:27 <pokoli> rwm: pastebin.com, just paste your code there, submit it and put the URL in the chat
2014-03-19 12:27 <rwm> ok
2014-03-19 12:34 <rwm> http://pastebin.com/E8aLsSee
2014-03-19 12:38 <cedk> rwm: it can not work because the domain returned ask to search on team which is the Function field
2014-03-19 12:38 <rwm> ok
2014-03-19 12:39 <rwm> so I need to rethink the design \
2014-03-19 12:43 -!- nicoe(~nicoe@2001:6f8:3aa:0:b699:baff:fe56:2328) has joined #tryton
2014-03-19 12:43 <cedk> rwm: yep, the searcher for such design will be very difficult
2014-03-19 12:43 <cedk> rwm: because you are using the last transfer
2014-03-19 12:44 <cedk> rwm: also doing search in the getter instancemethod has poor performence
2014-03-19 12:44 <rwm> I was thinking making last_transfer a new field?
2014-03-19 12:45 <rwm> or better a many2one field directly to team
2014-03-19 12:46 <cedk> rwm: probably
2014-03-19 12:46 <rwm> thank you
2014-03-19 13:01 -!- rwm_(~RWM@197.234.245.15) has joined #tryton
2014-03-19 14:36 -!- jeancavallo(~giovanni@bob75-9-88-181-2-176.fbx.proxad.net) has joined #tryton
2014-03-19 16:15 -!- tehfink(~fink@199.195.61.18) has joined #tryton
2014-03-19 16:18 -!- strebitz(~sebastian@91.183.59.105) has left #tryton
2014-03-19 16:25 -!- tehfink(~fink@199.195.61.18) has joined #tryton
2014-03-19 16:26 -!- mfladischer(~fladische@sh144.medunigraz.at) has joined #tryton
2014-03-19 16:34 -!- tehfink(~fink@199.195.61.18) has joined #tryton
2014-03-19 16:40 -!- grasbauer(~jan@dslb-178-000-015-039.pools.arcor-ip.net) has joined #tryton
2014-03-19 16:40 <grasbauer> cedk: ping
2014-03-19 16:43 <cedk> grasbauer: pong
2014-03-19 16:45 <grasbauer> cedk: what is the actual statement abot installing trytond on windows? because i found an issue which pulled out the rest of my four hairs ...
2014-03-19 16:45 <cedk> grasbauer: not recommended but should work
2014-03-19 16:51 <grasbauer> cedk: there is a problem which seems hard to debug: if you running the server in cmd everything works nice - but if you install a service for running trytond it fails, because module pwd is not found. pwd is used in config.py for getting the default user for email_from
2014-03-19 16:52 <grasbauer> cedk: it was very hard to debug windows services - so I have no idea if it is a general problem
2014-03-19 16:56 <grasbauer> cedk: I was getting crazy because every try I give was working fine in cmd. win32serviceutil, bat-Files - everything works like a charme until you will start it as a service
2014-03-19 17:07 -!- azi(~azi@den-69-171-160-48.evdo.leapwireless.net) has joined #tryton
2014-03-19 17:12 <jeancavallo> grasbauer: Did you look here : http://stackoverflow.com/questions/32404/can-i-run-a-python-script-as-a-service-in-windows-how
2014-03-19 17:12 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-03-19 17:18 <cedk> grasbauer: could report a bug
2014-03-19 17:18 -!- pablovannini(~pablo@186.18.119.195) has joined #tryton
2014-03-19 17:19 <grasbauer> jeancavallo: yes - but the problem is that the service wont't start - without a message, because you are on windows (error = 1 or something like that)
2014-03-19 17:20 <grasbauer> cedk: I will do - but description is vage
2014-03-19 17:22 <cedk> grasbauer: probably email_from should be more robust for weird cases
2014-03-19 17:24 <grasbauer> cedk: I'll try to provide a patch ... but the problem is to debug it - I don't know how to debug services in windows (and I don't wanna learn it ;)
2014-03-19 17:34 -!- hiaselhans(~hiaselhan@212.186.35.254) has joined #tryton
2014-03-19 17:36 <jeancavallo> grasbauer: Found this one : http://stackoverflow.com/questions/5641182/what-is-the-working-directory-for-python-windows-services
2014-03-19 17:40 <grasbauer> jeancavallo: I'm still testing - but everything works fine except getting the user. Can't test at the moment more in deep, because running a big import at the windows box ....
2014-03-19 17:44 <cedk> grasbauer: I doubt you could skip learning windows if you manage a server on windows
2014-03-19 17:49 <hiaselhans> hi there,
2014-03-19 17:49 <grasbauer> cedk: My knowledge of the early 90th must be sufficient - Im to old for wasting space in a daily smaller brain to store information about a dying system
2014-03-19 17:50 <hiaselhans> how can i update field states without redefining the field?
2014-03-19 17:51 <hiaselhans> i imported a class (Sale) and set the old_sale.field.states = ...
2014-03-19 17:52 <hiaselhans> maybe i made the pyson wrong, but after commenting everything out, it is still the same, no change at all...
2014-03-19 17:55 <hiaselhans> readonly in every 'state'
2014-03-19 17:56 <grasbauer> hiaselhans: it could be set as property - so you must possibly set field.readonly = True/False
2014-03-19 18:01 <grasbauer> hiaselhans: and you need to do it in the __setup__ of the class
2014-03-19 18:10 <hiaselhans> hmm
2014-03-19 18:10 <hiaselhans> thanks for the hint
2014-03-19 18:10 <hiaselhans> but it didnt yet work out...
2014-03-19 18:11 <grasbauer> hiaselhans: you wrote that you imported ... what you mean with imported?
2014-03-19 18:12 <hiaselhans> thanks for your help:
2014-03-19 18:12 <hiaselhans> i did
2014-03-19 18:12 <hiaselhans> from trytond.modules.sale import Sale as Sale_old
2014-03-19 18:13 <hiaselhans> Sale_old.party.states = {readonly: Eval('state') != 'draft',}
2014-03-19 18:13 <grasbauer> hiaselhans: that's not the way to extend modules in tryton
2014-03-19 18:13 <hiaselhans> 'readonly'
2014-03-19 18:13 <hiaselhans> yep i see
2014-03-19 18:13 <hiaselhans> i did understand the use of __meta__
2014-03-19 18:14 <hiaselhans> but not how to apply on fields
2014-03-19 18:14 <grasbauer> http://hg.tryton.org/modules/account_invoice_line_standalone/file/3dfeb007dc5c/invoice.py
2014-03-19 18:16 <grasbauer> hiaselhans: this is a example of a extended model - in the __setup__ of invoice you could change the fields with cls.fieldname, because the extension ist loaded after the extended module
2014-03-19 18:20 <hiaselhans> thanks for that
2014-03-19 18:21 <hiaselhans> still strange.. :)
2014-03-19 18:22 <hiaselhans> now i do redundant readonly, and still no change...
2014-03-19 18:22 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-03-19 18:23 <hiaselhans> i set cls.party.readonly = False and cls.states={'readonly': In(Eval('state'), ['draft',...]}
2014-03-19 18:24 <hiaselhans> cls.party.states ...
2014-03-19 18:32 <grasbauer> hiaselhans: is the module loaded? see __all__ and register as models in __init__.py
2014-03-19 18:34 <hiaselhans> yep, i ran into this quite some times already :)
2014-03-19 18:42 <pokoli> cedk: ping
2014-03-19 18:45 -!- tehfink(~fink@199.195.61.18) has joined #tryton
2014-03-19 18:47 <hiaselhans> ok, thanks grasbauer, got it running.
2014-03-19 18:47 <hiaselhans> still having screwed the field once, updating the module wont help :)
2014-03-19 19:05 -!- tehfink(~fink@199.195.61.18) has joined #tryton
2014-03-19 19:07 -!- smarro(~sebastian@host100.190-136-175.telecom.net.ar) has joined #tryton
2014-03-19 19:21 <cedk> pokoli: ok, you can push the tryton and trytond patch if you promise to finish the sao patch
2014-03-19 19:25 -!- pobsteta(~Thunderbi@37.163.101.206) has joined #tryton
2014-03-19 19:37 <pokoli> cedk: like a jQuery promise?
2014-03-19 19:38 <pokoli> cedk: I'm trying to understand how to do it without another defferred
2014-03-19 19:44 <pokoli> cedk: basically I don't understand http://codereview.tryton.org/4371002/diff/60001/src/sao.js#newcode165 :(
2014-03-19 20:18 -!- tehfink(~fink@199.195.61.18) has joined #tryton
2014-03-19 20:25 -!- pobsteta(~Thunderbi@37.163.101.206) has joined #tryton
2014-03-19 21:03 -!- mariomop_(~quassel@host92.190-136-195.telecom.net.ar) has joined #tryton
2014-03-19 21:03 -!- mariomop_(~quassel@host92.190-136-195.telecom.net.ar) has joined #tryton
2014-03-19 21:06 -!- tehfink(~fink@199.195.61.18) has joined #tryton
2014-03-19 21:43 -!- acu(~acu@50.244.13.221) has joined #tryton
2014-03-19 21:45 -!- nicoe(~nicoe@91.179.1.15) has joined #tryton
2014-03-19 22:36 -!- tehfink(~fink@199.195.61.18) has joined #tryton
2014-03-19 23:11 <cedk> pokoli: so will you commit or not?
2014-03-19 23:19 -!- tehfink(~fink@199.195.61.18) has joined #tryton
2014-03-19 23:26 <pokoli> cedk: yes, i will commit now
2014-03-19 23:28 -!- azi(~azi@den-69-171-160-192.evdo.leapwireless.net) has joined #tryton

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