IRC logs of #tryton for Sunday, 2017-07-02

chat.freenode.net #tryton log beginning Sun Jul 2 00:00:01 CEST 2017
-!- kstenger1(~karla@r190-133-91-28.dialup.adsl.anteldata.net.uy) has joined #tryton02:18
-!- thaneor(~ldlc6@179.26.15.97) has joined #tryton02:35
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton02:54
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton03:06
-!- vbastos(~vbastos@san1823193.lnk.telstra.net) has joined #tryton04:39
-!- cryptic(~cryptic@67-8-35-31.res.bhn.net) has joined #tryton10:21
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:31
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton12:06
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton12:42
-!- thaneor1(~ldlc6@r179-25-81-97.dialup.adsl.anteldata.net.uy) has joined #tryton14:38
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton16:00
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton16:06
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton16:07
alexbodnhello friends.16:14
alexbodni'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?16:33
cedkalexbodn: add to what?16:35
-!- smarro(~sebastian@181.16.7.104) has joined #tryton17:18
alexbodnhello cedk17:31
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.17:33
cedkalexbodn: I do not understand17:37
cedkalexbodn: do you set a value for the company field?17:38
alexbodni have set company in the transaction context17:39
cedkalexbodn: why not fill the field?17:40
alexbodnthe company field is filled too17:40
cedkalexbodn: so I do not know, I never have such issue17:41
alexbodncedk, 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 company17:43
cedkalexbodn: I do not understand17:44
alexbodncedk: tables, expression = cls.search_domain( domain, active_test=False, tables=tables))17:47
alexbodncedk: expression is being used later: cursor.execute(*from_.select(table.id, where=red_sql & expression))17:47
alexbodncedk: whether the context has company or not, the expression has only company is null conditions.17:49
alexbodncedk: since the inserted company field is not null, the above select returns nothing17:50
cedkalexbodn: I guess your user does not have the right to read for this company17:51
alexbodncedk: ok, indeed the exception is about access. where could i set the active user?17:53
cedkalexbodn: on the transaction17:54
alexbodncedk, where could i set/retrieve the relevant user info?17:57
cedkalexbodn: http://doc.tryton.org/4.4/trytond/doc/ref/transaction.html#trytond.transaction.Transaction.user17:59
alexbodnthank you, cedk18:02
alexbodncedk, is this not the user parameter ti the transaction start?18:04
cedkalexbodn: do not understand18:18
alexbodncedk, sorry, s/ti/to/18:24
cedkalexbodn: yes it is18:24
alexbodnanyway, trans.user did the work18:24
alexbodncedk, thank you very much!18:25
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton18:58
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:10
-!- csotelo(~csotelo@2001:1388:49c7:2502:8abb:2393:b42f:eb9b) has joined #tryton23:13

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