IRC logs of #tryton for Wednesday, 2009-07-15 #tryton log beginning Wed Jul 15 00:00:02 CEST 2009
-!- bechamel( has left #tryton00:23
-!- ctp( has joined #tryton00:56
-!- CIA-67(n=CIA@ has joined #tryton02:00
-!- digitalsatori(n=tony@ has joined #tryton02:04
-!- CIA-67(n=CIA@ has joined #tryton02:35
-!- ctp_( has joined #tryton02:42
-!- ikks(n=ikks@ has joined #tryton03:14
-!- gremly(n=gremly@ has joined #tryton04:30
-!- ctp( has joined #tryton04:53
-!- gremly(n=gremly@ has joined #tryton05:02
-!- yangoon( has joined #tryton05:20
-!- Timitos(n=timitos@ has joined #tryton07:07
-!- sharkcz( has joined #tryton07:07
-!- Timitos(n=timitos@ has joined #tryton07:52
-!- enlightx( has joined #tryton08:02
-!- paepke( has joined #tryton08:15
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton08:33
-!- paepke( has joined #tryton08:45
-!- carlos( has joined #tryton08:59
-!- enlightx( has joined #tryton09:03
CIA-67ced roundup * #1110/Add WebDAV sync:09:14
CIA-67[new] Add Collection Synchronization for WebDAV09:14
-!- tekknokrat( has joined #tryton10:15
-!- Karborkas( has joined #tryton11:44
KarborkasHi everybody ;-)11:44
carlosKarborkas: hi11:47
udonoKarborkas: Hi11:52
CIA-67Timitos roundup * #1088/set invoice date when invoice is opened: any news about this issue?12:02
-!- ikks(n=ikks@ has joined #tryton12:05
CIA-67udono roundup * #1111/locale is not working on Language Dateformat %B: [new] When using language dateformat %B locale’s full month name (see ) then the month-na ...12:22
CIA-67ced roundup * #1111/locale is not working on Language Dateformat %B: [chatting] For info, It is only on reports12:58
-!- Karborka1( has joined #tryton14:10
-!- sharkcz( has joined #tryton14:11
CIA-67Timitos roundup * #1112/bug report functionality of tryton client does not work any more: [new] the client hangs when i try to send a bug report to tryton.org14:15
CIA-67Timitos roundup * #1113/cannot open invoice report:14:16
CIA-67[new] when i create a new invoice and try to open the report i get the following error:14:16
CIA-67ERROR:common.message:Traceback (most recent call last):14:16
CIA-67Karborkas roundup * #1114/not possible to map company to user in user's preferences:14:19
CIA-67[new] It's not possible to choose the company via the user's preferences dialog. You always get the dialog to create a new company record.14:19
CIA-67But: I ...14:19
CIA-67ced roundup * #1113/cannot open invoice report: [resolved] Duplicate issue110414:25
-!- carlos( has joined #tryton15:25
-!- woakas(n=woakas@ has joined #tryton15:40
-!- _TiN_( has joined #tryton15:57
CIA-67Timitos roundup * #1104/Delivery Note/Picking List ODT Paths Broken:16:08
CIA-67[chatting] FYI: the actual solution does not allow a slash in the report name or the invoice number.16:08
CIA-67even when i double quote the file actions.16:08
-!- enlightx( has joined #tryton16:17
-!- enlightx( has joined #tryton16:38
CIA-67C?dric Krier <> default * 1362:f09e5b8a8681 tryton/tryton/action/ Replace pathname separator in report name by '_' for issue110416:43
CIA-67ced roundup * #1104/Delivery Note/Picking List ODT Paths Broken: [resolved] Fixed with changeset f09e5b8a868116:44
CIA-67ced roundup * #1112/bug report functionality of tryton client does not work any more: [need-eg] Need more informations16:45
-!- bechamel( has joined #tryton16:46
-!- carlos( has joined #tryton16:46
CIA-67ced roundup * #1114/not possible to map company to user in user's preferences: [need-eg] I don't understand. There is a search button in the form.16:47
CIA-67ced roundup * #1109/strange behavior of wizard PayInvoice: [resolved] It is normal as a write-off will always be in the company currency.16:50
udonocedk: I have a question about xmlrpc and netrpc. It seems that xmlrpc can not represent decimal objects correct. What do you think about:
CIA-67ced roundup * #1112/bug report functionality of tryton client does not work any more: [resolved] Fixed.17:19
cedkudono: yes decimal doesn't exist in xmlrpc17:21
udonocedk: but is it right to use integer as result. String or float could be better, isn't it?17:23
cedkudono: yes it must17:25
udonocedk: it must integer? or float? or string?17:25
udonocedk: should I file an issue?17:26
-!- paepke( has joined #tryton17:26
CIA-67C?dric Krier <> default * 1892:323ba886c66a trytond/trytond/protocols/ Use dump_double instead of dump_long for Decimal in xmlrpc.Marshaller17:29
udonocedk: thanks17:30
-!- vengfulsquirrel( has joined #tryton19:05
vengfulsquirrelWhat is the difference between the Sale printout and the Invoice printout ?19:31
-!- _TiN_( has joined #tryton19:56
-!- essich( has joined #tryton20:09
-!- _TiN_( has joined #tryton21:09
udonovengfulsquirrel: Hi, sale printout is an offer to a customer, when the customer accept the offer, you can start a delivery or invoice him.21:11
vengfulsquirreludono:  Hmm so for POS it would make sense to give them an invoice right away ?21:13
udonovengfulsquirrel: yes, I think for POS invoice is better. Because you sell and pay immediately.21:26
vengfulsquirreludono: Thanks.  Have you ever created a report outside of the ones in official modules?21:29
udonovengfulsquirrel: yes, often21:29
vengfulsquirrelI'm just copying the odt file, modifying it and linking it via some xml for the button and stuff.  There is no other magic that needs to happen right?21:31
vengfulsquirrelIs there documentation on this?21:31
udonovengfulsquirrel: talking about the invoice.odt?21:32
vengfulsquirrelNo I'm trying to make it so you can print an inventory, ha sorry new topic now.21:32
udonovengfulsquirrel: so, not overwriting an existing report?21:33
vengfulsquirrelNo its a new report.21:33
vengfulsquirrelI was just copying it so that the styles and stuff were correct.21:33
vengfulsquirrelAlso it seems like its a zipfile with stuff in it, but I don't know the format at all, but I can open and edit it in openoffice.21:34
udonovengfulsquirrel: Ok, for very simple reports take a look on party module, the label.odt report. There you find some report and keyword ir definitions in party.xml, not more. This report is using the generic report which handles all models.21:38
essichvengfulsquirrel: Reports are simply documents21:46
vengfulsquirreludono: Thanks21:49
vengfulsquirrelessich: Yeah okay so its nothing fancy, I think its just when I open it in emacs the openoffice document format is a zipfile so it shows it as a zipfile which confused me.21:50
vengfulsquirrelbut i've started editing the odt21:50
vengfulsquirrelso we'll see if that leads to run-time apocalypse21:51
udonovengfulsquirrel: Some more powerfull concepts of reports are shown in the stock module. Look at class DeliveryNote. There you find a definition of a special parser for reports. Finally in the account_invoice module you find report parser made up with direct SQL-queries.21:52
vengfulsquirreludono: Okay thank you, I shouldn't need much more power than label.odt but I might in the future.22:12
-!- _TiN_( has joined #tryton22:15
-!- carlos( has joined #tryton22:26
vengfulsquirreludono: Oh sorry, ha I swear this is my last question, is there a way to get tryton to stop putting a header/footer on the report?  I'm looking at the tmp file and its adding stuff at the top and bottom that are causing errors, mainly its trying to access company as if its an object when its just the id 1.  So something like <if company.header> does not work.22:33
carlosvengfulsquirrel: I guess it comes from <field name="style">company/header_A4.odt</field>22:53
carlosvengfulsquirrel: however, why don't you use company as an object instead of the id value ?22:53
vengfulsquirrelcarlos: I don't know how to set that, its just passed to the report.  And since the report is pre-pended with the header I have no control over that part of the report either, so I can't change the input or the template.22:55
vengfulsquirrelI think maybe I had some cruft from copying the odt though so I'm going to try it again from scratch.22:55
carlosvengfulsquirrel: I'm not an expert in that field, but I think that is enough that you remove the style field from the .xml that references to your report22:56
vengfulsquirrelOh yeah I have that removed in the xml.22:56
carlosI didn't read the whole discussion, but you were creating a new report, right?22:57
carlosthen if you don't have the style, I have no idea from where does it come...22:57
carlosI just started playing with reports22:57
carloshowever, I guess you added some python code as the backend for the report22:58
carlosI guess you should take a look in that code for the company variable and fetch the object instead of just use the id22:58 * r694 /wiki/ Created wiki page through web user interface.23:01 * r695 /wiki/ Edited wiki page through web user interface.23:01
vengfulsquirrelha sorry so many links, error, xml, my report, report as rendered in /tmp23:05
vengfulsquirrelcarlos: I didn't add code for the report.23:06
vengfulsquirrelI think I'm just doing something wrong.23:06
udonovengfulsquirrel: what if you put <field name="style"></field> near by <field name="report">laspilitas/inventory.odt</field>23:10
carlosand the glue you used to add the report to Tryton?23:10
vengfulsquirrelcarlos: its the xml file23:10
carlosoh, right, I missed it23:12
vengfulsquirreludono: Okay I tried that, what do you think this means:  WARNING:convert:Field style of not updated (id: report_inventory), because it has changed since the last update23:14
udonovengfulsquirrel: you change the preferences in administrtation > models > UI > report by hand?23:16
udonosorry, administrtation > UI > actions > report23:16
udonowhen you change prefs by hand, Tryton did not overwrite the records.23:17
carlosudono: I saw such errors before when adding tags that change the default value when you don't add such tags23:17
carlosI have it in my list of pending things to debug to confirm it's a bug in the convert code23:18
udonocarlos: its not errors, just warnings about that you try to automated update stuff you already edited by hand.23:18
carlosudono: well, for me is an error, because it appears when you didn't change it by hand23:18
vengfulsquirreludono: At one point I hand fixed that bug about wrapping " around %s in the actions.23:19
vengfulsquirreluduno: Could that be it ?23:19
carlosvengfulsquirrel: did you change the XML or did you applied the fix using Tryton or directly inside the database?23:19
vengfulsquirrelI just changed it in the client, I think its just an entry in the config file in my ~.23:20
udonovengfulsquirrel: yes, maybe. Make a backup of your db and delete record 463 in table ir_action_report. Then update the module again.23:20
vengfulsquirreludono: Yeah it is set to use that header when I view it though23:20
vengfulsquirrelI can also just rebuild the db, it just takes about an hour.23:20
carlosone hour??23:21
carloswhat do you have there?23:21
udonovengfulsquirrel: pgadmin3 takes a minute...23:22
vengfulsquirrelpgadmin3 to do what/23:22
vengfulsquirrelI'm inserting locations one at a time, and products one at a time programmatically, I tihnk that's what takes so long.23:22
carlosvengfulsquirrel: with a commit per insert?23:23
carlosyou should group transactions if you are doing commit too often23:23
vengfulsquirrelNo, I don't know if my extensions or what, I've been meaning to setup a stock tryton install with a default data model and run performance tests against that but I haven't had the time.23:24
vengfulsquirreluduno: deleted it and no error with update23:25
vengfulsquirreluduno: Sweet it works, it must have gotten stuck in there somehow.23:25
carlosvengfulsquirrel: I guess that by default, you get the style I gave you, so you need to 'remove' it in a explicit way23:26
carloswhich is what udono's xml tag does23:27
vengfulsquirrelyeah, but I think it might be a bug that it doesn't work with the style23:27
vengfulsquirreland it just doesn't arise with the other models because they are setting company correctly23:27
vengfulsquirrelha its so hard to find real bugs though when you have a bunch of extensions23:28
carlosyeah, it's a bug, either in the way you added your report (the ones I created had python code attached) or in the inventory model23:28
vengfulsquirrelthanks a lot carlos, uduno  , its not pretty but its a start,
carlosvengfulsquirrel: well, once you get the data inside your report, making  it pretty is 'trivial' ;-)23:30
vengfulsquirrelyeah its awesome though that it works23:32
vengfulsquirrelso powerful to be able to make arbitrary documents23:32
udonovengfulsquirrel: yeah, I like it, too.23:34
udonosee you23:36
vengfulsquirreluduno: thanks a bunch, see you later23:37

Generated by 2.11.0 by Marius Gedminas - find it at!