irc.libera.chat #tryton log beginning Wed Dec 7 12:00:02 AM CET 2022 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:13 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 23:13 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:db7c:11fb:1fc6:3112) has joined #tryton | 06:06 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 06:14 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 06:48 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:33 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 08:33 | |
pokoli | Is there any reason why production_work_timesheet does not include timesheet costs as production cost? | 08:49 |
---|---|---|
cedk | pokoli: there is no guarantee that timesheet are filled before the end of the production | 09:00 |
cedk | and usually the time is included in the work cost | 09:01 |
pokoli | cedk: but the cost of the employee is not included in the cycle cost (we will not know who will do it) | 09:02 |
pokoli | But if its the timesheets are included we should include them on the costs | 09:02 |
-!- nicoe(~nicoe@2a02:578:852a:c00:224:9bff:fe6c:a1b2) has joined #tryton | 09:02 | |
pokoli | anyway we should be able to recompute the costs if a timesheet line is included after the production is done | 09:06 |
cedk | pokoli: I disagree because of the above reason | 09:06 |
pokoli | cedk: which reason? you give me two | 09:06 |
cedk | pokoli: the one I just gave | 09:06 |
pokoli | cedk: which? time is included in work cost or timesheet is filled after the end of the production? | 09:07 |
cedk | pokoli: both | 09:07 |
pokoli | cedk: do not understan the "time is included in the work cost" | 09:09 |
pokoli | One production may involved a different work center and employee times. For example, when using an oven the employee time is just the preparation, checking and leaving time but the oven time is longer | 09:10 |
cedk | pokoli: it does not care, the cost of the work is usually computed with employee cost included | 09:12 |
cedk | if you want to have the timesheet included it must be an option | 09:12 |
pokoli | cedk: you can not assume that the user will enter the cost of work with employee cost included | 09:13 |
cedk | and if you want to deal with the recomputation of the cost, you must solve the warning issue | 09:13 |
cedk | pokoli: We do not assume, it is the user who assume | 09:14 |
pokoli | cedk: ok thanks for the explanations | 09:14 |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 10:27 | |
mrichez | hi, wondering if it is possible to have a unique sql constraint for a specific field value ? (for example, i have a model with a boolean field and there could be only unique "true" value) Or this check should be done in code? | 13:25 |
cedk | mrichez: use Exclude with a where clause | 13:30 |
-!- tbruyere1(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 13:30 | |
mrichez | cedk: thanks | 13:34 |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 13:43 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 13:50 | |
mrichez | Can i use Function fields in a model using a table_query ? | 15:15 |
mrichez | for instance, in my query i select unit_price and quantity. Can i define a Function field amount in the model ? | 15:17 |
mrichez | or to compute price in another currency | 15:20 |
cedk | mrichez: yes but it can be expensive as table_query may be executed multiple times | 15:29 |
mrichez | cedk: it 'll be used to export some data once a week.. Thanks | 15:57 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!