IRC logs of #tryton for Thursday, 2013-10-31

chat.freenode.net #tryton log beginning Thu Oct 31 00:00:02 CET 2013
2013-10-31 00:25 <SpartanWarrior> hiya guise, someone with experience on nereid-project?
2013-10-31 00:25 <SpartanWarrior> I'm having some trouble with the install :(
2013-10-31 08:21 <WUD> Hi, if I have to send an attachment with an email using trytond.tools get_smtp_server
2013-10-31 09:18 <giedrius> sharoonthomas: https://github.com/tryton mirror is out of date. No 3.0 branch and no new modules
2013-10-31 09:18 <sharoonthomas> giedrius: ah! i need to update the script to setup the 3.0 branch
2013-10-31 09:18 <sharoonthomas> giedrius: which are the new modules ?
2013-10-31 09:19 <giedrius> sharoonthomas: dunning, bank, timesheet_cost, etc
2013-10-31 09:20 <sharoonthomas> giedrius: thanks
2013-10-31 09:20 <sharoonthomas> giedrius: will set things up probably EOD
2013-10-31 09:20 <giedrius> sharoonthomas: upstream trytond cannot be run without these modules
2013-10-31 09:21 <giedrius> sharoonthomas: can i help you somehow? Wouldn't it be good idea to write a script which does all these things automatically when new release or module is available?
2013-10-31 09:23 <sharoonthomas> giedrius: yes of course, let me find the repo of the code which does the mirroring for you
2013-10-31 11:05 <sharoonthomas> giedrius: https://github.com/organizations/tryton
2013-10-31 11:05 <sharoonthomas> giedrius: the new 3.0 branches are up and also the new modules
2013-10-31 11:05 <sharoonthomas> giedrius: let me know if there is anything missing
2013-10-31 11:38 <katr> Hi! I noticed that Nereid adds an email and phone field on the address model.
2013-10-31 11:39 <katr> Is this really necessary? Can it not just re-use the contact mechanism model?
2013-10-31 11:55 <cedk> katr: yeps, for me it is a mistake
2013-10-31 11:58 <katr> katr: O.K., maybe something for the upcoming code sprint :).
2013-10-31 12:34 <sharoonthomas> katr: thats something we want to fix, but just wondering how to do it without breaking backward compatibility
2013-10-31 12:40 <sharoonthomas> katr: i have created a new issue to do the change: https://github.com/openlabs/nereid/issues/104 feel free to send a pr to the develop branch
2013-10-31 13:13 <katr> sharoonthomas: I already follow Nereid on github. Thanks for the great project!
2013-10-31 13:13 <katr> sharoonthomas: I hope it will be merged soon.
2013-10-31 13:14 <katr> sharoonthomas: ...into Tryton core.
2013-10-31 13:19 <sharoonthomas> katr: i hope so too, are you coming to barcelona ?
2013-10-31 14:47 <mariomop> hi, I need to fill a libreoffice variable with a tryton variable, I mean in libreoffice you can set variables, but I do not know how can I give the value I see in the tryton placeholder, for example, <line.accumulated_amount>
2013-10-31 14:49 <mariomop> I was told that in calc you can use something like: tryton://line.accumulated_amount, but that's not working for me in writer
2013-10-31 15:46 <pokoli> mariomop: you can have a look at account_invoice report to know it
2013-10-31 15:47 <pokoli> mariomop: http://hg.tryton.org/modules/account_invoice/file/58e1d57dd241/invoice.odt
2013-10-31 15:47 <mariomop> ok! I'll look at it
2013-10-31 16:02 <mariomop> pokoli: don't know if I got it... do you mean the "<choose test=...>" selector?
2013-10-31 16:03 <mariomop> pokoli: i'm trying to set an accumulated value to show it in the footer, a subtotal or partial total
2013-10-31 16:04 <pokoli> mariomop: I don't know how to do this
2013-10-31 16:05 <mariomop> pokoli: ok, thanks anyway
2013-10-31 16:05 <pokoli> mariomop: a normal field would be <invoice.number and ' ' + invoice.number or ''>
2013-10-31 16:05 <pokoli> mariomop: but i don't know how to accumulate in relatorio
2013-10-31 16:06 <mariomop> ok, my problem is not the accumulation, but how to set a "libreoffice" variable, with a value taken from a tryton variable, like <line.accumulated_amount>
2013-10-31 16:07 -!- katr(~m@188-22-15-69.adsl.highway.telekom.at) has left #tryton
2013-10-31 16:17 <smarro> mariomop: i think you can add your variable to the report context in the parser method, and then you can use it like a field
2013-10-31 16:19 <mariomop> smarro: yes, I was thinking about doing that, I'll give it a try
2013-10-31 19:50 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton
2013-10-31 20:02 -!- pablovannini(~pablo@181.47.181.28) has left #tryton
2013-10-31 22:01 <motaro> Question: I have in a form, various fields that point to an 'party.address', now I thought to save some time by creating a single One2One class where I point every field to use it. In my mind every field would instantiate a new object for it, but it seems that all the fields are pointing to the same instantiation.
2013-10-31 22:02 <motaro> The first thought to solve it is to make a new class for every field, but that seems silly to me.
2013-10-31 22:04 <motaro> The other thought is to change the fields on the class, that instead of being Many2One, make them Many2Many, but then I would have to make two separate mapping classes.
2013-10-31 22:05 <motaro> This whole logic of the relations are still fuzzy on my head.
2013-10-31 22:22 <cedk> motaro: a general advise is that you probably don't need one2one
2013-10-31 22:52 <motaro> cedk: How could I make a field, where you select an object that exists?
2013-10-31 22:53 <motaro> In this case are party.address
2013-10-31 22:55 <cedk> motaro: yes a Many2One

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