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

chat.freenode.net #tryton log beginning Wed Dec 14 00:00:01 CET 2016
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:40
-!- silwol_(~silwol@80.66.37.182) has joined #tryton01:38
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton01:50
-!- kstenger1(~karla@r167-56-254-117.dialup.adsl.anteldata.net.uy) has joined #tryton02:16
-!- smarro(~sebastian@181.16.7.104) has joined #tryton02:35
-!- thaneor(~ldlc6@r167-56-170-157.dialup.adsl.anteldata.net.uy) has joined #tryton05:11
-!- csotelo(~csotelo@190.42.192.81) has joined #tryton05:41
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton07:21
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:18
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton08:20
-!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton08:32
-!- udono(~udono@tmo-109-112.customers.d1-online.com) has joined #tryton08:41
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:53
-!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton08:53
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton09:01
mrichezhi, 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(09:21
mrichezAttributeError: 'NoneType' object has no attribute 'get'09:21
pokolimrichez: i think it is http://hg.tryton.org/tryton/rev/95ea580f96a309:29
pokolimrichez: so you should reopen the issue with the steps to reproduce it09:29
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton09:30
mrichezpokoli: no particular step, when i try to open a menu entry (purchase, ...) i get this error09:43
notizblockI 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.09:46
cedknotizblock: https://discuss.tryton.org/t/migration-from-4-0-to-4-2/16109:48
cedkmrichez: please put the traceback on the issue09:48
notizblockcedk: I thought this only applies to module translations?09:49
cedknotizblock: it is for all translations09:49
notizblockcedk: ok, thx for the clarification10:01
mrichezcedk: done. and patch : https://tryton-rietveld.appspot.com/3453100210:04
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:39
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton10:40
-!- mariomop(~quassel@host1.190-226-23.telecom.net.ar) has joined #tryton12:08
-!- csotelo(~csotelo@190.42.192.81) has joined #tryton12:17
-!- smarro(~sebastian@181.16.7.104) has joined #tryton13:13
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton13:16
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton13:33
-!- Doflamingo(d9a2c88d@gateway/web/cgi-irc/kiwiirc.com/ip.217.162.200.141) has joined #tryton13:47
DoflamingoHello there. I'm searching for an up-to-date installation manual for Trytond with sao on ubuntu xenial13:56
DoflamingoI have tried the pip installation for trytond... it seems to be running... trytond --version gives out  4.2.013:58
Doflamingobut i can not find the trytond.conf file13:59
-!- mamcode(~mamcode@190-198-117-74.dyn.dsl.cantv.net) has joined #tryton14:41
notizblockDoflamingo: you need to create it yourself and point trytond to it: trytond --config /path/to/config15:13
-!- Doflamingo(d9a2c88d@gateway/web/cgi-irc/kiwiirc.com/ip.217.162.200.141) has joined #tryton15:17
DoflamingoNotizblock: thank you. I actually found /etc/tryton/trytond.conf. I assume it should be pointed at properly15:18
DoflamingoI 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-ubuntu15:19
Doflamingo*stackoverflow15:19
Doflamingowould really appreciate any Inputs :D15:20
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton15:20
pokoliDoflamingo: How you installed tryton as a service?15:26
pokoliDoflamingo: if you install using pip it does not get started as service, so I imagine you have another tryton installation15:27
pokoliDoflamingo: running trytond -c <config_file> should run the server15:27
pokoliDoflamingo: but before conecting you should create a database and initialize it15:27
pokoliDoflamingo: 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-server15:28
notizblockit 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)15:28
pokolinotizblock: Your user must be on the product administration group in order to create/delete/edit products15:29
notizblockpokoli: the user has "product administration" privileges15:30
notizblockin <4.2 this worked flawlessly15:30
pokolinotizblock: mmmm... the issue is with ir.translation, so I imagine is a bug, let me test15:31
notizblockpokoli: thx15:32
pokolinotizblock: i can reproduce it, so you should open a bug report15:33
notizblockpokoli: OK, on it15:35
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton15:38
pokolinotizblock: I have the fix, but I can not understand on which changeset it was introduced15:39
notizblockpokoli: https://bugs.tryton.org/issue611515:41
notizblockpokoli: now that was quick!15:41
pokolinotizblock: https://tryton-rietveld.appspot.com/3454100215:41
notizblockpokoli: let me test15:44
Doflamingopokoli: the installation as a service may have happened when I used "sudo apt install tryton-modules-all"15:50
Doflamingopokoli: let me reset my VM, I'll check out where it came from.15:51
Doflamingopokoli: according to the config file, it is using a sqlite config when there is nothing specified15:51
Doflamingopokoli: wouldn't that suffice for testing purposes?15:52
pokoliDoflamingo: yes, using apt will install the service, but then you have two trytond instances with diferent versions15:52
pokoliDoflamingo: i recomend ussing only one15:52
Doflamingoah... got it15:52
pokoliDoflamingo: yes, sqlite is enough for testing purposes, but you should create the database also for sqlite15:53
Doflamingothank you... I'll try it out15:53
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton15:54
notizblockpokoli: duplicating works now but editing the product yields the same error message15:54
pokolinotizblock: editing the product translation?16:00
notizblockpokoli: yes, for all products.16:02
pokolinotizblock: I'm trying to understand on which changeset it was introduced :$16:06
-!- kstenger(~karla@r190-133-237-10.dialup.adsl.anteldata.net.uy) has joined #tryton16:31
pokolinotizblock: i updated the patch with the proper fix16:34
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton16:36
-!- smarro(~sebastian@181.16.7.104) has joined #tryton16:41
notizblockpokoli: works here, thx!16:51
-!- thaneor1(~ldlc6@179.26.133.208) has joined #tryton17:12
kstengerI'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?17:16
-!- udono1(~udono@tmo-111-181.customers.d1-online.com) has joined #tryton17:22
pokolicedk: is @with_transaction(context={'_check_access': True}) enought to check access on tests? i can not reproduce the issue on the tests17:30
pokolikstenger: drone run this code correctly: https://drone.tryton.org/trypod.tryton.org/tryton/modules.party/4.2/706751992f885b106260247c42c4d2ef3246fd6417:32
pokolikstenger: btw, how do you run the run-test.py ?17:32
kstengerpokoli: 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.17:36
cedkpokoli: yes but with a user without the access17:39
pokolikstenger: and it worked with previous versions? I have never done something like this17:45
kstengerpokoli: 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?17:45
pokolikstenger: i usualy do DB_NAME=':memory:' TRYTOND_CONFIG= python setup.py test17:46
pokolikstenger: 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 path17:47
pokolikstenger: I usually use: python setup.py develop on trytond folder to add it to the correct path and get all the dependencies17:48
pokolicedk: thanks, i manage to reproduce it17:49
-!- Doflamingo(d9a2c88d@gateway/web/cgi-irc/kiwiirc.com/ip.217.162.200.141) has joined #tryton17:50
kstengerpokoli: I can't find setup.py within the virtualenv17:53
kstengersheesh... it was easier when I had the sources directly...17:54
pokolikstenger: thereis one setup.py on each module (and trytond folder). So you should execute the one in the module you want to run17:54
pokolikstenger: because tests are expected to be run from sources :)17:55
kstengerpokoli: 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 wrong17:56
kstengerok, thanks for the hint pokoli!17:57
pokolikstenger: you can install tryton+standar modules + custom modules in a virtualenv17:58
pokolikstenger: but then you can not run the test for the dependencies, only from the ones you have the source there17:58
kstengerpokoli: oh, so you say I should be able to run it for my own module anyway with this setup?17:59
pokolikstenger: yes, you can run the test of your module using DB_NAME=':memory:' TRYTOND_CONFIG= python setup.py test18:00
pokolikstenger: from the root of your module18:00
kstengerpokoli: oh great, that's what I needed :-)18:00
kstengerpokoli: I assumed that since both my module and party were giving same traceback, there was another issue, but it was just the wrong command18:01
pokolikstenger: sorry but I have to go now, see you18:02
kstengerpokoli: sure, thanks18:03
-!- smarro(~sebastian@181.47.250.180) has joined #tryton18:19
-!- mamcode(~mamcode@190-204-38-187.dyn.dsl.cantv.net) has joined #tryton18:22
-!- JanGB(~jan@x2f7fdf9.dyn.telefonica.de) has joined #tryton18:41
-!- JanGB(~jan@x2f7fdf9.dyn.telefonica.de) has joined #tryton18:45
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton18:59
-!- yangoon(~mathiasb@93.245.104.138) has joined #tryton19:00
-!- JanGB(~jan@x2f7fdf9.dyn.telefonica.de) has joined #tryton19:11
-!- smarro(~sebastian@186.137.79.25) has joined #tryton19:14
kstengerfor the record, my problem above was not fully solved until proteus was updated to 4.2 version20:08
-!- smarro(~sebastian@181.16.7.104) has joined #tryton21:37
-!- Doflamingo(d9a2c88d@gateway/web/cgi-irc/kiwiirc.com/ip.217.162.200.141) has joined #tryton21:48
-!- mariomop(~quassel@host1.190-226-23.telecom.net.ar) has joined #tryton22:01
-!- smarro(~sebastian@181.16.7.104) has joined #tryton22:23
-!- mamcode_(~mamcode@190-204-38-187.dyn.dsl.cantv.net) has joined #tryton22:30
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton22:37
-!- marc0s(~marcos@unaffiliated/marc0s) has joined #tryton22:58
-!- kstenger(~karla@r190-133-237-10.dialup.adsl.anteldata.net.uy) has joined #tryton23:00

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!