IRC logs of #tryton for Monday, 2017-03-20

chat.freenode.net #tryton log beginning Mon Mar 20 00:00:01 CET 2017
-!- sebd(~seb@aditu.ldd.fr) has joined #tryton01:29
-!- smarro(~sebastian@181.16.7.104) has joined #tryton01:39
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton07:52
-!- thaneor1(~ldlc6@r167-56-51-203.dialup.adsl.anteldata.net.uy) has joined #tryton07:55
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton08:20
-!- rpit(~rpit@aftr-37-24-150-29.unity-media.net) has joined #tryton08:24
-!- csotelo(~csotelo@2001:1388:49c5:5ec3:4c64:fdf9:8812:475d) has joined #tryton08:56
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:59
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:05
-!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton10:00
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton10:05
-!- JanGB(~jan@nat3.hmt-leipzig.de) has joined #tryton10:16
cedkpokoli: how did you manage https://bugs.tryton.org/issue547510:39
pokolicedk: using vim copy paste, not script10:42
cedkpokoli: but https://bugs.tryton.org/issue637610:42
pokolicedk: It seems i did not update the domain correctly :)10:44
pokolicedk: indeed the purchase changeset is right: http://hg.tryton.org/modules/purchase/rev/604605f42fe210:44
pokoliACTION is checking all the commits10:47
pokolicedk: indeed http://hg.tryton.org/modules/purchase_requisition/rev/0418e86aa5a9 contains a type also10:52
pokoliACTION is going to write a test case for action domains10:53
-!- csotelo(~csotelo@2001:1388:49c5:5ec3:4c64:fdf9:8812:475d) has joined #tryton10:55
g5pwcedk: I picked up Proteus pretty quickly and made an import script 😊 thanks!11:29
cedkg5pw: no better ETL than a Python script :-)11:30
g5pwyup 😊11:31
pokoliACTION is running the test agains all modules11:37
-!- mariomop(~quassel@181.90.125.226) has joined #tryton12:08
csoteloHello coders, any url sample where modules a clase is instanced on to save data? thanks a lot12:28
pokolicsotelo: http://pastebin.com/qTzUJTHz12:39
csotelopokoli, thanks a loty12:41
csoteloperfect! so easy!12:41
pokolicedk: https://bugs.tryton.org/issue637712:42
pokolicsotelo: and if you want to load an existing record just use Model(id) when instanciating the class12:42
pokolicsotelo: this will load the record with id (if exists)12:42
csotelogreat!! thanks a lot12:43
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton13:20
mrichezpokoli:  hi, so my issue is useless : https://tryton-rietveld.appspot.com/3322100313:20
mrichezpokoli: or duplicate :-)13:21
pokolimrichez: indeed it's incomplete as there is a typo on the other domain also13:26
mrichezpokoli: ok, i'll remove my issue13:27
pokolimrichez: or fix both domains if you want13:27
mrichezpokoli: as you want... it's to avoid having same issues13:29
pokolimrichez: indeed my issue is an addition to yours :)13:29
-!- csotelo(~csotelo@2001:1388:49c5:76c3:db58:142a:8752:28f3) has joined #tryton13:36
mrichezpokoli: :-) i'll update my issue14:20
mrichezpokoli: Done : https://tryton-rietveld.appspot.com/33221003/14:37
-!- smarro(~sebastian@181.16.7.104) has joined #tryton14:44
pokolimrichez: great, but title must be updated now :)15:13
mrichezpokoli: ok, i'm copying your title15:15
-!- kstenger(~karla@r186-54-17-229.dialup.adsl.anteldata.net.uy) has joined #tryton15:37
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton15:47
savumiesg5pw: can you share your script, please? =]16:15
savumiescedk: perhaps my question yesterday wasn't very clear. I created a paste with the code.17:09
savumieshttps://paste.unixcorn.org/?0e7abbda904fec0b#SY75UhsWJOdBzg0r8kTTbdWqOhUVc8LumE77Gd2drRo=17:09
cedksavumies: what question?17:10
savumiesin line 74 I want to select a participant of the activity.17:10
savumiesI'm creating a model with a many2many field to party. What do I need to do to be able to choose one of the records in the many2many from another model?17:10
savumiesthat. I don't know how to explain it better than this.17:11
cedksavumies: I can not really answer, you are just describing the behaviour of a Many2Many17:13
savumiescedk: I see. The problem is that I would expect that the code I wrote would work but when I run it the client gives an error:17:16
savumiesCalling method search_read on <class 'trytond.modules.activities.activities-party.participants'> is not allowed17:16
cedksavumies: it is because in line 74, you have a Many2One to this ModelSQL-only17:18
cedksavumies: so if that field is shown in the view, it fails17:19
savumiescedk: so how should it be instead? I've been through this for a few days now and didn't figure it out.17:21
cedksavumies: if you want to show a model, it must inherit from ModelView17:22
savumiescedk: oh just that. I knew it was something ordinary. Thanks.17:30
-!- kstenger1(~karla@r167-56-254-77.dialup.adsl.anteldata.net.uy) has joined #tryton18:02
-!- smarro(~sebastian@181.16.7.104) has joined #tryton18:23
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton18:39
-!- thaneor(~ldlc6@r179-25-71-211.dialup.adsl.anteldata.net.uy) has joined #tryton19:56
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton20:54
-!- plaes_(~plaes@plaes.org) has joined #tryton21:18
-!- xcodinas_(~xcodinas@5.134.115.102) has joined #tryton21:19
-!- notizblo1k(~notizbloc@nblock.org) has joined #tryton21:19
-!- kstenger1(~karla@r167-56-254-77.dialup.adsl.anteldata.net.uy) has joined #tryton21:20
-!- giesen_(~ggiesen@2001:19f0:0:1019:5400:ff:fe25:bda6) has joined #tryton21:23
-!- cryptic(~cryptic@67-8-35-31.res.bhn.net) has joined #tryton21:30
-!- jcm(~jcm@78.194.214.115) has joined #tryton23:07
-!- xcodinas(~xcodinas@5.134.115.102) has joined #tryton23:08

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