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 #tryton04:09
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton06:09
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton08:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:09
-!- Marleyx(~jordan@93.176.153.159) has joined #tryton08:09
-!- Timitos(~kpreisler@2001:a61:4bc:4101:762b:62ff:fe84:ed7e) has joined #tryton08:09
-!- rpit(~rpit@p200300C88F1AFC00E5271953866667B8.dip0.t-ipconnect.de) has joined #tryton09:09
-!- udono(~udono@015-057-210-188.ip-addr.inexio.net) has joined #tryton09:09
-!- ubtel(~ubtel@ptr-377whsjq4s5a9lv2kqlp.18120a2.ip6.access.telenet.be) has joined #tryton10:09
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton10:09
-!- rpit(~rpit@p4FFB7CA1.dip0.t-ipconnect.de) has joined #tryton11:09
-!- mariomop(~quassel@host106.201-252-171.telecom.net.ar) has joined #tryton12:09
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton14:09
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 sequences15:09
mrichezfor each period ?15:09
mrichez12 periods are created using this sequence (error in my first line)15:09
semariemrichez: just by curiosity, what is your use case to have one sequence per period ?15:09
mrichezsemarie: to keep ordered sequence by month, we sometimes have to invoice in the previous month15:09
mrichezand our sequence is year/month/number15:09
semariehaving a prefix like "${year}/${month}/" on sequence doesn't already do it ?15:09
semariewell, I dunno what it is date used for the placeholder... if it is the date of posting or the date of the move15:09
mrichezsemarie: no because month will be the current month15:09
mrichezand in our case sometimes, it should be the previous month15:09
mricheztryton allows such things, but my problem is to generate automatically the sequences in a loop...15:09
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 periods15:09
mrichezand then removing the "useless" sequence15:09
cedkmrichez: the invoice_sequences on fiscalyear is not required15:09
mrichezcedk: strange because i can't save a fiscalyear without it15:09
mrichezcedk: "a value is required for field "supplier credit note sequence" in Invoice sequence16:09
mrichezcedk: bug ?16:09
cedkmrichez: if you are not root, there is a default empty record created16:09
mrichezcedk: ok, was not root16:09
mrichezcedk: will retry... but i've to go16:09
mrichezthanks for help16:09
cedksemarie: the date used is the accounting date so the one that is included in the period16:09
-!- smorillo(250f660a@gateway/web/cgi-irc/kiwiirc.com/ip.37.15.102.10) has joined #tryton16:09
-!- EdbO(~eddy@2001:982:fc2b:1:b52d:e505:a2b5:7338) has joined #tryton17:09
-!- EdbO(~eddy@2001:982:fc2b:1:b52d:e505:a2b5:7338) has left #tryton17:09
-!- EdbO(~eddy@2001:982:fc2b:1:b52d:e505:a2b5:7338) has joined #tryton19:09
-!- EdbO(~eddy@2001:982:fc2b:1:b52d:e505:a2b5:7338) has left #tryton19:09
-!- k-man(~jason@unaffiliated/k-man) has joined #tryton19:09
-!- csotelo(~csotelo@190.42.98.249) has joined #tryton21:09
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton22:09
-!- csotelo(~csotelo@190.42.98.249) has joined #tryton22:09

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