IRC logs of #tryton for Wednesday, 2016-12-14

chat.freenode.net #tryton log beginning Wed Dec 14 00:00:01 CET 2016
2016-12-14 00:40 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-14 01:38 -!- silwol_(~silwol@80.66.37.182) has joined #tryton
2016-12-14 01:50 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-12-14 02:16 -!- kstenger1(~karla@r167-56-254-117.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-14 02:35 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-14 05:11 -!- thaneor(~ldlc6@r167-56-170-157.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-14 05:41 -!- csotelo(~csotelo@190.42.192.81) has joined #tryton
2016-12-14 07:21 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2016-12-14 08:18 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-14 08:20 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2016-12-14 08:32 -!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-12-14 08:41 -!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton
2016-12-14 08:53 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-12-14 08:53 -!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2016-12-14 09:01 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-12-14 09:21 <mrichez> hi, don't know if it is linked to issue 25841002, but i just update my repository, i get this error : self.__date_format = context.get(
2016-12-14 09:21 <mrichez> AttributeError: 'NoneType' object has no attribute 'get'
2016-12-14 09:29 <pokoli> mrichez: i think it is http://hg.tryton.org/tryton/rev/95ea580f96a3
2016-12-14 09:29 <pokoli> mrichez: so you should reopen the issue with the steps to reproduce it
2016-12-14 09:30 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2016-12-14 09:43 <mrichez> pokoli: no particular step, when i try to open a menu entry (purchase, ...) i get this error
2016-12-14 09:46 <notizblock> I noticed the following after the upgrade from 4.0 to 4.2: the translations of user-editable data is overwritten. For example: Most of our products have a german and an english translation of the name. After the upgrade the values are the same. There must be something that I completely missed.
2016-12-14 09:48 <cedk> notizblock: https://discuss.tryton.org/t/migration-from-4-0-to-4-2/161
2016-12-14 09:48 <cedk> mrichez: please put the traceback on the issue
2016-12-14 09:49 <notizblock> cedk: I thought this only applies to module translations?
2016-12-14 09:49 <cedk> notizblock: it is for all translations
2016-12-14 10:01 <notizblock> cedk: ok, thx for the clarification
2016-12-14 10:04 <mrichez> cedk: done. and patch : https://tryton-rietveld.appspot.com/34531002
2016-12-14 10:39 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2016-12-14 10:40 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2016-12-14 12:08 -!- mariomop(~quassel@host1.190-226-23.telecom.net.ar) has joined #tryton
2016-12-14 12:17 -!- csotelo(~csotelo@190.42.192.81) has joined #tryton
2016-12-14 13:13 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-14 13:16 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-12-14 13:33 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-12-14 13:47 -!- Doflamingo(d9a2c88d@gateway/web/cgi-irc/kiwiirc.com/ip.217.162.200.141) has joined #tryton
2016-12-14 13:56 <Doflamingo> Hello there. I'm searching for an up-to-date installation manual for Trytond with sao on ubuntu xenial
2016-12-14 13:58 <Doflamingo> I have tried the pip installation for trytond... it seems to be running... trytond --version gives out 4.2.0
2016-12-14 13:59 <Doflamingo> but i can not find the trytond.conf file
2016-12-14 14:41 -!- mamcode(~mamcode@190-198-117-74.dyn.dsl.cantv.net) has joined #tryton
2016-12-14 15:13 <notizblock> Doflamingo: you need to create it yourself and point trytond to it: trytond --config /path/to/config
2016-12-14 15:17 -!- Doflamingo(d9a2c88d@gateway/web/cgi-irc/kiwiirc.com/ip.217.162.200.141) has joined #tryton
2016-12-14 15:18 <Doflamingo> Notizblock: thank you. I actually found /etc/tryton/trytond.conf. I assume it should be pointed at properly
2016-12-14 15:19 <Doflamingo> I wrote a post at stackexchange, since I think this is too much spam for irc: http://stackoverflow.com/questions/41144739/tryton-erp-installation-with-sao-on-ubuntu
2016-12-14 15:19 <Doflamingo> *stackoverflow
2016-12-14 15:20 <Doflamingo> would really appreciate any Inputs :D
2016-12-14 15:20 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2016-12-14 15:26 <pokoli> Doflamingo: How you installed tryton as a service?
2016-12-14 15:27 <pokoli> Doflamingo: if you install using pip it does not get started as service, so I imagine you have another tryton installation
2016-12-14 15:27 <pokoli> Doflamingo: running trytond -c <config_file> should run the server
2016-12-14 15:27 <pokoli> Doflamingo: but before conecting you should create a database and initialize it
2016-12-14 15:28 <pokoli> Doflamingo: see http://doc.tryton.org/4.2/trytond/doc/topics/setup_database.html#topics-setup-database and http://doc.tryton.org/4.2/trytond/doc/topics/start_server.html#topics-start-server
2016-12-14 15:28 <notizblock> it seems that the access permission "administration" is required to duplicate a product on 4.2. Error message when a user does not have "administration" permission: You can not write in this document! (ir.translation)
2016-12-14 15:29 <pokoli> notizblock: Your user must be on the product administration group in order to create/delete/edit products
2016-12-14 15:30 <notizblock> pokoli: the user has "product administration" privileges
2016-12-14 15:30 <notizblock> in <4.2 this worked flawlessly
2016-12-14 15:31 <pokoli> notizblock: mmmm... the issue is with ir.translation, so I imagine is a bug, let me test
2016-12-14 15:32 <notizblock> pokoli: thx
2016-12-14 15:33 <pokoli> notizblock: i can reproduce it, so you should open a bug report
2016-12-14 15:35 <notizblock> pokoli: OK, on it
2016-12-14 15:38 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-12-14 15:39 <pokoli> notizblock: I have the fix, but I can not understand on which changeset it was introduced
2016-12-14 15:41 <notizblock> pokoli: https://bugs.tryton.org/issue6115
2016-12-14 15:41 <notizblock> pokoli: now that was quick!
2016-12-14 15:41 <pokoli> notizblock: https://tryton-rietveld.appspot.com/34541002
2016-12-14 15:44 <notizblock> pokoli: let me test
2016-12-14 15:50 <Doflamingo> pokoli: the installation as a service may have happened when I used "sudo apt install tryton-modules-all"
2016-12-14 15:51 <Doflamingo> pokoli: let me reset my VM, I'll check out where it came from.
2016-12-14 15:51 <Doflamingo> pokoli: according to the config file, it is using a sqlite config when there is nothing specified
2016-12-14 15:52 <Doflamingo> pokoli: wouldn't that suffice for testing purposes?
2016-12-14 15:52 <pokoli> Doflamingo: yes, using apt will install the service, but then you have two trytond instances with diferent versions
2016-12-14 15:52 <pokoli> Doflamingo: i recomend ussing only one
2016-12-14 15:52 <Doflamingo> ah... got it
2016-12-14 15:53 <pokoli> Doflamingo: yes, sqlite is enough for testing purposes, but you should create the database also for sqlite
2016-12-14 15:53 <Doflamingo> thank you... I'll try it out
2016-12-14 15:54 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2016-12-14 15:54 <notizblock> pokoli: duplicating works now but editing the product yields the same error message
2016-12-14 16:00 <pokoli> notizblock: editing the product translation?
2016-12-14 16:02 <notizblock> pokoli: yes, for all products.
2016-12-14 16:06 <pokoli> notizblock: I'm trying to understand on which changeset it was introduced :$
2016-12-14 16:31 -!- kstenger(~karla@r190-133-237-10.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-12-14 16:34 <pokoli> notizblock: i updated the patch with the proper fix
2016-12-14 16:36 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2016-12-14 16:41 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-14 16:51 <notizblock> pokoli: works here, thx!
2016-12-14 17:12 -!- thaneor1(~ldlc6@179.26.133.208) has joined #tryton
2016-12-14 17:16 <kstenger> I'm having troubles to run run-tests.py on a specific module (for example: -m party) within a virtualenv where I pip installed trytond 4.2. here is the traceback: http://pastebin.com/6hNMMHj3 I've tried several values for PYTHONPATH, and standing on different directories, but none of this helped. Is this a bug or am I not finding the right way?
2016-12-14 17:22 -!- udono1(~udono@tmo-111-181.customers.d1-online.com) has joined #tryton
2016-12-14 17:30 <pokoli> cedk: is @with_transaction(context={'_check_access': True}) enought to check access on tests? i can not reproduce the issue on the tests
2016-12-14 17:32 <pokoli> kstenger: drone run this code correctly: https://drone.tryton.org/trypod.tryton.org/tryton/modules.party/4.2/706751992f885b106260247c42c4d2ef3246fd64
2016-12-14 17:32 <pokoli> kstenger: btw, how do you run the run-test.py ?
2016-12-14 17:36 <kstenger> pokoli: I gave the script execution permission and call it with full path, I also tried Placing "PYTHONPATH= " ahead of the script. And nothing changed no matter what value I give to PYTHONPATH.
2016-12-14 17:39 <cedk> pokoli: yes but with a user without the access
2016-12-14 17:45 <pokoli> kstenger: and it worked with previous versions? I have never done something like this
2016-12-14 17:45 <kstenger> pokoli: it used to work.... but at that time I was not using a virtualenv... so maybe that's it... anyways, how should I run it?
2016-12-14 17:46 <pokoli> kstenger: i usualy do DB_NAME=':memory:' TRYTOND_CONFIG= python setup.py test
2016-12-14 17:47 <pokoli> kstenger: but this will install the packages, if you have the development sources you can call the run-test.py the only thing requires is to have trytond on the path
2016-12-14 17:48 <pokoli> kstenger: I usually use: python setup.py develop on trytond folder to add it to the correct path and get all the dependencies
2016-12-14 17:49 <pokoli> cedk: thanks, i manage to reproduce it
2016-12-14 17:50 -!- Doflamingo(d9a2c88d@gateway/web/cgi-irc/kiwiirc.com/ip.217.162.200.141) has joined #tryton
2016-12-14 17:53 <kstenger> pokoli: I can't find setup.py within the virtualenv
2016-12-14 17:54 <kstenger> sheesh... it was easier when I had the sources directly...
2016-12-14 17:54 <pokoli> kstenger: thereis one setup.py on each module (and trytond folder). So you should execute the one in the module you want to run
2016-12-14 17:55 <pokoli> kstenger: because tests are expected to be run from sources :)
2016-12-14 17:56 <kstenger> pokoli: yeah, I realize that now, heh, I thought I could mix a pip installed tryton+standard modules with a self developed module all in one virtualenv, but I obviously was wrong
2016-12-14 17:57 <kstenger> ok, thanks for the hint pokoli!
2016-12-14 17:58 <pokoli> kstenger: you can install tryton+standar modules + custom modules in a virtualenv
2016-12-14 17:58 <pokoli> kstenger: but then you can not run the test for the dependencies, only from the ones you have the source there
2016-12-14 17:59 <kstenger> pokoli: oh, so you say I should be able to run it for my own module anyway with this setup?
2016-12-14 18:00 <pokoli> kstenger: yes, you can run the test of your module using DB_NAME=':memory:' TRYTOND_CONFIG= python setup.py test
2016-12-14 18:00 <pokoli> kstenger: from the root of your module
2016-12-14 18:00 <kstenger> pokoli: oh great, that's what I needed :-)
2016-12-14 18:01 <kstenger> pokoli: I assumed that since both my module and party were giving same traceback, there was another issue, but it was just the wrong command
2016-12-14 18:02 <pokoli> kstenger: sorry but I have to go now, see you
2016-12-14 18:03 <kstenger> pokoli: sure, thanks
2016-12-14 18:19 -!- smarro(~sebastian@181.47.250.180) has joined #tryton
2016-12-14 18:22 -!- mamcode(~mamcode@190-204-38-187.dyn.dsl.cantv.net) has joined #tryton
2016-12-14 18:41 -!- JanGB(~jan@x2f7fdf9.dyn.telefonica.de) has joined #tryton
2016-12-14 18:45 -!- JanGB(~jan@x2f7fdf9.dyn.telefonica.de) has joined #tryton
2016-12-14 18:59 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-12-14 19:00 -!- yangoon(~mathiasb@93.245.104.138) has joined #tryton
2016-12-14 19:11 -!- JanGB(~jan@x2f7fdf9.dyn.telefonica.de) has joined #tryton
2016-12-14 19:14 -!- smarro(~sebastian@186.137.79.25) has joined #tryton
2016-12-14 20:08 <kstenger> for the record, my problem above was not fully solved until proteus was updated to 4.2 version
2016-12-14 21:37 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-14 21:48 -!- Doflamingo(d9a2c88d@gateway/web/cgi-irc/kiwiirc.com/ip.217.162.200.141) has joined #tryton
2016-12-14 22:01 -!- mariomop(~quassel@host1.190-226-23.telecom.net.ar) has joined #tryton
2016-12-14 22:23 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-12-14 22:30 -!- mamcode_(~mamcode@190-204-38-187.dyn.dsl.cantv.net) has joined #tryton
2016-12-14 22:37 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2016-12-14 22:58 -!- marc0s(~marcos@unaffiliated/marc0s) has joined #tryton
2016-12-14 23:00 -!- kstenger(~karla@r190-133-237-10.dialup.adsl.anteldata.net.uy) has joined #tryton

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