IRC logs of #tryton for Thursday, 2017-12-21

chat.freenode.net #tryton log beginning Thu Dec 21 00:00:02 CET 2017
-!- catonano(~user@151.45.34.223) has joined #tryton00:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:59
-!- NeonKing-(~Neonking@176.179.38.86) has joined #tryton03:02
-!- kwmiebach_(sid16855@gateway/web/irccloud.com/x-kuqfluqjixjyoikv) has joined #tryton03:05
-!- robinak(~quassel@unaffilated/robink) has joined #tryton03:05
-!- as_g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton03:07
-!- sisalp(~sisalpuse@ip39.ip-46-105-32.eu) has joined #tryton03:08
-!- udono(~udono@168-059-210-188.ip-addr.inexio.net) has joined #tryton03:08
-!- NeonKing(~Neonking@176.179.38.86) has joined #tryton03:15
-!- NeonKing(~Neonking@unaffiliated/neonking) has joined #tryton03:16
-!- robinak(~quassel@unaffilated/robink) has joined #tryton03:45
-!- robink(~quassel@unaffilated/robink) has joined #tryton05:00
-!- cdchapman(~perturbed@73.98.169.91) has joined #tryton06:13
-!- kwmiebach(sid16855@gateway/web/irccloud.com/x-kuqfluqjixjyoikv) has joined #tryton07:31
-!- kwmiebach(sid16855@gateway/web/irccloud.com/x-trvottxdzbhekjhf) has joined #tryton07:32
-!- _2cadz(~2cadz@82-64-14-213.subs.proxad.net) has joined #tryton07:41
-!- JanGB(~jan@dslb-088-073-237-234.088.073.pools.vodafone-ip.de) has joined #tryton08:00
-!- JanGB(~jan@dslb-088-073-237-234.088.073.pools.vodafone-ip.de) has joined #tryton08:01
-!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton08:22
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:44
-!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton08:50
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:58
-!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has left #tryton09:07
-!- zmijunkie(~Adium@200116b80a3da400b033d349ac4e235f.dip.versatel-1u1.de) has joined #tryton09:13
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:41
-!- rpit(~rpit@p200300C88BE9110056EE75FFFE0DD3C7.dip0.t-ipconnect.de) has joined #tryton09:41
-!- Tim___(0116a082@gateway/web/freenode/ip.1.22.160.130) has joined #tryton11:08
Tim___Hello,  I am unable to create a new invoice! please check my request https://pastebin.com/TsQHKx4V11:10
cedkTim___: I think the error message is explaining it well11:12
-!- csotelo(~csotelo@181.65.120.169) has joined #tryton11:16
Tim___cedk__: I am already assigned account to each invoice line, isn't it enough?11:18
-!- JanGB(~jan@business-088-079-110-234.static.arcor-ip.net) has joined #tryton11:18
cedkTim___: read the error message: it talks about *Journal*11:21
-!- JanGB(~jan@business-088-079-110-234.static.arcor-ip.net) has joined #tryton11:24
Tim___cedk__: Ok,I got it! thanks a lot!11:25
Tim___How can I search_read default Journal while crating new invoice? what is method name?11:33
Tim___creating*11:34
pokoliTim___: you can't on a single call11:34
pokoliTim___: you should search for the id on a separate call, and set tha value as values11:34
pokoliand set the values on create11:35
Tim___pokoli__: thank for your answer, but what is default id of that, so I can search in separate call with domain11:38
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton11:47
pokoliTim___: there is no default id. By default there is one journal for each kind, but's it's possible to create more than one11:50
Tim___Pokoli__: but when I try to create a new invoice with desktop client, it shows me as pre-filled11:52
pokoliTim___: because the desktop client has the type set, and if there is only one journal for this type, it's filled via on_change11:56
pokoliTim___: here is the code: http://hg.tryton.org/modules/account_invoice/file/c1855683d0dc/invoice.py#l45411:57
Tim___Pokoli__: ok,how to get this default type?12:02
pokoliTim___: just perform a search on the Journal model with the required domain12:04
Tim___pokoli__: I mean how can I get default invoice type which is set ?12:07
-!- zmijunkie(~Adium@200116b80a3da4000482a54e06ba635a.dip.versatel-1u1.de) has joined #tryton12:08
pokoliTim___: look at the code: http://hg.tryton.org/modules/account_invoice/file/582c2f14383a/invoice.py#l40312:17
-!- JanGB(~jan@tmo-114-244.customers.d1-online.com) has joined #tryton13:44
-!- JanGB1(~jan@business-088-079-110-234.static.arcor-ip.net) has joined #tryton13:55
-!- smarro(~sebastian@2800:af0:1028:686::4) has joined #tryton14:07
-!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton14:16
-!- JanGB(~jan@tmo-114-244.customers.d1-online.com) has joined #tryton14:28
-!- thaneor(~ldlc6@179.26.12.77) has joined #tryton14:28
-!- mariomop(~quassel@host211.190-138-229.telecom.net.ar) has joined #tryton15:32
-!- catonano(~user@151.45.41.113) has joined #tryton15:38
-!- plaes(~plaes@unaffiliated/amd) has joined #tryton16:24
-!- JanGB(~jan@x2f7fc6e.dyn.telefonica.de) has joined #tryton16:36
-!- JanGB1(~jan@x2f7fc6e.dyn.telefonica.de) has joined #tryton16:43
-!- perilla(~perilla@corp-190-12-31-162.cue.puntonet.ec) has joined #tryton16:45
perillaHi, on some account reports, I need to filter accounts by level on tree (root account "level=0", childs of root "level=1", and so on)16:47
perillaI wrote a python sql expression with subquery, for counting number of parents using left and rigth values of mptt16:48
perillabut I'm wondering if can I add a field 'level' on many2one and set level at same moment that mptt are updated?16:50
cedkperilla: sound best way to have bugs17:26
-!- perilla(~perilla@181.188.200.72) has joined #tryton17:54
-!- nicoe(~nicoe@2a02:578:858c:500:ee55:f9ff:fe7b:f7ac) has joined #tryton17:59
-!- JanGB(~jan@94.222.147.229) has joined #tryton18:28
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton18:30
-!- smarro(~sebastian@190.55.164.74) has joined #tryton18:42
-!- perilla_(~perilla@corp-190-12-31-162.cue.puntonet.ec) has joined #tryton18:45
-!- cdchapman(~perturbed@73.98.169.102) has joined #tryton19:24
-!- JanGB(~jan@dslb-094-222-147-229.094.222.pools.vodafone-ip.de) has joined #tryton19:42
-!- thaneor1(~ldlc6@179.26.21.50) has joined #tryton19:55
-!- smarro(~sebastian@host241.181-13-75.telecom.net.ar) has joined #tryton20:11
-!- JanGB(~jan@dslb-094-222-147-229.094.222.pools.vodafone-ip.de) has joined #tryton20:16
-!- perilla(~perilla@181.188.200.72) has joined #tryton20:34
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:01
-!- cdchapman(~perturbed@73.98.169.90) has joined #tryton22:20
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton22:24
-!- robinak(~quassel@unaffilated/robink) has joined #tryton23:51

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