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

chat.freenode.net #tryton log beginning Mon Apr 20 00:00:01 CEST 2015
2015-04-20 02:04 -!- digitalsatori(~Thunderbi@114.92.206.226) has joined #tryton
2015-04-20 03:10 -!- digitalsatori(~Thunderbi@116.234.195.172) has joined #tryton
2015-04-20 03:29 -!- vairav(~vairav@c-24-130-116-187.hsd1.ca.comcast.net) has joined #tryton
2015-04-20 03:29 -!- digitalsatori1(~Thunderbi@116.234.195.172) has joined #tryton
2015-04-20 03:48 -!- mathesis(~ana@187.171.239.18) has joined #tryton
2015-04-20 04:33 -!- mathesis(~ana@187.212.218.91) has joined #tryton
2015-04-20 04:52 -!- mathesis(~ana@187.171.239.18) has joined #tryton
2015-04-20 05:13 -!- mathsniper(7a64f958@gateway/web/freenode/ip.122.100.249.88) has joined #tryton
2015-04-20 06:13 -!- mathesis(~ana@189.188.190.151) has joined #tryton
2015-04-20 06:40 -!- frispete_(~frispete@p54A90B94.dip0.t-ipconnect.de) has joined #tryton
2015-04-20 06:43 -!- vairav(~vairav@c-24-130-116-187.hsd1.ca.comcast.net) has joined #tryton
2015-04-20 06:57 -!- vairav(~vairav@c-24-130-116-187.hsd1.ca.comcast.net) has joined #tryton
2015-04-20 06:59 -!- digitalsatori(~Thunderbi@116.234.195.172) has joined #tryton
2015-04-20 07:02 -!- yangoon1(~mathiasb@p549F030A.dip0.t-ipconnect.de) has joined #tryton
2015-04-20 07:16 <mathsniper> I 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?
2015-04-20 07:16 <mathsniper> the python tryton module
2015-04-20 07:16 <mathsniper> trytond
2015-04-20 07:19 <mathsniper> "trytond/backend/sqlite/database.py", line 225, in create
2015-04-20 08:04 -!- VaticanCameos(~pritishc@103.245.118.154) has joined #tryton
2015-04-20 08:14 -!- digitalsatori(~Thunderbi@116.234.195.172) has joined #tryton
2015-04-20 08:34 <pokoli> mathsniper: if you're executing test on sqlite there is no need to specify DB_NAME as it will use the memory database
2015-04-20 08:48 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-04-20 08:52 -!- digitalsatori(~Thunderbi@116.234.195.172) has joined #tryton
2015-04-20 09:29 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-04-20 09:30 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-04-20 09:30 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-04-20 09:31 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-04-20 09:32 -!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton
2015-04-20 09:49 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-04-20 10:01 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-04-20 10:01 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-04-20 10:17 <mathsniper> When I execute 'python -m unintest test_party' It shows KeyError: DB_NAME
2015-04-20 10:21 <mathsniper> So what is the proper way to execute trytond module unittest?
2015-04-20 10:21 <pokoli> mathsniper: there is a run-test.py script in trytond
2015-04-20 10:22 <pokoli> mathesis: http://hg.tryton.org/trytond/file/e9105d170bb5/trytond/tests/run-tests.py
2015-04-20 10:22 <pokoli> mathsniper: so python trytond/tests/run-tests.py -m <your_module_name>
2015-04-20 10:23 <mathsniper> Thanks. It works.
2015-04-20 10:25 -!- udono(~udono@ip-37-201-196-116.hsi13.unitymediagroup.de) has joined #tryton
2015-04-20 10:28 -!- deys(~deys@1.186.41.1) has joined #tryton
2015-04-20 10:30 -!- deys(~deys@1.186.41.1) has joined #tryton
2015-04-20 10:34 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-04-20 10:54 -!- nicoe(~nicoe@2a02:a03f:3068:4b00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-04-20 11:29 -!- Yakulu(~Yakulu@78.194.3.29) has joined #tryton
2015-04-20 13:10 -!- mariomop(~quassel@host221.186-109-108.telecom.net.ar) has joined #tryton
2015-04-20 13:28 -!- cjbarnes18(~craig@host86-180-74-114.range86-180.btcentralplus.com) has joined #tryton
2015-04-20 13:57 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-04-20 14:40 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-04-20 15:26 -!- MarkyC(~MarkyC@pat-199-212-65-67.resnet.yorku.ca) has joined #tryton
2015-04-20 15:38 -!- MarkyC_(~MarkyC@158.106.83.87) has joined #tryton
2015-04-20 16:05 -!- deys(~deys@1.186.41.1) has joined #tryton
2015-04-20 16:25 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton
2015-04-20 16:27 -!- yangoon(~mathiasb@p549F030A.dip0.t-ipconnect.de) has joined #tryton
2015-04-20 16:43 -!- yangoon(~mathiasb@p549F1F0F.dip0.t-ipconnect.de) has joined #tryton
2015-04-20 17:06 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-04-20 17:10 -!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton
2015-04-20 17:39 -!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-04-20 17:53 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-04-20 17:59 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-04-20 18:13 -!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton
2015-04-20 18:22 -!- VaticanCameos(~pritishc@182.68.200.83) has joined #tryton
2015-04-20 18:40 -!- frispete_(~frispete@p54A90B94.dip0.t-ipconnect.de) has joined #tryton
2015-04-20 18:51 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-04-20 19:03 -!- vairav(~vairav@hdqusers.modeln.com) has joined #tryton
2015-04-20 19:07 <mathsniper> Hi all, how to setup trytond test fixture?
2015-04-20 19:09 <mathsniper> For example test_account.py, self.company.search([('rec_name', '=', 'Dunder Miffin'),]). Where is the company fixture from?
2015-04-20 19:25 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton
2015-04-20 20:03 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-04-20 20:26 -!- sunny_dealmeida(~quassel@210.89.37.228) has joined #tryton
2015-04-20 21:03 -!- VaticanCameos(~pritishc@182.68.200.83) has joined #tryton
2015-04-20 21:19 -!- frispete_(~frispete@p54A90B94.dip0.t-ipconnect.de) has joined #tryton
2015-04-20 21:26 -!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has left #tryton
2015-04-20 21:44 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-04-20 21:55 -!- vairav(~vairav@hdqusers.modeln.com) has joined #tryton
2015-04-20 22:12 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-04-20 22:23 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-04-20 22:37 -!- nineinchnick(~jwas@109.231.18.226) has joined #tryton
2015-04-20 22:51 -!- Warsaw(bda89877@gateway/web/freenode/ip.189.168.152.119) has joined #tryton
2015-04-20 22:52 <Warsaw> Hello
2015-04-20 22:52 <Warsaw> I'm reading the manual of trytond
2015-04-20 22:52 <Warsaw> and I would like to begin asking a small question...
2015-04-20 22:53 <Warsaw> why is it that the domains, when using an explicit clause, the statement ends with a , (comma) before the bracket?
2015-04-20 22:54 <Warsaw> domain = [ ('field name1', 'operator1', 'operand1'), ('field name2', 'operator2', 'operand2'), ('field name3', 'operator3', 'operand3'),]
2015-04-20 22:54 <Warsaw> that is:
2015-04-20 22:54 <Warsaw> 'operand3'),]
2015-04-20 22:56 <cedk> Warsaw: for coding style
2015-04-20 22:57 <Warsaw> Ok... so it's not completely necessary, but it's more understandable for others, right?
2015-04-20 22:57 <Warsaw> Thanks...
2015-04-20 23:03 -!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton
2015-04-20 23:04 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-04-20 23:07 <Jitesh_Nair> after 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)', ''))
2015-04-20 23:07 <Jitesh_Nair> i did try this too config._context = User.get_preferences(True, config.context)
2015-04-20 23:07 <cedk> Jitesh_Nair: your user must be linked to the company
2015-04-20 23:08 <Jitesh_Nair> may 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 tax
2015-04-20 23:08 <Jitesh_Nair> but for creating an account iam getting this error
2015-04-20 23:09 <Jitesh_Nair> iam trying to get the biilling module ru
2015-04-20 23:09 <Jitesh_Nair> run*
2015-04-20 23:10 <Jitesh_Nair> but the dependency has now led me till sequence
2015-04-20 23:10 <Jitesh_Nair> while saving sequence too iam geting the same error
2015-04-20 23:10 <cedk> Jitesh_Nair: I can not say more than just the user must be linked to the company
2015-04-20 23:10 <Jitesh_Nair> i could not find much resource of how to link a user with the company
2015-04-20 23:11 <Jitesh_Nair> i 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#l37
2015-04-20 23:12 <Jitesh_Nair> i did that and it worked..but this time it is not working
2015-04-20 23:12 <cedk> Jitesh_Nair: did you open the user form? Did you see the company field?
2015-04-20 23:13 <Jitesh_Nair> i got the instance of user and added the company like this user.company=company and saved the user like user.save()
2015-04-20 23:13 <Jitesh_Nair> but that dint help in the previous problem itself
2015-04-20 23:16 <Jitesh_Nair> for 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 permission
2015-04-20 23:20 <Jitesh_Nair> at sequence iam getting this error --> UserError: ('UserError', (u'You try to bypass an access rule.\n(Document type: ir.sequence)', ''))
2015-04-20 23:29 <Jitesh_Nair> cedk, 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.', ''))

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!