chat.freenode.net #tryton log beginning Sun Jul 2 00:00:01 CEST 2017 | ||
2017-07-02 02:18 -!- kstenger1(~karla@r190-133-91-28.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2017-07-02 02:35 -!- thaneor(~ldlc6@179.26.15.97) has joined #tryton | ||
2017-07-02 02:54 -!- irclog(~irclog@moretus.b2ck.com) has joined #tryton | ||
2017-07-02 03:06 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-07-02 04:39 -!- vbastos(~vbastos@san1823193.lnk.telstra.net) has joined #tryton | ||
2017-07-02 10:21 -!- cryptic(~cryptic@67-8-35-31.res.bhn.net) has joined #tryton | ||
2017-07-02 10:31 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-07-02 12:06 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2017-07-02 12:42 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-07-02 14:38 -!- thaneor1(~ldlc6@r179-25-81-97.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2017-07-02 16:00 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2017-07-02 16:06 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2017-07-02 16:07 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2017-07-02 16:14 <alexbodn> hello friends. | ||
2017-07-02 16:33 <alexbodn> i'm trying to add a strict sequence, it gets added, but in the final check, the company is not being detected. it's being tested as ((company is null) or company is null)). instinctively, i have manually set the context to the transaction, but didn't guess well. any suggestion? | ||
2017-07-02 16:35 <cedk> alexbodn: add to what? | ||
2017-07-02 17:18 -!- smarro(~sebastian@181.16.7.104) has joined #tryton | ||
2017-07-02 17:31 <alexbodn> hello cedk | ||
2017-07-02 17:33 <alexbodn> .create a record in the sequences table. again, the record is being inserted, but when the insertion is being checked, the company field is being tested for null only. | ||
2017-07-02 17:37 <cedk> alexbodn: I do not understand | ||
2017-07-02 17:38 <cedk> alexbodn: do you set a value for the company field? | ||
2017-07-02 17:39 <alexbodn> i have set company in the transaction context | ||
2017-07-02 17:40 <cedk> alexbodn: why not fill the field? | ||
2017-07-02 17:40 <alexbodn> the company field is filled too | ||
2017-07-02 17:41 <cedk> alexbodn: so I do not know, I never have such issue | ||
2017-07-02 17:43 <alexbodn> cedk, the test of the record insertion is using the expression object, but it has only company is null options. as of now, i haven't understood how to make it test for a not null company | ||
2017-07-02 17:44 <cedk> alexbodn: I do not understand | ||
2017-07-02 17:47 <alexbodn> cedk: tables, expression = cls.search_domain( domain, active_test=False, tables=tables)) | ||
2017-07-02 17:47 <alexbodn> cedk: expression is being used later: cursor.execute(*from_.select(table.id, where=red_sql & expression)) | ||
2017-07-02 17:49 <alexbodn> cedk: whether the context has company or not, the expression has only company is null conditions. | ||
2017-07-02 17:50 <alexbodn> cedk: since the inserted company field is not null, the above select returns nothing | ||
2017-07-02 17:51 <cedk> alexbodn: I guess your user does not have the right to read for this company | ||
2017-07-02 17:53 <alexbodn> cedk: ok, indeed the exception is about access. where could i set the active user? | ||
2017-07-02 17:54 <cedk> alexbodn: on the transaction | ||
2017-07-02 17:57 <alexbodn> cedk, where could i set/retrieve the relevant user info? | ||
2017-07-02 17:59 <cedk> alexbodn: http://doc.tryton.org/4.4/trytond/doc/ref/transaction.html#trytond.transaction.Transaction.user | ||
2017-07-02 18:02 <alexbodn> thank you, cedk | ||
2017-07-02 18:04 <alexbodn> cedk, is this not the user parameter ti the transaction start? | ||
2017-07-02 18:18 <cedk> alexbodn: do not understand | ||
2017-07-02 18:24 <alexbodn> cedk, sorry, s/ti/to/ | ||
2017-07-02 18:24 <cedk> alexbodn: yes it is | ||
2017-07-02 18:24 <alexbodn> anyway, trans.user did the work | ||
2017-07-02 18:25 <alexbodn> cedk, thank you very much! | ||
2017-07-02 18:58 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-07-02 22:01 -!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | ||
2017-07-02 23:10 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-07-02 23:13 -!- csotelo(~csotelo@2001:1388:49c7:2502:8abb:2393:b42f:eb9b) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!