IRC logs of #tryton for Wednesday, 2019-10-09 #tryton log beginning Wed 09 Oct 2019 12:00:02 AM CEST
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:10
-!- thaneor1( has joined #tryton04:10
-!- yangoon1( has joined #tryton04:10
-!- springwurm(~Springwur@ has joined #tryton07:10
-!- mrichez( has joined #tryton08:10
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton08:10
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:10
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton09:10
mrichezhi, how do you deal with typeerror on sorted function ? i've added a custom field( one2many not mandatory) on a model . I've added this field as key on sorted method. When having lines with an empty value and not empty value for this field, i got an error: '<' not supported between instances of "mycustommodel" and NoneType. Thanks for help!11:10
cedkmrichez: you need to replace the None value by something in your key function11:10
mrichezcedk: i try with '' or 0 ... but it's not working because not the same type.... i saw for datetime, there's a datetime.min but in my case it's a field one2many from a custom model...11:10
cedkmrichez: you are sorting using a tuples? That's very strange11:10
cedkmrichez: but then you can use () as default value11:10
mrichezcedk: yes it's tuples, i'm extending sorting key on purchase_requests11:10
cedkmrichez: be also careful that None in the tuple will break the sorting12:10
cedkACTION do not like the Python 3 exception against None comparison12:10
mrichezcedk: not work with None... here's my code:
cedkmrichez: I would just not put the key with None value12:10
mrichezcedk: but how to sort with this key then ? i use it to group my purchase requests12:10
cedkmrichez: I do not see the problem12:10
cedkmrichez: the requests will be sorted12:10
mrichezin purchase_requests it's the same key used for sorted and groupby functions... so if i remove the key with None value, it will not be use in the groupby function ?12:10
cedkmrichez: and what will be the problem?12:10
cedkmrichez: the value is None for those removed keys12:10
mrichezcedk: not always None... my custom field could have a value12:10
cedkmrichez: but you remove only when it is None12:10
mrichezcedk: ok12:10
mrichezcedk: Thanks! working :-)12:10
-!- thaneor( has joined #tryton12:10
-!- nicoe( has joined #tryton12:10
-!- rpit( has joined #tryton13:10
-!- springwurm(~Springwur@ has joined #tryton13:10
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/ has joined #tryton14:10
-!- nminix( has joined #tryton15:10
nminixHello there, I'm in the process of setting up Tryton as a test in a Ubuntu 16.04 VM. I configured /etc/tryton/trytond.conf and ran # trytond -c /etc/tryton/trytond.conf -v . I then launch the Client on the same machine, and create a new profile connecting to localhost:8000. When I craete a new database I receive the error "Sorry, wrong password for the Tryton server." I'm using the password "admin" as I supplied in trytond.conf as "super_15:10
nminixpwd = admin". Any help is greatly appreciated.15:10
cedknminix: trytond.conf does not store password since many years15:10
cedknminix: database initialization is done with trytond-admin15:10
nminixI followed that first, but my installation doesn't have trytond-admin. # find / -iname trytond-admin doesn't return any results. I installed from the xenial repos.15:10
cedknminix: what version is it?15:10
nminixtryton-server/xenial, 3.8.3-115:10
cedknminix: 3.8 is no more supported since 2.5 years15:10
cedknminix: you should use a supported version like 5.0 which is LTS15:10
nminixI'm going via the `python install` on 5.0.0 now15:10
cedknminix: an easy way to try Tryton is to use the Docker image:
-!- Springwurm_(~Springwur@ has joined #tryton15:10
-!- nminix__( has joined #tryton15:10
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton15:10
-!- plaes_( has joined #tryton15:10
-!- thaneor(~lenovo3@ has joined #tryton17:10
-!- thaneor1( has joined #tryton17:10
-!- thaneor( has joined #tryton17:10
-!- plaes( has joined #tryton18:10
-!- plaes(~plaes@unaffiliated/amd) has joined #tryton18:10
-!- rpit( has joined #tryton22:10
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:10

Generated by 2.16.0 by Marius Gedminas - find it at!