IRC logs of #tryton for Thursday, 2019-09-12

chat.freenode.net #tryton log beginning Thu 12 Sep 2019 12:00:01 AM CEST
-!- yangoon1(~mathiasb@i59F72BBD.versanet.de) has joined #tryton02:21
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton04:51
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:18
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:33
-!- Marleyx(~jordan@93.176.153.159) has joined #tryton06:34
-!- Timitos(~kpreisler@2001:a61:4bc:4101:762b:62ff:fe84:ed7e) has joined #tryton06:41
-!- rpit(~rpit@p200300C88F1AFC00E5271953866667B8.dip0.t-ipconnect.de) has joined #tryton07:06
-!- udono(~udono@015-057-210-188.ip-addr.inexio.net) has joined #tryton07:28
-!- ubtel(~ubtel@ptr-377whsjq4s5a9lv2kqlp.18120a2.ip6.access.telenet.be) has joined #tryton08:24
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton08:49
-!- rpit(~rpit@p4FFB7CA1.dip0.t-ipconnect.de) has joined #tryton09:16
-!- mariomop(~quassel@host106.201-252-171.telecom.net.ar) has joined #tryton10:50
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton12:05
mrichezhi, in the demo proteus script, fiscal year is created with one sequence and then 12 periods are created using this period. I'm trying to make a script to create fiscal year with different sequences for each period... but you can create periods automatically without having a fiscal year and a fiscal year needs a sequence... So is the only way to create first a useless sequence, delete the sequence after saving, creating the periods and then the sequences13:44
mrichezfor each period ?13:44
mrichez12 periods are created using this sequence (error in my first line)13:45
semariemrichez: just by curiosity, what is your use case to have one sequence per period ?13:47
mrichezsemarie: to keep ordered sequence by month, we sometimes have to invoice in the previous month13:48
mrichezand our sequence is year/month/number13:50
semariehaving a prefix like "${year}/${month}/" on sequence doesn't already do it ?13:51
semariewell, I dunno what it is date used for the placeholder... if it is the date of posting or the date of the move13:52
mrichezsemarie: no because month will be the current month13:52
mrichezand in our case sometimes, it should be the previous month13:53
mricheztryton allows such things, but my problem is to generate automatically the sequences in a loop...13:54
mrichezi made the script, but it's weird to have to add a "useless" sequence  to create the fiscal year, then creating automatically the periods and then creating all the sequences and associating them to periods13:56
mrichezand then removing the "useless" sequence13:56
cedkmrichez: the invoice_sequences on fiscalyear is not required13:58
mrichezcedk: strange because i can't save a fiscalyear without it13:59
mrichezcedk: "a value is required for field "supplier credit note sequence" in Invoice sequence14:01
mrichezcedk: bug ?14:03
cedkmrichez: if you are not root, there is a default empty record created14:04
mrichezcedk: ok, was not root14:05
mrichezcedk: will retry... but i've to go14:05
mrichezthanks for help14:05
cedksemarie: the date used is the accounting date so the one that is included in the period14:06
-!- smorillo(250f660a@gateway/web/cgi-irc/kiwiirc.com/ip.37.15.102.10) has joined #tryton14:45
-!- EdbO(~eddy@2001:982:fc2b:1:b52d:e505:a2b5:7338) has joined #tryton15:12
-!- EdbO(~eddy@2001:982:fc2b:1:b52d:e505:a2b5:7338) has left #tryton15:51
-!- EdbO(~eddy@2001:982:fc2b:1:b52d:e505:a2b5:7338) has joined #tryton17:19
-!- EdbO(~eddy@2001:982:fc2b:1:b52d:e505:a2b5:7338) has left #tryton17:20
-!- k-man(~jason@unaffiliated/k-man) has joined #tryton17:26
-!- csotelo(~csotelo@190.42.98.249) has joined #tryton19:32
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton20:01
-!- csotelo(~csotelo@190.42.98.249) has joined #tryton20:36

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