| irc.libera.chat #tryton log beginning Wed Apr 6 12:00:01 AM CEST 2022 | ||
| -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:22 | |
| -!- ChanServ changed mode/#tryton -> +o cedk | 23:22 | |
| -!- roycroft(~roycroft@dharmabums.kerouac.org) has joined #tryton | 04:04 | |
| -!- springwurm(~springwur@5.104.149.54) has joined #tryton | 05:38 | |
| -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:56 | |
| -!- ChanServ changed mode/#tryton -> +o cedk | 06:56 | |
| -!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:19 | |
| -!- rpit(~rpit@p4ffb7f50.dip0.t-ipconnect.de) has joined #tryton | 07:19 | |
| -!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 07:45 | |
| -!- navis(~navis@75.209-134-109.adsl-dyn.isp.belgacom.be) has joined #tryton | 08:33 | |
| -!- navis(~navis@109.134.209.75) has joined #tryton | 08:35 | |
| SISalp | hello, in 6.2 demo the fiscal periods are created by fiscalyear.click('create_period'). How can I choose between monthly and quarterly periods ? | 09:29 |
|---|---|---|
| cedk | SISalp: the wizard ask you | 09:32 |
| SISalp | cedk: so my proteus script has to answer ? Is there an exemple of this in demo script ? | 09:33 |
| cedk | SISalp: you can still call the method create_period with proper parameters | 09:34 |
| SISalp | cedk: I had FiscalYear.create_period([fiscalyear.id], int(my_period), config.context) for 6.0. Is it the way to do it ? | 09:36 |
| cedk | SISalp: the parameters are: fiscalyears, interval=1, end_day=31 | 09:37 |
| SISalp | cedk: Thank you, I think I'll find the way. Generally speaking, are wizards a limitation point for proteus scripts ? | 09:39 |
| -!- navis(~navis@75.209-134-109.adsl-dyn.isp.belgacom.be) has joined #tryton | 09:56 | |
| pokoli | SISalp: no, you can execute wizards from proteus | 10:50 |
| -!- navis(~navis@75.209-134-109.adsl-dyn.isp.belgacom.be) has joined #tryton | 11:12 | |
| -!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 11:14 | |
| -!- navis(~navis@109.134.209.75) has joined #tryton | 11:27 | |
| -!- navis_(~navis@75.209-134-109.adsl-dyn.isp.belgacom.be) has joined #tryton | 11:49 | |
| -!- springwurm(~springwur@5.104.149.54) has joined #tryton | 12:03 | |
| -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 13:21 | |
| -!- ChanServ changed mode/#tryton -> +o cedk | 13:21 | |
| -!- Pegasus_RPG(~Thunderbi@fortissl.ccsd.net) has joined #tryton | 14:25 | |
| -!- navis(~navis@109.134.209.75) has joined #tryton | 14:41 | |
| -!- Pegasus_RPG(~Thunderbi@fortissl.ccsd.net) has joined #tryton | 15:10 | |
| SISalp | pokoli: is the wizard executed by fiscalyear.click ? in this case, can I provide the answer as a parameter ? | 15:14 |
| pokoli | SISalp: You can execute the wizard directly (without calling click) and provide parameters of all the options | 15:15 |
| SISalp | pokoli: I see an example in demo script : Wizard('ir.module.activate_upgrade').execute('upgrade') I will have to read the doc and learn how to set my fiscal periods. | 15:18 |
| pokoli | SISalp: here you have a more complete example: https://hg.tryton.org/modules/account_invoice/file/a02c98376beb/tests/scenario_invoice.rst#l267 | 15:20 |
| SISalp | pokoli: thank you, I will make some tries to learn. | 15:28 |
| -!- Pegasus_RPG(~Thunderbi@fortissl.ccsd.net) has joined #tryton | 16:47 | |
| -!- Pegasus_RPG(~Thunderbi@fortissl.ccsd.net) has joined #tryton | 18:13 | |
| -!- Pegasus_RPG(~Thunderbi@fortissl.ccsd.net) has joined #tryton | 21:24 | |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!