IRC logs of #tryton for Monday, 2015-04-20

chat.freenode.net #tryton log beginning Mon Apr 20 00:00:01 CEST 2015
-!- digitalsatori(~Thunderbi@114.92.206.226) has joined #tryton02:04
-!- digitalsatori(~Thunderbi@116.234.195.172) has joined #tryton03:10
-!- vairav(~vairav@c-24-130-116-187.hsd1.ca.comcast.net) has joined #tryton03:29
-!- digitalsatori1(~Thunderbi@116.234.195.172) has joined #tryton03:29
-!- mathesis(~ana@187.171.239.18) has joined #tryton03:48
-!- mathesis(~ana@187.212.218.91) has joined #tryton04:33
-!- mathesis(~ana@187.171.239.18) has joined #tryton04:52
-!- mathsniper(7a64f958@gateway/web/freenode/ip.122.100.249.88) has joined #tryton05:13
-!- mathesis(~ana@189.188.190.151) has joined #tryton06:13
-!- frispete_(~frispete@p54A90B94.dip0.t-ipconnect.de) has joined #tryton06:40
-!- vairav(~vairav@c-24-130-116-187.hsd1.ca.comcast.net) has joined #tryton06:43
-!- vairav(~vairav@c-24-130-116-187.hsd1.ca.comcast.net) has joined #tryton06:57
-!- digitalsatori(~Thunderbi@116.234.195.172) has joined #tryton06:59
-!- yangoon1(~mathiasb@p549F030A.dip0.t-ipconnect.de) has joined #tryton07:02
mathsniperI want to run python module test. I have set env DB_NAME=test but exception thrown, OperationalError: unable to open database file. What packages I miss or what steps needed?07:16
mathsniperthe python tryton module07:16
mathsnipertrytond07:16
mathsniper"trytond/backend/sqlite/database.py", line 225, in create07:19
-!- VaticanCameos(~pritishc@103.245.118.154) has joined #tryton08:04
-!- digitalsatori(~Thunderbi@116.234.195.172) has joined #tryton08:14
pokolimathsniper: if you're executing test on sqlite there is no need to specify DB_NAME as it will use the memory database08:34
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:48
-!- digitalsatori(~Thunderbi@116.234.195.172) has joined #tryton08:52
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:29
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:30
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:30
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:31
-!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton09:32
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton09:49
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton10:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:01
mathsniperWhen I execute 'python -m unintest test_party' It shows KeyError: DB_NAME10:17
mathsniperSo what is the proper way to execute trytond module unittest?10:21
pokolimathsniper: there is a run-test.py script in trytond10:21
pokolimathesis: http://hg.tryton.org/trytond/file/e9105d170bb5/trytond/tests/run-tests.py10:22
pokolimathsniper: so python trytond/tests/run-tests.py -m <your_module_name>10:22
mathsniperThanks. It works.10:23
-!- udono(~udono@ip-37-201-196-116.hsi13.unitymediagroup.de) has joined #tryton10:25
-!- deys(~deys@1.186.41.1) has joined #tryton10:28
-!- deys(~deys@1.186.41.1) has joined #tryton10:30
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton10:34
-!- nicoe(~nicoe@2a02:a03f:3068:4b00:ee55:f9ff:fe7b:f7ac) has joined #tryton10:54
-!- Yakulu(~Yakulu@78.194.3.29) has joined #tryton11:29
-!- mariomop(~quassel@host221.186-109-108.telecom.net.ar) has joined #tryton13:10
-!- cjbarnes18(~craig@host86-180-74-114.range86-180.btcentralplus.com) has joined #tryton13:28
-!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton13:57
-!- smarro(~sebastian@190.105.93.196) has joined #tryton14:40
-!- MarkyC(~MarkyC@pat-199-212-65-67.resnet.yorku.ca) has joined #tryton15:26
-!- MarkyC_(~MarkyC@158.106.83.87) has joined #tryton15:38
-!- deys(~deys@1.186.41.1) has joined #tryton16:05
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton16:25
-!- yangoon(~mathiasb@p549F030A.dip0.t-ipconnect.de) has joined #tryton16:27
-!- yangoon(~mathiasb@p549F1F0F.dip0.t-ipconnect.de) has joined #tryton16:43
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton17:06
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton17:10
-!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has joined #tryton17:39
-!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton17:53
-!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton17:59
-!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton18:13
-!- VaticanCameos(~pritishc@182.68.200.83) has joined #tryton18:22
-!- frispete_(~frispete@p54A90B94.dip0.t-ipconnect.de) has joined #tryton18:40
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton18:51
-!- vairav(~vairav@hdqusers.modeln.com) has joined #tryton19:03
mathsniperHi all, how to setup trytond test fixture?19:07
mathsniperFor example test_account.py, self.company.search([('rec_name', '=', 'Dunder Miffin'),]). Where is the company fixture from?19:09
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton19:25
-!- smarro(~sebastian@190.105.93.196) has joined #tryton20:03
-!- sunny_dealmeida(~quassel@210.89.37.228) has joined #tryton20:26
-!- VaticanCameos(~pritishc@182.68.200.83) has joined #tryton21:03
-!- frispete_(~frispete@p54A90B94.dip0.t-ipconnect.de) has joined #tryton21:19
-!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has left #tryton21:26
-!- kstenger(~karla@200.124.209.158) has joined #tryton21:44
-!- vairav(~vairav@hdqusers.modeln.com) has joined #tryton21:55
-!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton22:12
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton22:23
-!- nineinchnick(~jwas@109.231.18.226) has joined #tryton22:37
-!- Warsaw(bda89877@gateway/web/freenode/ip.189.168.152.119) has joined #tryton22:51
WarsawHello22:52
WarsawI'm reading the manual of trytond22:52
Warsawand I would like to begin asking a small question...22:52
Warsawwhy is it that the domains, when using an explicit clause, the statement ends with a , (comma) before the bracket?22:53
Warsawdomain = [     ('field name1', 'operator1', 'operand1'),     ('field name2', 'operator2', 'operand2'),     ('field name3', 'operator3', 'operand3'),]22:54
Warsawthat is:22:54
Warsaw'operand3'),]22:54
cedkWarsaw: for coding style22:56
WarsawOk... so it's not completely necessary, but it's more understandable for others, right?22:57
WarsawThanks...22:57
-!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton23:03
-!- smarro(~sebastian@190.105.93.196) has joined #tryton23:04
Jitesh_Nairafter creating a company when iam trying to create an account with the company i just created....while trying to save account iam getting error --> UserError: ('UserError', (u'You try to bypass an access rule.\n(Document type: account.account)', ''))23:07
Jitesh_Nairi did try this too config._context = User.get_preferences(True, config.context)23:07
cedkJitesh_Nair: your user must be linked to the company23:07
Jitesh_Nairmay i know how?? iam using proteus....i solved the previous issue by config._context = User.get_preferences(True, config.context) while creating a new company and passing a tax23:08
Jitesh_Nairbut for creating an account iam getting this error23:08
Jitesh_Nairiam trying to get the biilling module ru23:09
Jitesh_Nairrun*23:09
Jitesh_Nairbut the dependency has now led me till sequence23:10
Jitesh_Nairwhile saving sequence too iam geting the same error23:10
cedkJitesh_Nair: I can not say more than just the user must be linked to the company23:10
Jitesh_Nairi could not find much resource of how to link a user with the company23:10
Jitesh_Nairi did try google a lot of time...but later some one told me that each time we create a company we should reload the context http://hg.tryton.org/modules/sale/file/d95aa599e9da/tests/scenario_sale.rst#l3723:11
Jitesh_Nairi did that and it worked..but this time it is not working23:12
cedkJitesh_Nair: did you open the user form? Did you see the company field?23:12
Jitesh_Nairi got the instance of user and added the company like this user.company=company and saved the user like user.save()23:13
Jitesh_Nairbut that dint help in the previous problem itself23:13
Jitesh_Nairfor creating an bill i needed a tax...for tax i needed company...for company i needed currency and party...later for tax i needed account..for account to be good i needed fiscal year...for which i needed sequence...now iam in this long loop...but that can be solved once i know how to link this user to the company so i dont need any access permission23:16
Jitesh_Nairat sequence iam getting this error --> UserError: ('UserError', (u'You try to bypass an access rule.\n(Document type: ir.sequence)', ''))23:20
Jitesh_Naircedk, i got this error while linking the company --> UserError: ('UserError', (u'The value of the field "Current Company" on "User" is not valid according to its domain.', ''))23:29

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