chat.freenode.net #tryton log beginning Sun Apr 3 00:00:01 CEST 2016 | ||
2016-04-03 00:04 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2016-04-03 01:31 -!- smarro(~sebastian@190.14.157.18) has joined #tryton | ||
2016-04-03 03:07 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2016-04-03 03:23 -!- smarro(~sebastian@181.16.7.104) has joined #tryton | ||
2016-04-03 03:29 -!- smarro(~sebastian@190.14.157.18) has joined #tryton | ||
2016-04-03 04:18 <shrox> kstenger: Hi! I need help with issue5386. From what I understand, I am to use the digits argument in unit_price (http://pastebin.ubuntu.com/15595217/) from invoice.py in the report to access price_digits. But I cannot figure how I do that. | ||
2016-04-03 04:18 <shrox> kstenger: I am unable to link you to the specific line in codebase, there seems to be a problem. | ||
2016-04-03 04:19 <kstenger> shrox: a more generic link available? | ||
2016-04-03 04:19 <shrox> kstenger: a more generic link for? | ||
2016-04-03 04:20 <kstenger> you mean th ereview on the bugtracker? | ||
2016-04-03 04:21 <kstenger> shrox: I mean I don't understand what line of the codebase you were refering to | ||
2016-04-03 04:21 <shrox> kstenger: No, I mean I am unable to access the files on the mercurial repo (hg.tryton.org). So cannot link you to it. | ||
2016-04-03 04:22 <shrox> kstenger: It's line 1417 in invoice.py in the account_invoice module | ||
2016-04-03 04:25 <kstenger> shrox: would you explain me more thoroughly what you try to achieve and you cannot? | ||
2016-04-03 04:28 <shrox> kstenger: Okay so one of the arguments in format_number is 'digits'. The digits argument in unit_price is price_digits. So I have to make use of this price_digits in format_number (that will then format it accordingly in the report). | ||
2016-04-03 04:29 <shrox> kstenger: cedk seemed to think I was missing something obvious, but I've spent some time now on this and don't know what it could be | ||
2016-04-03 04:31 <kstenger> shrox: ok, so what did you try so far? | ||
2016-04-03 04:33 <shrox> kstenger: I was having a look at the fields.Numeric function in order to be able to refer to the digits argument | ||
2016-04-03 04:33 <shrox> kstenger: another point to note is that price_digits is a list of two integers. I will only need one. | ||
2016-04-03 04:38 <shrox> kstenger: Am I confusing you? | ||
2016-04-03 04:39 <kstenger> I still don't follow what you tried, as I'm not familiar with this issue | ||
2016-04-03 04:40 <shrox> kstenger: What do you think I should try? | ||
2016-04-03 04:44 <kstenger> shrox: right now I don't know but I can help you find out :) what info do you have about what the issue implies? | ||
2016-04-03 04:45 -!- smarro(~sebastian@190.14.157.18) has joined #tryton | ||
2016-04-03 04:47 <shrox> kstenger: Reports made with format_currency are by default limited to two decimal points. So if I have 20.012, it will show up in the report as 20.01. We need to allow for more digits, which we can do by replacing format_currency with format_number which allows us to specify the number of digits. | ||
2016-04-03 04:47 <shrox> kstenger: Now, the number of digits for unit_price (what we are trying to change) is specified in invoice.py as price_digits | ||
2016-04-03 04:48 <shrox> kstenger: price_digits is a list of two numbers. price_digits[0] is the total number of digits and price_digits[1] is the number of digits after the decimal point | ||
2016-04-03 04:48 <shrox> kstenger: I need to use price_digits[1] for the digits argument in format_number | ||
2016-04-03 04:48 <shrox> kstenger: But I don't know how | ||
2016-04-03 04:50 <kstenger> oh I see | ||
2016-04-03 04:50 <kstenger> let me check a little bit the code | ||
2016-04-03 04:51 <shrox> kstenger: I think I need to use price_digits[1]. I might be wrong. | ||
2016-04-03 04:51 <kstenger> yes, that seems to be correct | ||
2016-04-03 04:52 <shrox> kstenger: Have a look at the log where cedk was trying to give me a better idea - http://www.tryton.org/~irclog/2016-03-28.log.html | ||
2016-04-03 04:57 <kstenger> shrox: so you were trying to access 'price_digits' as a member of the invoice line ? | ||
2016-04-03 04:58 <shrox> kstenger: Yes but that was earlier before I looked into the code in detail. | ||
2016-04-03 04:58 <kstenger> ok, so what are you trying to do now to get to this value? | ||
2016-04-03 04:59 <shrox> kstenger: I tried to modify invoice.py so that it would then be member of the invoice line. But I don't think I need to do that. | ||
2016-04-03 05:00 <kstenger> no, more likely you need to access this value, in the right way ... so let's see... | ||
2016-04-03 05:02 <kstenger> the invoice line has a member unit_price, when defined it is given the digits parameter ... so the digits will be stored in the unit_price ... (let me check one more thing) | ||
2016-04-03 05:03 <kstenger> (and keep in mind I'm "thinking aloud") | ||
2016-04-03 05:03 <shrox> kstenger: haha, continue to do so, please | ||
2016-04-03 05:05 <kstenger> you said you were looking at fields.Numeric, did you by chance find where the 'digits' parameter was assigned or used ? | ||
2016-04-03 05:06 <kstenger> I'm looking for it | ||
2016-04-03 05:07 <shrox> kstenger: Look at float.py. Numeric basically inherits from it. | ||
2016-04-03 05:07 <kstenger> ah yes, it's in float.py | ||
2016-04-03 05:09 <kstenger> so, if you want to access it, say you have 'line' is your invoice line, then you can access line.unit_price.digits | ||
2016-04-03 05:09 <shrox> kstenger: I tried it. Didn't work | ||
2016-04-03 05:10 <kstenger> what did you get when you tried it ? | ||
2016-04-03 05:10 <shrox> kstenger: decimal number (x) has no member named 'digits' | ||
2016-04-03 05:10 <shrox> kstenger: where x is the number that was to be in the report | ||
2016-04-03 05:10 <kstenger> hmm, ok... let me check some more | ||
2016-04-03 05:11 <kstenger> oh, shrox what about line.unit_digits ? | ||
2016-04-03 05:12 <shrox> kstenger: That works but I don't think I'm supposed to use that. | ||
2016-04-03 05:13 <kstenger> ah, ... right.... sorry that's something else | ||
2016-04-03 05:18 <kstenger> ah... wait I think I know... but I don't remember it on the top of my head let me find it | ||
2016-04-03 05:20 <shrox> kstenger: maybe I can help if you can give me an idea about it? | ||
2016-04-03 05:21 <kstenger> shrox: it should be accessible in code with invoice_line.__class__.unit_price_tax_included.digits[1], but I cannot tell you if this is accessible from the report, try it and see | ||
2016-04-03 05:21 <kstenger> ah, well... that's for unit_price_tax_included field... so change it for yours :) | ||
2016-04-03 05:22 <kstenger> unit_price | ||
2016-04-03 05:22 <shrox> kstenger: Okay, let me give it a go :) | ||
2016-04-03 05:24 <shrox> kstenger: yup, this was it | ||
2016-04-03 05:25 -!- kstenger1(~karla@r186-55-66-20.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-04-03 05:26 <kstenger> I'm glad it worked shrox :) | ||
2016-04-03 05:27 <kstenger> shrox: so you are changing this from inside the odt report? | ||
2016-04-03 05:27 <shrox> kstenger: Yes, thanks! Though I feel bad about not figuring it out myself. | ||
2016-04-03 05:27 <shrox> kstenger: I wouldn't have used __class__ | ||
2016-04-03 05:28 <kstenger> shrox: don't worry, it's the kind of things you will learn about tryton with time :) | ||
2016-04-03 05:28 <shrox> kstenger: No, from the xml. I don't think it's possible to do so from the odt. | ||
2016-04-03 05:29 <kstenger> shrox: ahh, that makes more sense | ||
2016-04-03 05:29 <shrox> kstenger: Now to see if it passes cedk's scrutiny, haha. | ||
2016-04-03 05:29 <kstenger> :D | ||
2016-04-03 05:30 -!- smarro(~sebastian@181.16.7.104) has joined #tryton | ||
2016-04-03 06:11 <shrox> kstenger: cedk will have to review the binary file ;) | ||
2016-04-03 06:25 <kstenger> shrox: you may consider using a solution just like the unit_digits, so creating a new attribute to hold the value of the digits for the price, and use this instead of using __class__ directly from the odt file. It will be better to use __class__ from an on_change_with or the like. | ||
2016-04-03 06:26 <kstenger> shrox: Remember this field may be used later from modules that extend account_invoice to create their own invoice templates, and so this will keep it simple | ||
2016-04-03 06:27 <shrox> kstenger: Hmm. I think I can do that for my next patch, if needed. | ||
2016-04-03 06:30 <kstenger> shrox: 'unit_price_digits' would be a good name I think ;-) | ||
2016-04-03 07:40 -!- frispete(~frispete@p54A90D0A.dip0.t-ipconnect.de) has joined #tryton | ||
2016-04-03 09:08 -!- udono(~udono@ip-178-202-239-138.hsi09.unitymediagroup.de) has joined #tryton | ||
2016-04-03 09:17 -!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton | ||
2016-04-03 09:36 -!- JosDzG(~Thunderbi@187.188.72.35) has joined #tryton | ||
2016-04-03 10:00 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2016-04-03 10:16 -!- udono(~udono@ip-178-202-239-138.hsi09.unitymediagroup.de) has joined #tryton | ||
2016-04-03 10:36 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2016-04-03 13:08 -!- shrox(shrox@nat/iiit/x-ebnfsrmiiexbtuwh) has joined #tryton | ||
2016-04-03 13:15 -!- Guest41033(~daniel@81.171.58.68) has joined #tryton | ||
2016-04-03 13:15 <Guest41033> hi | ||
2016-04-03 13:15 <Guest41033> can someone help me with triton installation process? | ||
2016-04-03 13:16 <Guest41033> did run pip install trytond and wen't through so far | ||
2016-04-03 13:17 <Guest41033> but initializing database with triton -d <dbname> --all says <dbname>.sqlite doesn't exist | ||
2016-04-03 13:17 <Guest41033> what can I do now? | ||
2016-04-03 13:29 -!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has left #tryton | ||
2016-04-03 13:32 <aroncero> Guest41033: tryton is the client and -d flag is for development mode | ||
2016-04-03 13:33 <Guest41033> sry typo error | ||
2016-04-03 13:33 <Guest41033> trytond -d <dbname> --all | ||
2016-04-03 13:33 <aroncero> Guest41033: are you create a database before? | ||
2016-04-03 13:33 <Guest41033> I would like to setup a simple triton server to connect remotely from other machines | ||
2016-04-03 13:33 <Guest41033> nope how can i do that? | ||
2016-04-03 13:34 <aroncero> start the server: trytond | ||
2016-04-03 13:34 <aroncero> from the client conect and from the menu, create database | ||
2016-04-03 13:35 <Guest41033> /etc/init.d/tryton-server start? | ||
2016-04-03 13:35 <aroncero> are you install form deb or from pip? | ||
2016-04-03 13:35 <Guest41033> pip | ||
2016-04-03 13:36 <aroncero> just type trytond, what is happened? | ||
2016-04-03 13:36 <aroncero> trytond -v, better | ||
2016-04-03 13:37 <Guest41033> lots of error ... last one "socket already in use" | ||
2016-04-03 13:40 -!- prayashm(~prayashm@27.49.128.2) has joined #tryton | ||
2016-04-03 13:40 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton | ||
2016-04-03 13:43 <aroncero> umm | ||
2016-04-03 13:43 <aroncero> is the server already running? | ||
2016-04-03 13:45 <aroncero> create a minimal conf file | ||
2016-04-03 14:00 <Guest41033> triton is running now | ||
2016-04-03 14:01 <Guest41033> top is proofing that | ||
2016-04-03 14:01 <Guest41033> trytond | ||
2016-04-03 14:11 <Guest41033> Triton server Password is set in the /etc/tryton/trytond.config? | ||
2016-04-03 14:12 <Guest41033> at localist:8000 right? | ||
2016-04-03 15:26 <cedk> Guest41033: it depends on what you have set in your configuration: http://doc.tryton.org/3.8/trytond/doc/topics/configuration.html#listen | ||
2016-04-03 15:47 <Guest41033> where can I get a minimal configuration? | ||
2016-04-03 15:48 <Guest41033> /etc/tryton/trytond.config doesn't exist | ||
2016-04-03 15:48 <Guest41033> so it seems that no conning exist | ||
2016-04-03 15:55 -!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton | ||
2016-04-03 16:22 -!- prayashm(~prayash@117.197.249.158) has joined #tryton | ||
2016-04-03 16:30 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton | ||
2016-04-03 16:41 <cedk> Guest41033: minimal == empty file | ||
2016-04-03 17:28 -!- kstenger1(~karla@r190-134-54-111.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-04-03 17:57 -!- smarro(~sebastian@181.16.7.104) has joined #tryton | ||
2016-04-03 18:00 <aroncero> cedk: with a empty file, what is the default admin password? | ||
2016-04-03 18:00 <aroncero> cedk: Can you put the super_pwd as argument? | ||
2016-04-03 18:18 <cedk> aroncero: none | ||
2016-04-03 18:18 <cedk> aroncero: we don't consider a good practice to define such password | ||
2016-04-03 18:19 <cedk> aroncero: it is better to manage the database from the server: http://doc.tryton.org/3.8/trytond/doc/topics/setup_database.html#topics-setup-database | ||
2016-04-03 18:20 <aroncero> cedk: I agree, It is not a good practice, so I thought it was necessary a config file to define it | ||
2016-04-03 18:42 <cedk> aroncero: no Tryton tries to have good defaults | ||
2016-04-03 18:42 <aroncero> cedk: I see :D | ||
2016-04-03 18:59 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton | ||
2016-04-03 18:59 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton | ||
2016-04-03 18:59 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton | ||
2016-04-03 19:05 -!- kstenger(~karla@r190-134-54-111.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-04-03 19:28 -!- ljimaz33(57dde69a@gateway/web/freenode/ip.87.221.230.154) has joined #tryton | ||
2016-04-03 20:27 -!- nicoe(~nicoe@2a02:a03f:3025:800:ee55:f9ff:fe7b:f7ac) has joined #tryton | ||
2016-04-03 22:57 -!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has left #tryton | ||
2016-04-03 23:01 -!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton | ||
2016-04-03 23:57 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!