IRC logs of #tryton for Monday, 2015-02-09

chat.freenode.net #tryton log beginning Mon Feb 9 00:00:02 CET 2015
2015-02-09 01:00 -!- plantian(~ian@174-134-217-28.res.bhn.net) has joined #tryton
2015-02-09 01:07 -!- mar(~marius@84.240.8.12) has joined #tryton
2015-02-09 02:33 -!- mar(~marius@84.240.8.12) has joined #tryton
2015-02-09 04:19 -!- digitalsatori(~Thunderbi@114.94.139.254) has joined #tryton
2015-02-09 04:56 -!- digitalsatori1(~Thunderbi@116.234.197.248) has joined #tryton
2015-02-09 05:03 -!- apostatize(~visavis@gateway/vpn/privateinternetaccess/apostatize) has joined #tryton
2015-02-09 05:57 -!- digitalsatori(~Thunderbi@116.234.197.248) has joined #tryton
2015-02-09 06:02 -!- yangoon1(~mathiasb@p549F1A75.dip0.t-ipconnect.de) has joined #tryton
2015-02-09 06:20 -!- plantian(~ian@174-134-217-28.res.bhn.net) has joined #tryton
2015-02-09 06:40 -!- frispete_(~frispete@p54A91259.dip0.t-ipconnect.de) has joined #tryton
2015-02-09 06:57 -!- prksh(~prksh@103.245.118.154) has joined #tryton
2015-02-09 07:16 -!- VaticanCameos(~pritishc@103.245.118.154) has joined #tryton
2015-02-09 07:41 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-02-09 07:53 -!- frispete(~frispete@p54A91259.dip0.t-ipconnect.de) has joined #tryton
2015-02-09 08:04 -!- prksh(~prksh@103.245.118.154) has joined #tryton
2015-02-09 08:07 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2015-02-09 08:20 -!- pobsteta1(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-02-09 08:21 -!- jcros(~Thunderbi@251.171.125.78.rev.sfr.net) has joined #tryton
2015-02-09 08:38 -!- prksh(~prksh@198.61.199.179) has joined #tryton
2015-02-09 08:57 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-02-09 09:01 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-02-09 09:02 -!- apostatize(~visavis@gateway/vpn/privateinternetaccess/apostatize) has joined #tryton
2015-02-09 09:11 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-02-09 09:12 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-02-09 09:12 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-02-09 09:15 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-02-09 09:26 -!- yangoon(~mathiasb@p549F1A75.dip0.t-ipconnect.de) has joined #tryton
2015-02-09 09:29 -!- prksh(~prksh@103.245.118.154) has joined #tryton
2015-02-09 09:34 -!- digitalsatori(~Thunderbi@116.234.197.248) has joined #tryton
2015-02-09 09:45 -!- prksh_(~prksh@198.61.199.179) has joined #tryton
2015-02-09 10:43 -!- prksh(~prksh@103.245.118.154) has joined #tryton
2015-02-09 10:43 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton
2015-02-09 11:02 <buxy> is it possible to generate monthly balances if you opted for quarterly periods ?
2015-02-09 11:07 -!- frispete(~frispete@p54A91259.dip0.t-ipconnect.de) has joined #tryton
2015-02-09 11:20 -!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton
2015-02-09 11:30 <buxy> does anyone really make use of the "print general ledger", LibreOffice is unusable with a document with so many tables for me.
2015-02-09 11:31 <cedk> buxy: browse the records
2015-02-09 11:33 <cedk> buxy: report is just for printing because some wants to print
2015-02-09 11:40 <buxy> cedk: actually I want to print it for archival purpose :)
2015-02-09 11:41 <buxy> I'll try adding a page jump between accounts so that layout is easier to handle for LibreOffice
2015-02-09 11:45 <cedk> buxy: a good backup will also do the job :-)
2015-02-09 11:46 <buxy> yeah, I'd like to avoid it but I wonder if it's not a legal requirement in France
2015-02-09 11:47 <buxy> for the general ledger, it's possible that an electronic version is enough, but for the journal_ledger I actually need monthly totals of each journal
2015-02-09 11:48 <buxy> and I have never had that feature, as a work-around I printed monthly balance but here I use quarterly period (because that's what I need for VAT) and now I'm a bit stuck
2015-02-09 11:55 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-02-09 11:57 -!- woakas(~woakas@static.13.240.46.78.clients.your-server.de) has joined #tryton
2015-02-09 12:11 -!- mariomop(~quassel@host125.186-125-148.telecom.net.ar) has joined #tryton
2015-02-09 12:31 -!- prksh(~prksh@103.245.118.154) has left #tryton
2015-02-09 13:16 -!- prksh_(~prksh@122.177.148.83) has joined #tryton
2015-02-09 13:29 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton
2015-02-09 13:34 -!- newzen(~newzen@190.36.80.12) has joined #tryton
2015-02-09 14:05 <buxy> Can someone explain this: http://paste.debian.net/144674/
2015-02-09 14:06 <buxy> The modified general_ledger.odt has some minimal changes (just the supplementary page jump).
2015-02-09 14:08 <buxy> (freexian is a custom module to customize some reports)
2015-02-09 14:17 <newzen> buxy: AttributeError: "account.account,611" has no attribute "general_ledger_balance"
2015-02-09 14:18 <buxy> newzen: I saw this, but I can't explain it
2015-02-09 14:19 <buxy> that attribute is defined in the account object as:
2015-02-09 14:19 <buxy> general_ledger_balance = fields.Boolean('General Ledger Balance',
2015-02-09 14:19 <buxy> states={
2015-02-09 14:19 <buxy> 'invisible': Eval('kind') == 'view',
2015-02-09 14:19 <buxy> },
2015-02-09 14:19 <buxy> depends=['kind'],
2015-02-09 14:19 <buxy> help="Display only the balance in the general ledger report")
2015-02-09 14:40 <buxy> I tried without using the intermediate module. I edited directly the report in the account module and as soon as I modify the .odt file, I get this error (even when I change just the title).
2015-02-09 14:46 <pokoli> buxy: have you registered the account object in the pool?
2015-02-09 14:47 <buxy> pokoli: I use the account module obviously, but I'm not sure what you mean...
2015-02-09 14:50 <pokoli> buxy: how you added the general_ledger_balance field? in your freexian custon module?
2015-02-09 14:51 <buxy> pokoli: I did not add it... it's part of the account/account.py
2015-02-09 14:51 <buxy> my modules only contains some *.odt files and the reports.xml file registering those reports in place of other pre-existing reports.
2015-02-09 14:52 <pokoli> buxy: aha, but this field is introduced on trunk, are you running trunk version?
2015-02-09 14:55 <buxy> duh... apparently I do for this module. :-|
2015-02-09 14:56 <buxy> It's probably a mistake of mine due to having worked on the move report some time ago.
2015-02-09 14:56 <buxy> BAH!
2015-02-09 14:57 <buxy> pokoli: thanks for the hint, I mixed up my checkouts
2015-02-09 14:58 <buxy> I'm not using trunk, but I picked the .odt from that repository...
2015-02-09 14:58 <pokoli> buxy: so you just need to pick the .odt from the right one :)
2015-02-09 14:58 <buxy> yeah
2015-02-09 15:12 -!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton
2015-02-09 15:21 <buxy> Must be the day of stupid mistakes that I can't spot. Now tryton gives me "Exception: ('Error', 'Report (account.general_ledger) not find!')"
2015-02-09 15:25 <buxy> And when I lookup in Administration / User Interface / Actions / Reports, I don't see the general ledger anymore.
2015-02-09 15:28 <pokoli> buxy: may be related with your module, can not help if you don't provide more info, source code better :)
2015-02-09 15:28 <buxy> (if it ever was there)
2015-02-09 15:30 <pokoli> buxy: it is there on my databases :)
2015-02-09 15:32 <buxy> bah, I upgrade my module multiple times, changing from "active" False to True for the original report and my replaced version
2015-02-09 15:32 <pokoli> buxy: It seems you had a good weekend ;)
2015-02-09 15:34 <buxy> I recreated the missing report object manually and it's now working again.
2015-02-09 15:36 <buxy> bah I understood my problem: I upgraded with a setting active: False, and now I dropped it back expecting it to become True, but that's not enough obviously, you have to be explicit
2015-02-09 15:40 <buxy> where's the active value stored for such a report object?
2015-02-09 15:41 <buxy> The ir_action_report table doesn't seem to contain such a field.
2015-02-09 15:41 <pokoli> buxy: in the ir_action table
2015-02-09 15:43 <buxy> thanks
2015-02-09 16:09 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton
2015-02-09 16:26 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-02-09 16:38 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-02-09 16:39 -!- pobsteta1(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-02-09 17:07 -!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton
2015-02-09 17:10 -!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton
2015-02-09 17:22 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-02-09 17:23 -!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton
2015-02-09 17:31 -!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton
2015-02-09 17:59 -!- roberto_(~roberto@177.19.245.134) has joined #tryton
2015-02-09 18:18 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton
2015-02-09 18:54 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton
2015-02-09 19:15 -!- VaticanCameos(~pritishc@182.68.230.69) has joined #tryton
2015-02-09 19:37 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton
2015-02-09 20:34 -!- jcros(~Thunderbi@251.171.125.78.rev.sfr.net) has joined #tryton
2015-02-09 21:03 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-02-09 21:22 -!- frnk__(bcc1881e@gateway/web/freenode/ip.188.193.136.30) has joined #tryton
2015-02-09 21:23 <frnk__> is it true that "tryton -d DATABASENAME --all" only looks for sqlite databases? what if I run on postresql??
2015-02-09 21:23 <frnk__> is it true that "trytond -d DATABASENAME --all" only looks for sqlite databases? what if I run on postresql??
2015-02-09 21:24 <frnk__> how can i upgrade then? (from 3.2.x to 3.4.x in my case)
2015-02-09 21:27 <yangoon> frnk__: first you must update your configuration to the new format
2015-02-09 21:27 <yangoon> frnk__: a commented example is here: https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=tryton/tryton-server.git;a=blob;f=debian/trytond.conf;h=fd28e1f6d398694b36535284b4797338c43fdce5;hb=HEAD
2015-02-09 21:29 <frnk__> aha, ok, thanks!
2015-02-09 21:30 -!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-02-09 21:33 <hiaselhans> hi there
2015-02-09 21:33 <hiaselhans> i want to restrict a button to certain users
2015-02-09 21:34 <hiaselhans> so i just put a clause "readonly": Eval('total_amount', default=1) > 3000
2015-02-09 21:35 <hiaselhans> but i keep on getting an error in the client telling me that (1) is can not be converted to float...
2015-02-09 21:35 <hiaselhans> how can i work around that?
2015-02-09 21:35 <hiaselhans> it gets evaluated as None when creating a new sale..
2015-02-09 21:43 <frnk__> is there a recomandation which caldav application works good with tryton
2015-02-09 22:35 -!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has left #tryton
2015-02-09 22:45 -!- uranus(~uranus@ip72-192-133-197.sd.sd.cox.net) has joined #tryton
2015-02-09 22:47 <cedk> hiaselhans: you have to deal explicitly with the None case
2015-02-09 22:47 <hiaselhans> thanks, not so easy, as if also expects to have the same type :)
2015-02-09 22:47 <hiaselhans> i made a function field instead...
2015-02-09 22:48 <hiaselhans> (which unluckily seems to require having the field in the view)
2015-02-09 22:49 <cedk> hiaselhans: fix your depends
2015-02-09 22:50 <cedk> hiaselhans: ha but there is no depends for buttons :-(
2015-02-09 22:50 <hiaselhans> hmm
2015-02-09 22:51 <hiaselhans> cedk: no worries, i have simply put a hidden field to the view...
2015-02-09 22:55 <hiaselhans> cedk: thanks for the help though! how would you handle the none case?
2015-02-09 22:57 <hiaselhans> cedk: If(Eval('total_amount') == None, 0, Eval('total_amount', 0)) ? I think that also brought an issue because 0 is not the same type as the 2nd Eval(...)
2015-02-09 23:04 <cedk> hiaselhans: what is the problem?
2015-02-09 23:08 <hiaselhans> cedk: thanks for asking, i tried to figure out the problem and got the solution
2015-02-09 23:08 <hiaselhans> cedk: If(Eval('total_amount', None) == None, True, Bool(Eval('total_amount', 0) > 3000))) works for me...
2015-02-09 23:08 <cedk> hiaselhans: yes both statement must have the same type
2015-02-09 23:08 <hiaselhans> cedk: just that it does require to have the right defaults wasnt quite straightforward to me...
2015-02-09 23:09 <hiaselhans> cedk: thanks, now i can throw away the silly field...
2015-02-09 23:10 <hiaselhans> cedk: however the mistake was that i thought the default value to kick in when the field doesnt evaluate towards anything...
2015-02-09 23:12 <hiaselhans> cedk: hmm however, this still doesnt function somehow...
2015-02-09 23:14 <hiaselhans> cedk: it does still try to convert the second eval into a float (which is None) even though the loop wouldnt require to...
2015-02-09 23:43 -!- plantian(~ian@174-134-217-28.res.bhn.net) has joined #tryton
2015-02-09 23:43 <cedk> hiaselhans: are you sure to have clean the cache of the client?
2015-02-09 23:51 <hiaselhans> yep, after i restarted the client it did not work...
2015-02-09 23:51 <hiaselhans> cedk: pretty sure the above condition does not work...

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