IRC logs of #tryton for Wednesday, 2017-07-05

chat.freenode.net #tryton log beginning Wed Jul 5 00:00:01 CEST 2017
2017-07-05 00:03 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton
2017-07-05 00:14 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton
2017-07-05 00:45 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-07-05 01:02 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-07-05 01:03 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton
2017-07-05 01:44 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton
2017-07-05 01:53 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton
2017-07-05 02:37 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton
2017-07-05 02:49 -!- thaneor(~ldlc6@r179-25-100-172.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-07-05 02:49 -!- csotelo(~csotelo@2001:1388:49c7:2502:8abb:2393:b42f:eb9b) has joined #tryton
2017-07-05 02:59 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton
2017-07-05 03:01 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton
2017-07-05 03:36 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton
2017-07-05 04:29 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton
2017-07-05 07:55 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-07-05 08:02 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-07-05 08:24 -!- rpit(~rpit@aftr-37-24-144-89.unity-media.net) has joined #tryton
2017-07-05 09:00 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2017-07-05 09:05 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-07-05 09:06 -!- rpit(~rpit@aftr-37-24-144-89.unity-media.net) has joined #tryton
2017-07-05 09:22 -!- cryptic(~cryptic@67-8-35-31.res.bhn.net) has joined #tryton
2017-07-05 09:30 -!- rpit(~rpit@2a02:908:e671:9f80:56ee:75ff:fe0d:d3c7) has joined #tryton
2017-07-05 10:24 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2017-07-05 11:40 -!- flachtassekasse(~flachtass@5.104.149.54) has joined #tryton
2017-07-05 11:55 <flachtassekasse> is there something else i need to allow, aside the key for the chronos app?. I got this Error: https://pastebin.com/2R5m7BF3
2017-07-05 11:58 <cedk> flachtassekasse: you have to select your employee
2017-07-05 12:11 <flachtassekasse> cedk: the list in the chronos app is empty, but i have 4 in the datebase.
2017-07-05 12:16 <cedk> flachtassekasse: maybe not linked to your user
2017-07-05 12:16 <cedk> flachtassekasse: or you have tried to access the application before validating the key
2017-07-05 12:34 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton
2017-07-05 12:39 -!- mariomop(~quassel@181.110.164.227) has joined #tryton
2017-07-05 13:05 <alexbodn> good afternoon friends
2017-07-05 13:05 <alexbodn>
2017-07-05 13:16 <alexbodn> i created a record in a function / method, and updated (with write) a few fields. the record could be retrieved by search, with the correct fields values, after the function ends. in the same function i also appended an m2m record by orm, and set an m2o field to a retrieved record. these relation seem correct during the function, but vanish after the function ends. may i need some cache flush?
2017-07-05 13:18 <cedk> alexbodn: did you call .save ?
2017-07-05 13:20 <alexbodn> cedk, i didn't call save. is save a method of the created record, or of other object?
2017-07-05 13:25 <cedk> alexbodn: it is a method to store the modification made on an instance
2017-07-05 13:26 <alexbodn> cedk, user.groups.append only adds records to 'res.user-res.group'. will user.save() catch it?
2017-07-05 13:29 <cedk> alexbodn: depends if it is in proteus or with ORM
2017-07-05 13:30 <alexbodn> orrm, cedk
2017-07-05 13:40 -!- smarro(~sebastian@cust-213-46-13-200.trynet.com.ar) has joined #tryton
2017-07-05 14:02 -!- flachtassekasse(~flachtass@5.104.149.54) has joined #tryton
2017-07-05 14:13 -!- smarro(~sebastian@cust-102-46-13-200.trynet.com.ar) has joined #tryton
2017-07-05 14:40 <alexbodn> cedk, first of all, user.save worked ok, thanks.
2017-07-05 14:50 -!- thaneor1(~ldlc6@179.26.80.206) has joined #tryton
2017-07-05 14:55 <alexbodn> cedk, only one thing i seem to miss. how could an m2o field be assigned. User.language in this case
2017-07-05 14:59 <cedk> alexbodn: user.language = language
2017-07-05 15:03 <alexbodn> cedk, i tryed that. obviously my right language was not of the correct type. langs = self.Language.search([('code', '=', 'en_US')]); user.language = langs[0] if langs else None. the error: The value of the field "Language" on "User" is not valid according to its domain.
2017-07-05 15:03 <alexbodn> the search returned a correct list
2017-07-05 15:06 <cedk> alexbodn: only translatable language can be assigned
2017-07-05 15:07 <alexbodn> ok, i'll refine the search
2017-07-05 15:10 <alexbodn> cedk, no lang is translatable in my db
2017-07-05 15:11 <alexbodn> in ir_lang
2017-07-05 15:11 <alexbodn> i have build the db with en_US and fr_FR
2017-07-05 15:16 <alexbodn> even after updating the en_US record in ir_lang to translatable, the error message remained the same.
2017-07-05 15:19 <flachtassekasse> cedk: employee is linked to my user, and i validated before.
2017-07-05 15:20 -!- kstenger(~karla@r190-134-142-25.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-07-05 15:20 <cedk> flachtassekasse: in chronos settings
2017-07-05 15:29 <flachtassekasse> cedk: i create the application key with chronos, then i use the tryton client and validate the key. and then i try to select the employee in chronos, but the list is empty.
2017-07-05 15:30 <flachtassekasse> cedk: the user is linked to the employee.
2017-07-05 15:30 -!- rmu(~robert@cpe90-146-69-94.liwest.at) has joined #tryton
2017-07-05 15:33 <rmu> is there some example of the syntax of PYSON statements in the states attribute in form elements of views
2017-07-05 15:34 <rmu> something like states="{'invisible': Eval('type').in_(['service'])}" does not work any more
2017-07-05 15:34 <flachtassekasse> cedk: a test with proteus: https://pastebin.com/yjyrZW4H
2017-07-05 15:37 <cedk> flachtassekasse: it could be a cache issue, it is 1 hour
2017-07-05 15:39 <cedk> rmu: you must use http://doc.tryton.org/4.4/trytond/doc/ref/models/models.html#trytond.model.ModelView.view_attributes
2017-07-05 15:40 <cedk> flachtassekasse: it may happen if you close the key management in chronos when the key was not yet validated
2017-07-05 15:45 <rmu> cedk: you mean like http://hg.tryton.org/modules/sale/file/tip/product.py#l91 ?
2017-07-05 15:46 <rmu> cedk: should i try and improve documentation. it seems the client expects some internal representation that is not for the user/developer to write
2017-07-05 15:49 <cedk> rmu: yes
2017-07-05 16:06 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-07-05 17:35 -!- kstenger(~karla@r190-134-142-25.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-07-05 17:44 -!- flachtassekasse(~flachtass@p5DD1973C.dip0.t-ipconnect.de) has joined #tryton
2017-07-05 17:58 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton
2017-07-05 18:05 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton
2017-07-05 18:21 -!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton
2017-07-05 18:24 -!- smarro(~sebastian@cust-138-45-13-200.trynet.com.ar) has joined #tryton
2017-07-05 19:09 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-07-05 19:46 -!- lukio(~lukio@iplan.gcoop.com.ar) has joined #tryton
2017-07-05 20:03 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-07-05 20:23 -!- udono1(~udono@078-058-210-188.ip-addr.inexio.net) has joined #tryton
2017-07-05 20:27 -!- udono(~udono@078-058-210-188.ip-addr.inexio.net) has joined #tryton
2017-07-05 20:37 -!- smarro(~sebastian@cust-162-46-13-200.trynet.com.ar) has joined #tryton
2017-07-05 20:59 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton
2017-07-05 21:12 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton
2017-07-05 21:38 -!- lukio(~lukio@iplan.gcoop.com.ar) has left #tryton
2017-07-05 22:00 -!- semarie(~semarie@unaffiliated/semarie) has joined #tryton
2017-07-05 22:40 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton
2017-07-05 23:14 -!- kstenger1(~karla@r190-134-49-98.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/!