IRC logs of #tryton for Wednesday, 2013-11-06

chat.freenode.net #tryton log beginning Wed Nov 6 00:00:02 CET 2013
2013-11-06 00:31 <cedk> SpartanWarrior: both follow the standard
2013-11-06 00:31 <cedk> SpartanWarrior: there are some examples at https://code.google.com/p/tryton/wiki/RemoteCalls
2013-11-06 00:32 <cedk> SpartanWarrior: but a little bit out dated
2013-11-06 00:53 <SpartanWarrior> cedk: thank you, I'm also trying proteus, but there is no further docs on it as well :(
2013-11-06 00:55 <SpartanWarrior> cedk: my goal is to create a database (and their correspondent admin user) programmatically
2013-11-06 01:02 <cedk> SpartanWarrior: doc of proetus is in the README
2013-11-06 01:03 <cedk> SpartanWarrior: or https://pypi.python.org/pypi/proteus/
2013-11-06 09:31 <iamnoob> hi
2013-11-06 09:31 <iamnoob> is ther a Transaction().ipaddress ? i need to get the ip address of the user
2013-11-06 10:46 <giedrius> iamnoob: there is no such or similar property on Transaction()
2013-11-06 10:49 <iamnoob> giedrius: is there anyway i can get the ip address of the client ? i need it to be put on a certain variable,
2013-11-06 14:18 <kotek> Hi guys...
2013-11-06 14:21 <kotek> Is it possible to print from tryton on fiscal printer?
2013-11-06 14:32 <mariomop> kotek: have a look on this: https://bitbucket.org/thymbra/pyfiscalconnector
2013-11-06 14:33 <kotek> Isn't there anything more... English?
2013-11-06 14:35 <mariomop> I don't know
2013-11-06 14:37 <mariomop> https://bitbucket.org/thymbra/account_fiscalprinter_ar for Argentina, but it's an answer to your initial question
2013-11-06 14:39 <kotek> It's almost an answer.
2013-11-06 14:43 <kotek> Can I haz a question about account module?
2013-11-06 14:46 <kotek> I'll ask anyway... Is it possible to give ref# for every account move line?
2013-11-06 15:22 <pokoli> kotek: what you understand by ref#????
2013-11-06 15:38 <kotek> Reference number for document.
2013-11-06 15:38 <kotek> Not created by tryton.
2013-11-06 15:39 <kotek> Eg. invoice from supplier, accounting request, report number from fiscal cash register...
2013-11-06 15:40 <kotek> Have my msg been sent?
2013-11-06 15:40 <cedk> kotek: we use a reference link on the move
2013-11-06 15:41 <kotek> Reference link?
2013-11-06 15:41 <cedk> kotek: would you suggest that you are creating move that belongs to more than 1 docuement?
2013-11-06 15:41 <kotek> Yes...
2013-11-06 15:42 <cedk> kotek: reference is a kind of field that can link to an other record of different kind, a sort of many2one extended
2013-11-06 15:42 <cedk> kotek: how can you do that?
2013-11-06 15:44 <kotek> For example... Withdrawal of $50 from cash documented by Cash Out to buy some goodies documented by 2 or more invoices.
2013-11-06 15:45 <cedk> kotek: you have at least 2 moves
2013-11-06 15:45 <cedk> kotek: once for recording the expense and once for recording the withdraw
2013-11-06 15:46 <cedk> kotek: and both are linked by reconciliation
2013-11-06 15:46 <kotek> And what's about entering document number?
2013-11-06 15:49 <cedk> kotek: you have the description field for non-structured info
2013-11-06 15:58 <kotek> Ok, let's say good enough.
2013-11-06 15:58 <kotek> Next thingie... I've created translation for party module using OmegaT...
2013-11-06 15:58 <kotek> Saved .po file and putted it into directory with translations...
2013-11-06 15:59 <kotek> And it doesn't work. :(
2013-11-06 15:59 <cedk> kotek: you have to update the module
2013-11-06 16:00 <kotek> Forgive me my noobness, but how? ;)
2013-11-06 16:04 <kotek> Ok, made that.
2013-11-06 16:04 <kotek> And how to share those translations with community? :>
2013-11-06 16:04 <cedk> kotek: https://code.google.com/p/tryton/wiki/Update
2013-11-06 16:05 <cedk> kotek: https://code.google.com/p/tryton/wiki/HowtoTranslate
2013-11-06 16:08 <kotek> How to translate reports?
2013-11-06 16:22 <kotek> Or how do I print Journal report? (not General Journal but for example, Cash Journal)
2013-11-06 17:01 <breno> cedk: sent you mail regarding my SSL cert proposal for Tryton
2013-11-06 17:01 <breno> hmm, so why are the tryton and tryton-dev google groups moderated? to avoid spam?
2013-11-06 17:02 <nicoe> breno: indeed
2013-11-06 17:02 <breno> nicoe: oh, k
2013-11-06 17:04 <kotek> What's about SSL cert for Tryton?
2013-11-06 17:04 <kotek> I'm interested...
2013-11-06 17:06 <cedk> breno: I received, I will try to figure out how to make the request
2013-11-06 17:06 <cedk> breno: I'm far from being a SSL expert
2013-11-06 17:07 <breno> kotek: I was offering to purchase SSL certs for all the servers the Tryton foundation might need
2013-11-06 17:08 <kotek> CAcert seem to be a good idea. :>
2013-11-06 17:08 <breno> cedk: ok!
2013-11-06 17:09 <cedk> kotek: is Cacert included by default in browsers ? I doubt
2013-11-06 17:10 <kotek> http://wiki.cacert.org/InclusionStatus :P
2013-11-06 17:10 <kotek> Anyways what for SSL certificates for Tryton F.?
2013-11-06 17:11 <kotek> To keep bugtracker secure? :P
2013-11-06 17:11 <Pilou> breno: moderation allows to enforce some rules (http://www.mail-archive.com/tryton@googlegroups.com/msg03315.html)
2013-11-06 17:11 <breno> kotek: well, I'm able to provide 2 year GeoTrust SSL certs (got free credits in my Softlayer account), after those 2 years maybe Cacert's inclusion status gets better and it can be considered
2013-11-06 17:11 <breno> but right now it definitely is sub-par
2013-11-06 17:12 <kotek> I don't believe that CAcert root's will be included in any major browser at all.
2013-11-06 17:13 <kotek> But for some applications CAcert RA/CA is good enough.
2013-11-06 17:13 <cedk> kotek: signing cert will not change the security but just give better impression
2013-11-06 17:15 <kotek> I'd be upset for a moment, when I'll find a big error in tryton, but I'll be impressed by signed cert for bugtrecker, when I'll be filling bug report. :)
2013-11-06 17:20 <SpartanWarrior> hey guise \o/
2013-11-06 17:20 <kotek> o/
2013-11-06 17:21 <SpartanWarrior> i'm the tryton+django guy of the mailing list
2013-11-06 17:23 <SpartanWarrior> I've been looking to the code examples at the googlecode home, it was last updated in 2010 by cedk, the methods described there are still valid?
2013-11-06 17:24 <kotek> Have you tried them and didn't worked?
2013-11-06 17:25 <SpartanWarrior> not exactly, I was about to test them and asked before starting to experiment by myself :)
2013-11-06 17:25 <SpartanWarrior> I'm not afraid of science tho!
2013-11-06 17:26 <kotek> I guess I've tested it.
2013-11-06 17:27 <cedk> SpartanWarrior: it should not have evolved too much
2013-11-06 17:28 <SpartanWarrior> my goal is to create a tryton database upon user registration (in django) would that be possible using the tryton module or will I have to do it manually?
2013-11-06 17:29 <cedk> SpartanWarrior: you could use proteus for that
2013-11-06 17:29 <cedk> SpartanWarrior: if you just want to create a DB
2013-11-06 17:29 <kotek> SpartanWarrior, your work is more open-sourced or closed?
2013-11-06 17:30 <Pilou> SpartanWarrior: you ask about RPC yesterdays, you might find this interesting: http://www.mail-archive.com/tryton@googlegroups.com/msg04004.html
2013-11-06 17:31 <SpartanWarrior> well, my project would be a SaaS ERP, and I want to build it over tryton
2013-11-06 17:32 <SpartanWarrior> as I'm quite versed with django, I choose it to deal with the website/backend part
2013-11-06 17:32 <SpartanWarrior> anyways I'm looking to alternatives, the fasterst/efficient the better
2013-11-06 17:32 <cedk> SpartanWarrior: or you could also just: createdb … && trytond -i all -d …
2013-11-06 17:33 <SpartanWarrior> due to it's nature It wont certainly be opensourced in the near future, but I'm in favour of the love sharing :)
2013-11-06 17:34 <kotek> You can always see how guys from OpenERP did thier jobs. :P
2013-11-06 17:35 <kotek> Anyways cedk's idea is what I'd.
2013-11-06 17:35 <kotek> I'd do*
2013-11-06 17:36 <SpartanWarrior> Pilou: thanks!
2013-11-06 17:37 <SpartanWarrior> well, it's a good starting point, thanks !
2013-11-06 18:20 <pokoli> Hi, its possible to know which menu Action is calling a wizard?
2013-11-06 18:20 <pokoli> I have a wizard I want to change it's behaviour depending on the menu it's calling it
2013-11-06 18:20 <pokoli> i thought using context, but i can not see context option in wizards
2013-11-06 18:23 <nicoe> pokoli: how do you call your wizard? from a menuitem ? If so you can get the menu id as 'active_id' I think
2013-11-06 18:24 <pokoli> nicoe: yes from a menuitem. I will try it :)
2013-11-06 18:31 <pokoli> nicoe: thanks, i get the menu_id as active_id :)
2013-11-06 18:49 <nicoe> pokoli: you're welcome
2013-11-06 20:37 <SpartanWarrior> i cannot use the system.listMethods method of tryton's rpc interface without specifying a database in the url (via jsonrpclib) :( I just wanted to know what else can I do besides creating a database, any lights in this? console session: http://dpaste.com/1445460/
2013-11-06 20:39 <SpartanWarrior> p.s., trytond is using the correct config file, worked before with the pygtk client and the url with the database, or do i need to set anything else?
2013-11-06 20:50 <rmu> hi. i have a curious case where the client (version 3.0.1, installed with pip) sends 1000.0 as search limit. the server bombs out in assert isinstance(value, (int, long)) because the type of the limit-value is "float"
2013-11-06 20:51 <rmu> anybody has an idea how this can happen? only one client out of 3 or so on similar systems does this
2013-11-06 20:58 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton
2013-11-06 21:18 <Pilou> SpartanWarrior: with system.listMethods you must specify the db in url: s = jsonrpclib.Server('https://demo.tryton.org:8000/demo3.0')
2013-11-06 21:20 <SpartanWarrior> and how would I get otheer methods like the ones in the 'common' namespace? the listMethods when used with a db in the url seems to return method names to deal with models only :(
2013-11-06 21:20 <Pilou> call available without a database are listed here http://hg.tryton.org/trytond/file/d3d7bfc0e0d6/trytond/protocols/dispatcher.py#l30
2013-11-06 21:25 <SpartanWarrior> thanks, I'll look at that
2013-11-06 21:25 <Pilou> for example
2013-11-06 21:26 <Pilou> s = jsonrpclib.Server('https://demo.tryton.org:8000/demo3.0'); s.common.server.version(None, None);
2013-11-06 21:26 <Pilou> erf
2013-11-06 21:26 <Pilou> i mean: s = jsonrpclib.Server('https://demo.tryton.org:8000/'); s.common.server.version(None, None);
2013-11-06 22:56 <giedrius> cedk: have you seen the improvements made on upcoming OpenERP v8 stock management? Maybe i missed something, but never saw discusion about this in tryton community.
2013-11-06 22:57 <giedrius> cedk: for me, all these StockMove similarities with AccountMove feels to be based on Belgium accounting
2013-11-06 22:58 <cedk> giedrius: don't know where they are now but what I saw from the Opendays
2013-11-06 22:59 <giedrius> cedk: design of StockMove is pretty suitable for continental accounting with fixed or average price, which is very common in Belgium
2013-11-06 22:59 <cedk> giedrius: it is just a stock.period permanently updated to cache now
2013-11-06 23:00 <giedrius> cedk: they introduced a Quant
2013-11-06 23:00 <cedk> giedrius: yes Quant == stock.period + stock.lot
2013-11-06 23:00 <giedrius> cedk: which is basically representation of physical stock item
2013-11-06 23:01 <cedk> giedrius: for me, their design will be very expensif in resource
2013-11-06 23:04 <giedrius> cedk: i didn't dive too deep into it, but from first look it seems shouldn't be a problem there, because they can cheaply represent stock value of each location/product
2013-11-06 23:05 <cedk> giedrius: expect that for each stock.move they have to recompute all the quants involved
2013-11-06 23:05 <cedk> giedrius: so imaging a large shipment to assign
2013-11-06 23:06 <giedrius> cedk: if i understand correctly, they just put new quants for new stockmoves, so no need to recalculate
2013-11-06 23:07 <cedk> giedrius: I don't think so because they have to know where the product comes from
2013-11-06 23:08 <cedk> giedrius: but any way, it is a duplication of the information
2013-11-06 23:08 <cedk> giedrius: that's why I say it is like the stock.period
2013-11-06 23:08 <cedk> expect that in Tryton, you decide when to compute the cache and historize the past
2013-11-06 23:09 <giedrius> cedk: to take to the point here is few things i think is missing on tryton: for FIFO - there is no history which StockMove consumes others, for anglo saxon accounting - no links between invoices and StockMoves
2013-11-06 23:10 <cedk> giedrius: both are wrongs
2013-11-06 23:10 <cedk> giedrius: fifo: stock.move is the history
2013-11-06 23:11 <giedrius> cedk: also StockMove is based on unit_price and not cost_price. For FIFO+angloSaxon unit_price is not even needed
2013-11-06 23:11 <cedk> giedrius: and link exist via the sale/purchase
2013-11-06 23:12 <giedrius> cedk: (fifo) teorically yes, it is possible to find history, but it is very expensive
2013-11-06 23:13 <cedk> giedrius: I don't see where you try to go
2013-11-06 23:15 <giedrius> cedk: (angloSaxon) currently the link is only on purchase.line, but purchase.line can have 100 moves and 5 invoice lines. So each AccountMove of invoice line will be based on multiple (but not all) StockMoves of purchase.line. If you see how angloSaxon AccountMoveLines are calculated you may understand what i mean
2013-11-06 23:15 <cedk> giedrius: I know I write it
2013-11-06 23:16 <cedk> giedrius: any way, I don't see any problem
2013-11-06 23:18 <giedrius> cedk: i'm working on one module, started half year ago. It will allow to updated StockMove cost_prices based on posted invoices (for purchase)
2013-11-06 23:18 <giedrius> cedk: and it will updated all the production/sales/returns, i mean all the lifetime of Stock Item
2013-11-06 23:20 <giedrius> cedk: and it will be using fifo+angloSaxon accounting. So I can tell you that there is no possibility to have history just from StockMoves (or it would be very very expensive)
2013-11-06 23:21 <cedk> giedrius: I don't see the point
2013-11-06 23:23 <giedrius> cedk: sorry, i'm not very expressive in english. I'll think how to make it clearer and will send to mailing list

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