chat.freenode.net #tryton log beginning Wed May 4 00:00:02 CEST 2016 | ||
2016-05-04 00:07 -!- perilla(~perilla@corp-190-57-169-210-cue.puntonet.ec) has left #tryton | ||
2016-05-04 00:19 -!- smarro_(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton | ||
2016-05-04 01:30 <kstenger> why could it ever happen that Transaction().context.get('sale_date', Date.today()) doesn't return today's date when sale_date is None ? | ||
2016-05-04 03:19 -!- smarro_(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton | ||
2016-05-04 03:48 -!- smarro_(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton | ||
2016-05-04 04:13 -!- kstenger1(~karla@r179-24-187-133.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-05-04 04:15 -!- smarro_(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton | ||
2016-05-04 04:36 -!- smarro_(~sebastian@190.14.157.18) has joined #tryton | ||
2016-05-04 07:40 -!- frispete_(~frispete@p54A90826.dip0.t-ipconnect.de) has joined #tryton | ||
2016-05-04 07:41 -!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton | ||
2016-05-04 08:35 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton | ||
2016-05-04 08:36 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton | ||
2016-05-04 08:40 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | ||
2016-05-04 08:40 <dj_xatra> fyi, the 4.0 release announcement doesn't show up in the RSS feed. | ||
2016-05-04 08:47 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2016-05-04 08:58 -!- aneolf(~chatzilla@77.231.166.157) has joined #tryton | ||
2016-05-04 09:08 <cedk> dj_xatra: it is http://www.tryton.org/rss.xml | ||
2016-05-04 09:10 <cedk> dj_xatra: it shows also on planet python | ||
2016-05-04 09:33 <dj_xatra> cedk: RSS reader fail. So that's why my feeds were so quiet lately. :) Sorry for the noise. | ||
2016-05-04 10:25 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton | ||
2016-05-04 10:55 -!- jvblasco(~seba@2.47.14.62.static.jazztel.es) has joined #tryton | ||
2016-05-04 10:55 -!- nicoe(~nicoe@111.127-245-81.adsl-dyn.isp.belgacom.be) has joined #tryton | ||
2016-05-04 11:10 <silwol1> fyi: I submitted a short article about tryton 4.0 to pro-linux, one of the most-read german linux news sites, and it got published: http://www.pro-linux.de/news/1/23523/freies-erp-system-tryton-in-version-40-erschienen.html | ||
2016-05-04 11:12 <cedk> silwol1: Great! We need such initiative, thanks | ||
2016-05-04 11:12 <silwol1> cedk: yw | ||
2016-05-04 12:43 -!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton | ||
2016-05-04 13:07 -!- mariomop(~quassel@181.90.66.39) has joined #tryton | ||
2016-05-04 13:11 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2016-05-04 13:15 -!- shrox(~shrox@182.56.126.14) has joined #tryton | ||
2016-05-04 13:35 -!- jvblasco(~seba@2.47.14.62.static.jazztel.es) has joined #tryton | ||
2016-05-04 14:02 -!- carbas(~carbas@88-109-31-204.dynamic.dsl.as9105.com) has joined #tryton | ||
2016-05-04 14:31 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton | ||
2016-05-04 14:40 -!- kstenger(~karla@r179-24-187-133.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-05-04 14:54 -!- shrox(~shrox@182.56.126.14) has joined #tryton | ||
2016-05-04 15:09 -!- smarro_(~sebastian@181.16.7.104) has joined #tryton | ||
2016-05-04 15:25 -!- bvillasanti(~bvillasan@190.105.73.145) has joined #tryton | ||
2016-05-04 15:36 -!- bvillasanti(~bvillasan@190.105.73.145) has joined #tryton | ||
2016-05-04 15:36 <udono> silwol1: cool! Thanks! | ||
2016-05-04 15:37 -!- carbas(~carbas@88-109-31-204.dynamic.dsl.as9105.com) has joined #tryton | ||
2016-05-04 16:01 -!- carbas(~carbas@88-109-31-204.dynamic.dsl.as9105.com) has joined #tryton | ||
2016-05-04 16:10 -!- kstenger(~karla@r179-24-187-133.dialup.adsl.anteldata.net.uy) has left #tryton | ||
2016-05-04 16:19 -!- kstenger(~karla@r186-54-29-2.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-05-04 16:44 -!- csotelo_at_work(~csotelo@200.4.199.12) has joined #tryton | ||
2016-05-04 16:45 <csotelo_at_work> hello coder | ||
2016-05-04 16:45 <csotelo_at_work> just a dummy question. Is possible to use tryton as simple invoicing and inventory without accounting? | ||
2016-05-04 17:05 -!- jvblasco(~seba@2.47.14.62.static.jazztel.es) has joined #tryton | ||
2016-05-04 17:05 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2016-05-04 17:15 -!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton | ||
2016-05-04 17:17 <andrespoliti> When creating a new Tryton 4.0 database, the following error occurs: 'TableHandler' object has no attribute 'cursor'. Do you know what is the problem? | ||
2016-05-04 17:18 <cedk> andrespoliti: are you using a module that is not ready for 4.0? | ||
2016-05-04 17:21 <andrespoliti> i will check that | ||
2016-05-04 17:22 <cedk> andrespoliti: cursor was removed from TableHandler so I guess you have old module | ||
2016-05-04 17:27 <csotelo_at_work> just a dummy question. Is possible to use tryton as simple invoicing and inventory without accounting? | ||
2016-05-04 17:28 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2016-05-04 17:55 <csotelo_at_work> hello? | ||
2016-05-04 18:02 <pokoli> csotelo_at_work: account_invoice depends on accounting, so No. | ||
2016-05-04 18:02 <pokoli> csotelo_at_work: but you should install the account module and don't look at it :) | ||
2016-05-04 18:04 -!- nicoe(~nicoe@2a02:a03f:3005:6c00:ee55:f9ff:fe7b:f7ac) has joined #tryton | ||
2016-05-04 18:05 <csotelo_at_work> pokoli, and probably use a minimal chart accounting in order not do much config, right? | ||
2016-05-04 18:07 <csotelo_at_work> I ask it, cause today morning a friend ask me about a invoincg and inventory with no accountg behavior | ||
2016-05-04 18:07 <csotelo_at_work> then I wasthinking how it will be | ||
2016-05-04 18:07 <csotelo_at_work> before suggest hime the url | ||
2016-05-04 18:08 <csotelo_at_work> him* | ||
2016-05-04 18:10 -!- smarro_(~sebastian@181.47.250.91) has joined #tryton | ||
2016-05-04 19:00 <csotelo_at_work> dear coder.. I have a question about instance vars. I have something like self.other_field = None def on_change_with_some_field(self, name=None):....... self.other _field = 'hello folks', however when I get into spomething like def on_change_with_mmmm ( self, name = None)... print self.other_field, it is None, any suggest? | ||
2016-05-04 19:01 <cedk> csotelo_at_work: copy/paste are not readable in most irc client, use a pastebin | ||
2016-05-04 19:01 <csotelo_at_work> I guess is something sonfusing, I will paste my code on a paste bin | ||
2016-05-04 19:02 <csotelo_at_work> cedk, yes, I will do | ||
2016-05-04 19:02 <csotelo_at_work> I just notice that | ||
2016-05-04 19:05 <csotelo_at_work> dear coder | ||
2016-05-04 19:05 <csotelo_at_work> this is my code http://pastebin.com/n45CWHxU | ||
2016-05-04 19:06 <csotelo_at_work> at the botton of my paste is my question, why is None that variable | ||
2016-05-04 19:06 <csotelo_at_work> thanks | ||
2016-05-04 19:06 <csotelo_at_work> I also use @fields.depends('product', 'party_coverage', 'invoicing_price') | ||
2016-05-04 19:07 <csotelo_at_work> and continue printing None | ||
2016-05-04 19:07 <andrespoliti> cedk: i'm only using calendar_scheduling and webdav modules. Everything is v4.0 | ||
2016-05-04 19:07 <andrespoliti> but the error still occurs | ||
2016-05-04 19:07 <cedk> csotelo_at_work: if it is not in the depends, it is not set at all | ||
2016-05-04 19:08 <cedk> andrespoliti: please provide the full traceback | ||
2016-05-04 19:08 <cedk> csotelo_at_work: also party_coverage is not a fields | ||
2016-05-04 19:09 <csotelo_at_work> cedk, yes, Is just a class attribute | ||
2016-05-04 19:10 <csotelo_at_work> that I am using for passing values between two eventos on_change | ||
2016-05-04 19:10 <csotelo_at_work> Must I declare as field? | ||
2016-05-04 19:11 <cedk> csotelo_at_work: it can not work | ||
2016-05-04 19:11 <csotelo_at_work> or, what will the right way on pass variables content between two events? I was thinking it is as a python class | ||
2016-05-04 19:11 <cedk> csotelo_at_work: You can not change classes | ||
2016-05-04 19:11 <csotelo_at_work> cedk, Oh, I see | ||
2016-05-04 19:11 <csotelo_at_work> I just understand | ||
2016-05-04 19:11 <cedk> csotelo_at_work: Tryton is based on threads and transactions | ||
2016-05-04 19:11 <cedk> csotelo_at_work: if you want to store something, it is in the database | ||
2016-05-04 19:12 <csotelo_at_work> I was thinking as a simple class attribute | ||
2016-05-04 19:13 <andrespoliti> cedk: there is no traceback in the server. It's a popup window that appears while creating the database from the client | ||
2016-05-04 19:14 <csotelo_at_work> a way to set the value from the python code? for exmaple on my code, I have unit_price, coudl I set from an event? something like self.unit_price = some_value? | ||
2016-05-04 19:15 <csotelo_at_work> on line 53, is possible on do that | ||
2016-05-04 19:15 <csotelo_at_work> before "return" | ||
2016-05-04 19:16 <cedk> andrespoliti: run the server in verbose mode so | ||
2016-05-04 19:16 <cedk> csotelo_at_work: setting fields value in on_change method will result that such value will be sent to the client | ||
2016-05-04 19:17 <cedk> csotelo_at_work: nothing is ever stored in the database for on_change because they are readonly transaction | ||
2016-05-04 19:17 <csotelo_at_work> I have tried without succes, let me try again | ||
2016-05-04 19:19 <cedk> andrespoliti: or you can create the database from the server side like explained in the documentation | ||
2016-05-04 19:20 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton | ||
2016-05-04 19:22 <csotelo_at_work> cedk, Ihave done this ( line 50 ) http://pastebin.com/51Sceu96 with no sucess | ||
2016-05-04 19:23 <cedk> csotelo_at_work: you can not assign value in on_change_with because it is supposed to only compute the value of the field | ||
2016-05-04 19:24 <csotelo_at_work> yes.... that is clear for me, then how could I set more than one fields? is tere a way? from a computed value function or something like that? | ||
2016-05-04 19:25 <cedk> csotelo_at_work: use on_change | ||
2016-05-04 19:26 <csotelo_at_work> let em try please | ||
2016-05-04 19:27 <cedk> ACTION bbl | ||
2016-05-04 20:14 <csotelo_at_work> cedk, thanks a lot | ||
2016-05-04 20:15 <csotelo_at_work> I have used it on before but forget it | ||
2016-05-04 20:15 <csotelo_at_work> thanks a lot | ||
2016-05-04 20:51 <pokoli> csotelo_at_work, yes, minimal account chart is enough if you don't want to use accounting | ||
2016-05-04 20:51 <pokoli> csotelo_at_work, but i will recommend using a chart of accounts and accounting :) | ||
2016-05-04 20:52 <csotelo_at_work> sure, I am sure of that, just was a question related a friend question about a os software for invoicing | ||
2016-05-04 20:52 -!- JosDzG(~Thunderbi@201.157.45.34) has joined #tryton | ||
2016-05-04 20:56 -!- smarro_(~sebastian@181.16.7.104) has joined #tryton | ||
2016-05-04 21:08 <andrespoliti> cedk: creating the database from the server gave us more info. It was a module of ours. Thanks! | ||
2016-05-04 21:17 -!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton | ||
2016-05-04 21:19 <andrespoliti> cedk: we are modifying the method add_fk so a model can use a foreign table as table_query | ||
2016-05-04 21:28 -!- jvblasco(~seba@185.39.42.129) has joined #tryton | ||
2016-05-04 21:30 <csotelo_at_work> dear coders, cedk this is new coder, I have gotten to set my values on my model ( appear as it on the form ), however when I try to save it, an alert doesnt permit me to save, saying me that "calculated_price" couldnt be null ( the same with all required fields filled from code ), any suggest? | ||
2016-05-04 21:31 <csotelo_at_work> code* http://pastebin.com/R5bqmDQu | ||
2016-05-04 21:41 <csotelo_at_work> any suggest? | ||
2016-05-04 21:42 <kstenger> csotelo_at_work: are you creating a new record or modifying an old one ? | ||
2016-05-04 21:42 <csotelo_at_work> creating | ||
2016-05-04 21:43 <csotelo_at_work> this is my code http://pastebin.com/R5bqmDQu | ||
2016-05-04 21:43 <csotelo_at_work> when I create a new one, an alter about required files appear, however these fields have been filled | ||
2016-05-04 21:44 <csotelo_at_work> on lines from 57 to 62 | ||
2016-05-04 21:46 <kstenger> csotelo_at_work: have you ensured the required values are not None when assigning them? | ||
2016-05-04 21:49 <csotelo_at_work> kstenger, I dont understand what you mean. Let me explain what I am doing. Ia m trying to create a new service line ( working on gnuhealth ) when I choose the product, I fill more than one fields on a on_change mothod | ||
2016-05-04 21:49 <csotelo_at_work> as you write, is that possible only on existing values? | ||
2016-05-04 21:50 <csotelo_at_work> since I am doing it on a row where fields are initially NOne | ||
2016-05-04 21:50 <kstenger> csotelo_at_work: if you assing in an on change a value of None, it will act as if the value was empty | ||
2016-05-04 21:50 <kstenger> since it is required, it must be different than None | ||
2016-05-04 21:51 <kstenger> csotelo_at_work: so check (for example using a printblock) that those values are not None when this piece of code runs | ||
2016-05-04 21:51 <csotelo_at_work> probably set with a default could be ok? or what will be the right way on this? | ||
2016-05-04 21:52 <kstenger> csotelo_at_work: you may be missing some default, but it may not be all, you have a lot of if statements in your code, if one fails all the values will be empty at the end of the function call | ||
2016-05-04 21:54 <csotelo_at_work> kstenger, no at all, since I am using some variables that are initialized on before | ||
2016-05-04 21:54 <csotelo_at_work> on lines 35 to 39 | ||
2016-05-04 21:55 <kstenger> csotelo_at_work: I mean line 24 | ||
2016-05-04 21:56 <kstenger> csotelo_at_work: since I don't know the data you work with I cannot help more than insist in your checking the values are not None when you exit the on_change | ||
2016-05-04 21:56 <csotelo_at_work> I understand you | ||
2016-05-04 21:56 <csotelo_at_work> also what you mean | ||
2016-05-04 21:57 <kstenger> csotelo_at_work: hope it helps :) | ||
2016-05-04 21:59 <csotelo_at_work> yes... until now.. however there is something weird, I have add a default value, I have notice that, when I have created my line, product choosen, fields where filled ( after using a default value ) | ||
2016-05-04 21:59 <csotelo_at_work> however, when I save it, all values have gotten back to the default instead the values filled after choosen my product | ||
2016-05-04 21:59 <csotelo_at_work> :S | ||
2016-05-04 22:04 <csotelo_at_work> kstenger, here is before been saved | ||
2016-05-04 22:04 <csotelo_at_work> http://picpaste.com/11-xJaFKjht.png | ||
2016-05-04 22:04 <csotelo_at_work> here after been saved | ||
2016-05-04 22:04 <csotelo_at_work> http://picpaste.com/22-gkn5cSij.png | ||
2016-05-04 22:04 <kstenger> csotelo_at_work: I think you may be missing to add the modified fields in the depends of the on_change | ||
2016-05-04 22:05 <csotelo_at_work> let me try | ||
2016-05-04 22:13 <csotelo_at_work> kstenger, I have add the modified fields to the depends with out success :( | ||
2016-05-04 22:23 <kstenger> csotelo_at_work: I will undo my last sentence, apparently you don't need to add those fields to the depends. But I think your signature is not right for an on_change. You are using the same as for an on_change_with | ||
2016-05-04 22:26 <kstenger> csotelo_at_work: I just noticed something else, you have defined 2 on_change functions, and they may be compitting to fill out the values of 'calculated_price' and complement_price' | ||
2016-05-04 22:28 <csotelo_at_work> yes.. I am comenting it, what I dont understand what you say about signature | ||
2016-05-04 22:30 <kstenger> csotelo_at_work: (unless this has changed with versions, and I'm not aware of this) usually the signature for an on_change is: on_change_xxx(self), for an on change_with: on_change_with_xxx(self, name=None) | ||
2016-05-04 22:30 <csotelo_at_work> oh.. yes, I have fixed | ||
2016-05-04 22:30 <csotelo_at_work> thanks | ||
2016-05-04 22:31 -!- JosDzG(~Thunderbi@201.157.45.34) has joined #tryton | ||
2016-05-04 22:38 <csotelo_at_work> I have noticed that, on base Model ( I am extending a model ) there is the same on_change | ||
2016-05-04 22:40 <kstenger> csotelo_at_work: I thought your model was new because you define it's inheritance. of course if you are extending, you have to call the super methods | ||
2016-05-04 22:41 <csotelo_at_work> probably that is making the worng behavior | ||
2016-05-04 22:41 <kstenger> csotelo_at_work: likely | ||
2016-05-04 22:43 <csotelo_at_work> super(MyClass, self).on_change....? | ||
2016-05-04 22:44 <csotelo_at_work> I start to getting confused | ||
2016-05-04 22:44 <kstenger> csotelo_at_work: yes | ||
2016-05-04 22:58 <csotelo_at_work> kstenger, the isue was other | ||
2016-05-04 22:58 <csotelo_at_work> :S | ||
2016-05-04 22:58 <csotelo_at_work> I have setting the fields as readonly | ||
2016-05-04 22:58 <csotelo_at_work> I was * | ||
2016-05-04 22:59 <csotelo_at_work> at the moment I have taken off the readonly=True, then it works | ||
2016-05-04 22:59 <kstenger> csotelo_at_work: ah, I oversaw it... sure | ||
2016-05-04 23:00 <kstenger> and I already realized why I thought it would work ... I may remember next time | ||
2016-05-04 23:01 <csotelo_at_work> thanks a lot for your time | ||
2016-05-04 23:01 <kstenger> welcome! | ||
2016-05-04 23:02 -!- jvblasco(~seba@185.39.42.129) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!