chat.freenode.net #tryton log beginning Mon Jun 27 00:00:02 CEST 2011 | ||
cedk | jcm: http://code.google.com/p/tryton/wiki/Update | 00:00 |
---|---|---|
jcm | ok, sorry, I missed this point. | 00:09 |
jcm | probably the 2080 bug is due to this non updated db. I cannot reproduce it now I updated the db. | 00:13 |
cedk | jcm: so you can put the status as invalid | 00:36 |
jcm | how do you expect me to give some comments or questions about carrier module? maybe the mail is better than irc for such things? | 00:57 |
cedk | jcm: ok for email | 00:58 |
jcm | what happened to the fourth module, product_price_list_party_rebate ? is it hard to write ? | 00:58 |
cedk | jcm: don't remember, I will check | 01:00 |
-!- zodman(~zodman@foresight/developer/zodman) has joined #tryton | 03:19 | |
-!- alimon(~alimon@189.154.30.225) has joined #tryton | 03:23 | |
-!- yangoon(~mathiasb@p549F242C.dip.t-dialin.net) has joined #tryton | 05:18 | |
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton | 08:10 | |
-!- paepke(~paepke@gate.paepke.net) has joined #tryton | 08:21 | |
-!- pjstevns(~pjstevns@helpoort.xs4all.nl) has joined #tryton | 08:42 | |
-!- pjstevns(~pjstevns@helpoort.xs4all.nl) has left #tryton | 08:42 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 09:04 | |
-!- mhi(~mhi@pd95b104a.dip0.t-ipconnect.de) has joined #tryton | 09:21 | |
-!- nicoe(~nicoe@91.179.200.202) has joined #tryton | 09:25 | |
-!- okko(~okko@62.58.29.41) has joined #tryton | 09:45 | |
-!- okko(~okko@62.58.29.41) has joined #tryton | 11:16 | |
-!- yangoon(~mathiasb@p54B4F6CB.dip.t-dialin.net) has joined #tryton | 11:41 | |
-!- sisalp(~dominique@annecy.sisalp.net) has joined #tryton | 11:51 | |
-!- sisalp(~dominique@annecy.sisalp.net) has joined #tryton | 12:01 | |
cedk | anyone tested | 12:02 |
cedk | https://www.django-shop.org/en/ | 12:02 |
-!- elbenfreund(~elbenfreu@p54B94A9A.dip.t-dialin.net) has joined #tryton | 12:24 | |
-!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton | 12:27 | |
jcm | hi cedk ! I'm preparing the email with my questions. I'm stucked with price list : is it possible to have a price list for a category of products ? what is the syntax for the pricelist formulae? | 13:01 |
cedk | jcm: for category in price list, it is not out-of-the-box | 13:02 |
cedk | jcm: but easy to add | 13:03 |
-!- pjstevns(~pjstevns@helpoort.xs4all.nl) has joined #tryton | 13:03 | |
cedk | jcm: for the fomula, it is any valid Python statement | 13:03 |
-!- pjstevns(~pjstevns@helpoort.xs4all.nl) has left #tryton | 13:03 | |
jcm | it refuses unit_price*0,7 : is it because of the comma? | 13:04 |
cedk | jcm: yes, you must use . | 13:07 |
cedk | jcm: Python code :-) | 13:07 |
jcm | sry, I'm definitely stupid ;-) how do I attach a price list to a party? | 13:08 |
cedk | jcm: on the party form | 13:09 |
jcm | maybe it's a rights pb, but I have no editable field in the price list form of a party | 13:12 |
cedk | jcm: have you installed the sale_price_list module ? | 13:14 |
jcm | no ;-) | 13:14 |
cedk | jcm: so the field is in this module | 13:18 |
cedk | jcm: product_price_list is just the basis | 13:18 |
jcm | perfect, I'm testing. I tell your more in my email about rebates and price lists | 13:19 |
yangoon | cedk: django-shop: I am following on IRC from the beginning, but did not test yet, looked promising | 13:27 |
cedk | yangoon: should it be easy to integrate with Tryton? | 13:28 |
yangoon | cedk: simpler than magento;) | 13:28 |
yangoon | exactly this was my hope, but hadn't the time to look at the dev those last days | 13:29 |
yangoon | and they are open to suggestions for models etc. | 13:30 |
cedk | yangoon: ok I will try to keep an eye on it | 13:31 |
yangoon | cedk: great, they were on rather early stage, but they are rather active, so could be it could be a usable solution soon | 13:32 |
jcm | where can I learn more on the meaning (and configuration) of sequences in fiscal years? | 15:52 |
udono | jcm: hi, possibly here ;-) | 15:54 |
udono | jcm: do you have more specific questions? | 15:55 |
jcm | what is a posted move sequence ? should I add a prefix? what's the use of these sequences in accounting ? | 15:57 |
udono | jcm: it is the sequence used for accounting moves. | 16:00 |
udono | jcm: ... when you post a move, the next number from this sequence is taken and filled into the code field. | 16:01 |
udono | jcm: The use is to be able to talk about a certain account move by identify it with a unique code. | 16:03 |
udono | jcm: ... the use of this sequence is mostly company internal. | 16:04 |
-!- zodman(~andres-va@foresight/developer/zodman) has joined #tryton | 16:06 | |
jcm | ok, so a simple sequence with no prefix should be perfect, isn't it? | 16:09 |
udono | jcm: Yes. | 16:10 |
jcm | for client invoice, if I prefix with ${year}${month}, what happens on a month change ? | 16:10 |
cedk | jcm: this take the value of the current date | 16:11 |
udono | jcm: 201106<number> for this month and 201107<number+1> for next month | 16:12 |
jcm | ok, so sequence is never resetted | 16:12 |
cedk | jcm: so if you really want to have year and month number in the sequence according to the fiscal year and the period, you must define a sequence per fiscalyear and/or period with the hardcoded value as prefix or suffix | 16:12 |
jcm | ah, ok | 16:13 |
jcm | when are moves done ? once sale is confirmed ? | 16:17 |
cedk | jcm: once invoice is opened | 16:19 |
-!- heffer(~felix@hyperion.fetzig.org) has joined #tryton | 16:29 | |
-!- heffer(~felix@fedora/heffer) has joined #tryton | 16:29 | |
-!- sisalp(~dominique@annecy.sisalp.net) has left #tryton | 16:42 | |
-!- ciupicri(~ciupicri@81.180.234.249) has joined #tryton | 16:48 | |
jcm | how do I update a tab (Accounts) without closing/reopening ? | 16:51 |
-!- enlightx(~enlightx@109.52.235.172) has joined #tryton | 16:51 | |
cedk | jcm: what do you mean? | 16:57 |
jcm | I opened an invoice : the tab Accounts didn't reflect the move. Once closes then opened, I see the move. Is it possible to actualize values without closing/reopening? | 16:58 |
cedk | jcm: reload | 16:59 |
jcm | reload shows only the root for a tree view, the opened lines are not kept. Is it a feature ? | 17:01 |
cedk | jcm: yes | 17:02 |
jcm | why ? I don't see the advantage... | 17:02 |
cedk | jcm: no I mean it will be a feature if it could remember it | 17:04 |
jcm | ok ;-) | 17:05 |
jcm | the invoice miss many important informations. Is it only a report to be changed or the invoice module to complete ? | 17:08 |
jcm | each line should show the unit_price, the rebate, the net price | 17:09 |
jcm | and a subtotal for each tax rate should appear in a table below | 17:09 |
jcm | payment terms should be clearly printed | 17:10 |
jcm | here is a French example: http://www.fiducial.biz/index.aspx?NODE_REF=facturation-exemple-facture | 17:12 |
cedk | jcm: I think everything is there except for rebate | 17:17 |
cedk | jcm: I think the rebate could be deduced from the list_price and the unit_price | 17:20 |
jcm | with you idea, would it be possible to have different rebates for different lines ? | 17:29 |
-!- alimon(~alimon@189.154.30.225) has joined #tryton | 17:31 | |
cedk | jcm: if you change the unit_price of the lines | 17:32 |
jcm | list_price is the immutable price and list_price the price with rebate ? | 17:32 |
jcm | and unit_price the price with rebate (sry for the confusion) ? | 17:33 |
cedk | jcm: list_price is the price defined on the product | 17:34 |
cedk | jcm: the unit_price is the price on the line resulting of the list price computation | 17:34 |
jcm | ok. So your idea would be to print a rebate without having it stored in the line, isn't it? | 17:35 |
cedk | jcm: yes | 17:36 |
jcm | but it's simpler to write 30% in a rebate field than compute a new unit_price in the New sale form. | 17:43 |
cedk | jcm: so you don't want to use the list price ? | 17:45 |
cedk | jcm: and even, you can have a editable computed field which gives you the rebate and if you change it, it recompute the unit price | 17:46 |
-!- elbenfreund(~elbenfreu@p54B92E8F.dip.t-dialin.net) has joined #tryton | 17:47 | |
jcm | ha, good, if this is possible it would be nearly perfect. | 17:47 |
jcm | are my requirements a French thing only or are there some others around interested with this? | 17:49 |
jcm | i.e., is it a private change or should I propose to enhance invoice for everyone? | 17:49 |
cedk | jcm: you can have a previous when looking at the unit of measure rate/factor | 17:49 |
cedk | jcm: I think the rebate stuffs must be at least in a separated module | 17:50 |
cedk | I don't know yet if it will be generic enough or not | 17:50 |
jcm | and what about having defautl invoice doc show subtotals for each tax rate ? and display listprice + unit price ? | 17:50 |
cedk | jcm: but you have it in the tax table | 17:52 |
jcm | the odt I got in printing the invoice has no tax table | 17:53 |
cedk | jcm: is there a taxes in at least one line? | 17:55 |
jcm | yes, I have two tax rates, the total tax appears but not the detail per tax rate | 17:55 |
cedk | jcm: could you post somewhere the invoice generated? | 17:57 |
jcm | should be in you email inbox | 17:58 |
cedk | jcm: not yet | 17:59 |
-!- alimon(~alimon@189.154.30.225) has joined #tryton | 18:00 | |
cedk | jcm: ok I have understood, you are looking at the sale order not the invoice | 18:05 |
jcm | ;-) indeed, a true invoice looks better! | 18:07 |
jcm | what's the use of a sale order? I never saw such a doc here | 18:07 |
cedk | jcm: it is for salemen, when you are doing quotation | 18:10 |
jcm | so, on invoice, I'd wish to add: total weight, list price, rebate | 18:18 |
jcm | + customize a little the doc (add mentions, logo, etc). | 18:18 |
jcm | I'd like to have always the carrier line be below others. Maybe it's already doable but I didn't find how to reorder lines. | 18:20 |
cedk | jcm: reorder by Drag&Drop | 18:39 |
cedk | jcm: for look customization, you must edit the odt file from Administration/User INterface/Actions/Report | 18:40 |
jcm | should Drag&drop work in the New sale form ? doesn't work here. I'll try to install another client than MacOSX to test this. | 18:44 |
cedk | jcm: DnD doesn't work on MacOS | 18:45 |
-!- enlightx(~enlightx@2.193.155.112) has joined #tryton | 18:47 | |
cedk | jcm: DnD was explicitly disable on MacOS but it is perhaps fixed | 18:47 |
jcm | ah. is it possible to edit the sequence number in each line to change the order? | 18:48 |
cedk | jcm: see http://hg2.tryton.org/tryton/file/4cbbde98a309/tryton/gui/window/view_form/view/list.py#l358 | 18:49 |
cedk | jcm: yes for editing if we add the sequence in the view | 18:49 |
jcm | already works, when sale is in draft stat | 18:50 |
cedk | jcm: yes I saw sequence is in the form view | 18:54 |
-!- gremly(~gremly@200.106.202.91) has joined #tryton | 18:55 | |
jcm | how do I open an odt with writing rights? should I download through Administration/User INterface/Actions/Report or can I edit directly the odt in the code tree? | 18:56 |
cedk | jcm: best is to use the client because it will store a copy in the database | 18:57 |
cedk | jcm: like that you will not have conflict with the next upgrade | 18:57 |
jcm | ah, good to know | 18:58 |
jcm | even with downloading from the client, I don't have writing rights on the odt | 18:58 |
cedk | jcm: you must click on the edit bottom in Ooo | 19:00 |
jcm | should I translate all plain text here in Ooo (Libreoffice in fact)? | 19:02 |
cedk | jcm: no translation should be done using the translation process | 19:05 |
cedk | http://code.google.com/p/tryton/wiki/HowtoTranslate | 19:06 |
-!- nicoe(~nicoe@185.33-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton | 19:06 | |
-!- elbenfreund1(~elbenfreu@p54B92E8F.dip.t-dialin.net) has joined #tryton | 19:13 | |
jcm | ok. Will do it. I need to part now. Can you please indicate me the directions on how to add rebate on the invoice doc and compute a total weight? Maybe can we talk together tomorrow morning about this? | 19:13 |
jcm | thks for your help anyway | 19:13 |
cedk | jcm: the rebate behavior, I explained require some programming | 19:14 |
jcm | sure, I got this point. I'd like to be guided to add this in a module. And maybe understand better what party_rebate does... | 19:15 |
cedk | jcm: you can have a look at http://code.google.com/p/tryton/wiki/HelloWorld | 19:17 |
cedk | nicoe: could you push the training module updated for 2.0 ? | 19:18 |
nicoe | I'll do it after I eat | 19:18 |
cedk | jcm: so you could have a look at training module also | 19:20 |
-!- elbenfreund(~elbenfreu@2001:6f8:1c1b:1a18:221:5cff:fe7e:538b) has joined #tryton | 19:30 | |
-!- chrue(~chrue@host-091-097-041-019.ewe-ip-backbone.de) has joined #tryton | 19:34 | |
-!- elbenfreund(~elbenfreu@2001:6f8:1c1b:1a18:221:5cff:fe7e:538b) has joined #tryton | 19:52 | |
nicoe | cedk, jcm: I created the training module for 2.0 | 20:17 |
cedk | nicoe: I will check | 20:27 |
nicoe | It is only the patch repository | 20:30 |
cedk | nicoe: this is strange http://hg2.tryton.org/2.0/training/rev/179555297140#l3.25 | 20:32 |
cedk | nicoe: ok I understand it | 20:33 |
cedk | nicoe: it is because you removed the return | 20:33 |
cedk | nicoe: by the way, why? | 20:33 |
nicoe | I asked you if the return value of .write has any meaning | 20:34 |
nicoe | You said it did not, so I prefer to have clean code rather than returning something which means nothing | 20:34 |
cedk | nicoe: ok | 20:35 |
cedk | nicoe: but so, we could fix other series | 20:35 |
nicoe | Yes we could | 20:36 |
-!- vladimirek(~vladimire@adsl-dyn24.78-98-14.t-com.sk) has joined #tryton | 21:19 | |
-!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton | 21:21 | |
-!- vladimirek(~vladimire@adsl-dyn24.78-98-14.t-com.sk) has joined #tryton | 21:52 | |
paepke | are there somewhere examples how to drive the charts in an odt document via relatorio? | 22:01 |
-!- enlightx(~enlightx@host32-121-dynamic.11-87-r.retail.telecomitalia.it) has joined #tryton | 22:02 | |
paepke | i've moved my barcode stuff now to relatorio, the example scripts work well, but i wanna test it with tryton, too. | 22:02 |
udono | paepke: yes on the relatorio homepage: http://relatorio.openhex.org/wiki/IndepthIntroduction#Onestepfurther:OpenOfficeCalcandOpenOfficeImpresstemplates | 22:04 |
paepke | udono: i've already applied that. | 22:05 |
paepke | i'm wondering how i can drive that via tryton or the report-template. | 22:06 |
paepke | udono: or did i oversee something? | 22:06 |
udono | paepke: you will print out a ods file with Tryton? | 22:09 |
paepke | udono: yes. with an graph or barcode in it. | 22:10 |
paepke | graph like a pie_chart or bar_chart | 22:11 |
udono | paepke: ods or odt? | 22:11 |
paepke | odt. sorry. | 22:12 |
paepke | hmm. i'm coming nearer... | 22:15 |
udono | paepke: what about this? Starts from the second picture: http://relatorio.openhex.org/wiki/IndepthIntroduction#Anot-sorealexample for pictures and http://relatorio.openhex.org/wiki/IndepthIntroduction#Everybodylovescharts for charts | 22:15 |
-!- enlightx(~enlightx@109.55.210.186) has joined #tryton | 22:18 | |
paepke | its all about "Images". that chart is prepared from the demo python script as a ready .png file. | 22:18 |
paepke | based on a yaml file. | 22:19 |
paepke | udono: maybe i should ask tomorrow when nicoe or cedk are back | 22:21 |
udono | paepke: Sorry, I do not understand the problem. | 22:21 |
paepke | udono: another try: inside tryton you have a list of values. how can these be rendered as an pie-chart in an odt file? | 22:23 |
udono | paepke: For the barcode: you can maybe put a method in report.py which receives number and barcode type, and delivers a picture of the barcode. | 22:24 |
paepke | udono: already done. | 22:24 |
-!- elbenfreund(~elbenfreu@p54B92E8F.dip.t-dialin.net) has joined #tryton | 22:24 | |
paepke | i wanna put that into relatorio. | 22:25 |
paepke | well i have it already put it into. but the glue is missing. how a barcode (or a graph) can be drawn. | 22:25 |
udono | paepke: both as a picture. | 22:25 |
paepke | how can i tell the picture that its a barcode? | 22:26 |
udono | paepke: why it need to know what it is? For odt it is a picture anyway. | 22:27 |
paepke | that picture is rendered via relatorio. | 22:28 |
paepke | right? | 22:28 |
paepke | you give relatorio a list or dict. and relatorio does the rest. | 22:28 |
udono | paepke: ok | 22:29 |
paepke | so i need to tell relatorio somehow what kind of picture is should create out of the data. | 22:29 |
udono | paepke: so why not put the methodcall into the image, like described above? image: barcode_pic('1234567890', type='ean13') | 22:32 |
paepke | regarding to cedk its better to have it in relatorio than modifying the report.py | 22:33 |
paepke | more generic | 22:33 |
paepke | thats my current implementation. well with some context stuff on tryton 1.6 ... | 22:34 |
paepke | i have to change some parts of my code anyway. so i put some effort in migrating that barcode stuff to relatorio. | 22:35 |
paepke | udono: we had this discussion back in 2008 :-) | 22:37 |
udono | paepke: yes | 22:37 |
paepke | udono: its too late for today. cya tomorrow | 22:38 |
udono | paepke: Put it completely into relatorio sounds hard to me. Because you will use in real something like: image: barcode_pic(invoice_line.product.code, type='ean13') | 22:39 |
cedk | paepke, udono: what is the problem? | 22:40 |
paepke | cedk: i don't know how i can say relatorio to draw a chart. how to put the parameters into the template. | 22:41 |
paepke | cedk: the charts are a good example. | 22:41 |
cedk | paepke: you mean puting an image inside an odt? | 22:42 |
paepke | cedk: kind of. relatorio has the posibility to draw eg. a pie_chart. right? | 22:43 |
paepke | cedk: and put it into an odt file. | 22:43 |
cedk | paepke: it can using pycha but it is not very well tested feature | 22:44 |
paepke | cedk: so how can is say relatorio via tryton to render a pie_chart on an odt report? | 22:44 |
cedk | paepke: and I don't recommend it | 22:44 |
cedk | paepke: the problem is not like that | 22:44 |
paepke | cedk: not? | 22:44 |
cedk | paepke: you have first to generate an image | 22:44 |
cedk | paepke: you can use relatorio with pycha if you want | 22:45 |
cedk | but you can use any tool you want | 22:45 |
cedk | once you have the image | 22:45 |
cedk | you can put it in a odt file using a frame | 22:45 |
cedk | paepke: I think there is an example for that in relatorio examples | 22:45 |
paepke | cedk: i've already implemented such a function. | 22:46 |
paepke | i put it as StringIO via that image frame into the odt file. | 22:46 |
paepke | we had a discussion about a year ago how to implement such a thing the _right_ way. | 22:47 |
paepke | it was about barcodes. | 22:47 |
paepke | cedk: you told me it would be better to have such a function in relatorio. and not as a function in tryton. | 22:48 |
paepke | cedk: and here i am. asking how i can tell relatorio i want to trigger the function to render me a barcode into an odt document. (the python code of generating a barcode is already there) | 22:50 |
cedk | paepke: are you sure ? | 22:50 |
paepke | cedk: sure with what? | 22:51 |
cedk | paepke: I said to have the barcode generationg in relatorio | 22:52 |
paepke | http://www.tryton.org/~irclog/2010-07-27.log.html#t2010-07-27_18:33 | 22:53 |
cedk | paepke: it was conditional | 22:55 |
paepke | cedk: same situation. i have a barcode function. | 22:56 |
paepke | cedk: or has the tryton code changed that much in 1.8 or 2.0? | 22:56 |
cedk | paepke: right now, I think the best is just having the method in the context | 22:56 |
cedk | paepke: I think relatorio need a cleanup | 22:57 |
cedk | and should follow more the KISS | 22:57 |
cedk | and I already thought about removing other templates engines except opendocument | 22:58 |
paepke | cedk: like pycha? | 22:58 |
cedk | about barcode, there is a lot of different lib that can generate it and I think if we choose one of course we will have someone asking for a barcode format not supported | 22:59 |
cedk | paepke: yes | 22:59 |
paepke | cedk: yes, there are a lot around. but different barcode types can be generated with different lib. there is no one-fits-all. | 22:59 |
cedk | relatorio should do one thing: generate opendocument based on opendocument templates | 22:59 |
cedk | paepke: yes so having one in relatorio doesn't sound good | 23:00 |
cedk | paepke: better to let the user put the one he wants in the context | 23:00 |
paepke | there could be different libs added to relatorio. as well as on tryton. that doesn't sound like a argument. | 23:00 |
cedk | paepke: not KISS | 23:01 |
paepke | so no barcode batteries included? | 23:01 |
cedk | paepke: I don't think | 23:01 |
udono | for me barcode creation is a tryton feature, not relatorio. | 23:01 |
paepke | udono: generating graphs neither. | 23:03 |
cedk | udono: even, it is damm simple to make a barcode | 23:03 |
paepke | udono: but its there and we have currently no other choice? | 23:03 |
paepke | cedk: yeah. its damn simple. but not included. | 23:03 |
cedk | paepke: don't care, simple to use it | 23:04 |
paepke | cedk: but it will take some hours to implement it right for someone who is not familiar to tryton and the report generation via relatorio | 23:05 |
cedk | paepke: and what's the point? | 23:05 |
paepke | never mind. i'll write somewhen a blog entry about my investigations. maybe this will help someone | 23:05 |
paepke | cedk: no point. | 23:07 |
paepke | cedk: i think we can close the discussion. its already late. thanks for youre time and answers. | 23:08 |
udono | paepke: for me it is definitely a feature for Tryton. If it is possible bring it in a module like report_barcode. I am sure people who wanted to use flexible barcodes will use it. | 23:08 |
cedk | I want to reduce features, we have been too much tempted in the 3 years | 23:09 |
cedk | udono: for me, it doesn't deserve a module | 23:09 |
cedk | udono: it is 3 lines of code | 23:10 |
cedk | just a wiki page | 23:11 |
-!- alimon(~alimon@201.158.247.118) has joined #tryton | 23:36 | |
-!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has left #tryton | 23:41 |
Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!