IRC logs of #tryton for Wednesday, 2016-07-06

chat.freenode.net #tryton log beginning Wed Jul 6 00:00:01 CEST 2016
2016-07-06 01:48 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-07-06 03:30 -!- kstenger(~karla@r190-133-123-176.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-07-06 08:01 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-07-06 08:35 -!- prayashm(~prayashm@45.251.36.7) has joined #tryton
2016-07-06 08:35 -!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton
2016-07-06 08:37 -!- udono(~udono@ip-37-201-245-214.hsi13.unitymediagroup.de) has joined #tryton
2016-07-06 08:48 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-07-06 09:00 -!- zmijunkie(~Adium@i59F5E54E.versanet.de) has joined #tryton
2016-07-06 09:04 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-07-06 09:09 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-07-06 09:18 -!- aasnan(~angel@48.red-83-45-194.dynamicip.rima-tde.net) has joined #tryton
2016-07-06 09:21 -!- yangoon_rm(~mathiasb@137.158.22.107) has joined #tryton
2016-07-06 09:29 <cedk> pokoli: do you plan to complete: https://tryton-rietveld.appspot.com/13931002/
2016-07-06 09:31 <pokoli> cedk: it will be great, but I don't know when I will work on it
2016-07-06 09:33 <cedk> pokoli: can I do it?
2016-07-06 09:34 <pokoli> cedk: of course, I will add you as collaborator
2016-07-06 09:37 <pokoli> cedk: done, do you what to work also on dependent reviews?
2016-07-06 09:37 <cedk> pokoli: yes
2016-07-06 09:51 -!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton
2016-07-06 09:53 <pokoli> cedk: done on all the reviews, let me know if you need anything else
2016-07-06 09:56 <cedk> pokoli: OK thx
2016-07-06 10:08 <g5pw> hello everyone! we're thinking about using tryton in our local hackerspace and I have a couple of questions:
2016-07-06 10:09 <g5pw> 1) how does one activate the web gui?
2016-07-06 10:09 <g5pw> 2) I saw a ticket about recurring billing, we would need that, how could one implement that?
2016-07-06 10:15 <pokoli> g5pw: about web gui you have to install tryton-sao for your version https://www.npmjs.com/package/tryton-sao
2016-07-06 10:15 <g5pw> aha, thanks pokoli!
2016-07-06 10:20 -!- nicoe(~nicoe@2a02:a03f:3025:2800:ee55:f9ff:fe7b:f7ac) has joined #tryton
2016-07-06 10:21 <pokoli> g5pw: about contrat you can use a third party module: https://bitbucket.org/nantic/trytond-contract
2016-07-06 10:36 <pokoli> any tip in order to fix https://travis-ci.org/pokoli/trytond-activity/jobs/142689595 ?
2016-07-06 10:36 <pokoli> here is the code https://github.com/pokoli/trytond-activity/blob/master/party.py
2016-07-06 10:43 <cedk> pokoli: are you sure you run 2to3?
2016-07-06 10:44 <g5pw> oh, that's the updated version? awesome, thanks pokoli
2016-07-06 10:46 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-07-06 10:47 <pokoli> cedk: mmm, that fixed the issue. Thanks!
2016-07-06 10:48 <pokoli> g5pw: sorry but I don't understand your question
2016-07-06 10:49 <g5pw> pokoli I saw the tryton_contract module (the url on ticket https://bugs.tryton.org/issue3695) but that was for tryton 2.8, the one you linked looks compatible with the 4.0
2016-07-06 10:50 <cedk> pokoli: in python3 metaclass are defined: class C(metaclass=PoolMeta):
2016-07-06 10:52 <cedk> g5pw: there is also the Move Templates now which allows to create accounting moves quickly
2016-07-06 10:53 <g5pw> cedk thanks, will keep that in mind!
2016-07-06 10:54 <pokoli> g5pw: it looks compatible, but contact the author if you have some troubles
2016-07-06 10:55 <g5pw> it looks like it requires tryton 4.1 development :/
2016-07-06 10:55 <pokoli> g5pw: because you used the default branch, use 4.0 branch in order to work with 4.0 trytond version :)
2016-07-06 10:55 <g5pw> I'll talk to the author, thanks again for the help pokoli :)
2016-07-06 12:03 <mrichez> hi, can someone help me about this: https://groups.google.com/forum/?#!topic/tryton/w9_5tH98-zA
2016-07-06 12:10 <cedk> mrichez: answered
2016-07-06 12:11 <g5pw> hey all, how can I create a party identifier type?
2016-07-06 12:13 <pokoli> g5pw: you should create a custom module that adds the new type in the type selection values
2016-07-06 12:13 <cedk> g5pw: you have to extend the party module and append new type to the method: PartyIdentifier.get_types
2016-07-06 12:15 <mrichez> cedk: thanks
2016-07-06 12:15 <g5pw> oh, I though it was easier, I might just as well use VAT (here in italy we use Fiscal Code for people, similar to SSN in USA)
2016-07-06 12:17 <cedk> g5pw: the Italian VAT is supported as standard VAT
2016-07-06 12:18 <cedk> g5pw: we use python-stdnum for validation and iva is an alias for vat
2016-07-06 12:19 <g5pw> cedk yeah, but "normal people" don't have a "Partita IVA" (which i think is the VAT), they have a "Codice Fiscale" which is a unique ID of the person
2016-07-06 12:21 <g5pw> "Codice Fiscale" is alphanumeric, btw
2016-07-06 12:21 <cedk> g5pw: I guess it is available also in stdnum/it/codicefiscale.py
2016-07-06 12:22 <g5pw> oh, cool!
2016-07-06 12:22 <cedk> g5pw: so the best is to create a module that add it
2016-07-06 12:22 <g5pw> ok! any guides on how to do that?
2016-07-06 12:22 <cedk> g5pw: but usually, business does not need such information
2016-07-06 12:23 <cedk> g5pw: there is http://downloads.tryton.org/TUL2014/crash-course.pdf
2016-07-06 12:24 <g5pw> yeah, we're not a "real business", we are a non-profit association, and we're required to have a "codice fiscale" for each member
2016-07-06 12:24 <g5pw> thanks cedk, i'll ho through that 😊
2016-07-06 12:27 <cedk> g5pw: it contains much more than needed to do the module but if you want to customize Tryton, it is the way to learn
2016-07-06 12:27 <g5pw> yep, that would be the end goal :)
2016-07-06 12:36 -!- mariomop(~quassel@181.92.6.139) has joined #tryton
2016-07-06 13:39 -!- Michael_(67fecb7c@gateway/web/freenode/ip.103.254.203.124) has joined #tryton
2016-07-06 13:45 <Michael_> hello
2016-07-06 13:47 <Michael_> I am getting some problem with Index
2016-07-06 13:49 <pokoli> hi Michael_, which Index are you refering to?
2016-07-06 13:59 <Michael_> actually I am using offset & limit to call API as page wise
2016-07-06 14:00 <Michael_> but sometime the index are changed from server side, so it stops working
2016-07-06 14:00 <Michael_> can you tell me how exactly get party list as per paging
2016-07-06 14:00 <pokoli> Michael_: so I imagine that there is someone that's creating new records in the server
2016-07-06 14:01 <Michael_> no, let's my limit is 2 so first it gives 2 records
2016-07-06 14:02 <Michael_> after sometimes that parties index are changed, so I will get only first 2 parties always
2016-07-06 14:02 <Michael_> if it seems complex & confusion, can you tell me how can I use paging for API?
2016-07-06 14:03 <cedk> Michael_: limit/offset is wrong for pagination: http://use-the-index-luke.com/sql/partial-results/fetch-next-page
2016-07-06 14:05 -!- udono(~udono@ip-37-201-245-214.hsi13.unitymediagroup.de) has joined #tryton
2016-07-06 14:06 <Michael_> how to use pagination for search_read?
2016-07-06 14:11 <Michael_> hi
2016-07-06 14:11 <Michael_> cedk, thanks for your answer but I am not getting you
2016-07-06 14:20 <pokoli> Michael_: still don't understand what's your problem
2016-07-06 14:21 <pokoli> Michael_: but you have to use the same parameters as in SQL
2016-07-06 14:21 <pokoli> Michael_: see http://www.petefreitag.com/item/451.cfm
2016-07-06 14:37 -!- shrox(shrox@nat/iiit/x-ieqsynvrnvmvwcif) has joined #tryton
2016-07-06 15:24 <g5pw> hey all! I installed trytond_contact, but i'm getting a "ValueError: can only parse strings" as soon as I try to open a contract menu. Am I missing something trivial or should I write to the author?
2016-07-06 15:33 -!- kstenger(~karla@r186-54-27-97.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-07-06 15:34 <pokoli> g5pw: this error is usually thrown when there is a view that is refering to a file which does not exists. So it seems an error on the module
2016-07-06 15:34 <pokoli> g5pw: BTW, how you installed the module?
2016-07-06 15:43 -!- perilla(~perilla@corp-190-57-169-210-cue.puntonet.ec) has left #tryton
2016-07-06 15:48 <g5pw> aha, I see
2016-07-06 15:48 <g5pw> I installed it via "python setup.py install"
2016-07-06 15:49 <g5pw> but I have it in a virtual envirinment
2016-07-06 15:58 <pokoli> g5pw: so it seems that there is a bug on the module that does not copy the view files when installing
2016-07-06 15:58 <pokoli> g5pw: BTW, you can extract directly the source in a contract folder of the modules dir and it should work
2016-07-06 15:58 <pokoli> g5pw: and you should contact the author to fix this issue
2016-07-06 15:59 <g5pw> ok, i'll investigate. At a first glance, it does not copy the correct files (there is no trytond/contract dir in site-packages)
2016-07-06 17:03 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-07-06 17:58 <g5pw> moved the dir, now it works, thanks again pokoli
2016-07-06 18:00 <pokoli> g5pw: I'm always happy to help :)
2016-07-06 18:44 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-07-06 20:13 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-07-06 20:57 -!- kstenger1(~karla@r186-48-240-107.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-07-06 21:11 -!- yangoon_rm(~mathiasb@137.158.23.210) has joined #tryton
2016-07-06 22:15 -!- yangoon_rm(~mathiasb@137.158.23.210) has joined #tryton
2016-07-06 22:19 -!- yangoon_rm1(~mathiasb@137.158.23.210) has joined #tryton
2016-07-06 23:12 -!- yangoon_rm(~mathiasb@137.158.23.210) has joined #tryton
2016-07-06 23:15 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton

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