IRC logs of #tryton for Friday, 2018-12-28

chat.freenode.net #tryton log beginning Fri Dec 28 00:00:01 CET 2018
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:53
-!- fsanchez(~fsanchez@201.240.5.14) has joined #tryton00:09
-!- csotelo_(~csotelo@190.235.115.160) has joined #tryton00:46
-!- csotelo_(~csotelo@190.235.115.160) has joined #tryton01:59
-!- csotelo(~csotelo@190.235.115.160) has joined #tryton03:24
-!- rpit(~rpit@p200300C88F2690009976CA5A76786C65.dip0.t-ipconnect.de) has joined #tryton06:37
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton07:02
-!- thaneor1(~lenovo3@r179-25-69-35.dialup.adsl.anteldata.net.uy) has joined #tryton07:20
jcmhi, I encounter two pb in migrating from 4.8 to 5.0: errors in res.user while db migration and not being able to synchronize records as recommanded on discuss07:43
jcmthe error in migrating: 87601 140735812551552 [2018-12-27 18:10:27,420] ERROR trytond.convert Could not delete id: 10 of model res.user07:43
jcmthe synchro thing: https://discuss.tryton.org/t/migration-from-4-8-to-5-0/59607:44
jcm[MANUAL] After update, synchronize records from Administration > Models > Models > Data07:44
jcmas an admin, I get the exception ('UserError', ("Vous n'êtes pas autorisé à modifier cet enregistrement.", 'Cet enregistrement fait partie de la configuration de base.'))07:46
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:44
-!- zmichal(~michal@chello085216186171.chello.sk) has joined #tryton08:46
-!- nicoe(~nicoe@2a02:2788:54:1b6:7e2a:31ff:fe5e:b25d) has joined #tryton09:25
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton09:53
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has left #tryton09:53
-!- thaneor(~lenovo3@r179-25-69-35.dialup.adsl.anteldata.net.uy) has joined #tryton10:38
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton13:08
LordVanhi13:15
LordVani was wondering .. has anyone made a module to extend timesheet to include a start time too?13:16
LordVani mean it should be easy13:21
cedkLordVan: timesheet needs a duration13:22
LordVanyes i know i meant about adding a start time to it13:22
LordVanour current timesheets (spreadsheet) are writte ans "from - to" (morning) and "from .. to" (afternoon) then added up13:23
LordVanso if I don't want to change that completely i'd need to add a start time to it too13:23
cedkLordVan: it is usually wrong because you do not work always in a row13:24
LordVancedk, yes i know and i don't intend to keep the "only 2 entries per day" (one for morning and one for afternoon) but would still need to keep the start/end time (or start time and duration whichever is fine)13:25
cedkLordVan: for what purpose?13:26
LordVanwell mostly cuz that'show it's been until now and so we know who worked when (most start at the same times every day, but not always) -- there still are per-project/order hours anyway ofcourse, but that is seperate13:27
LordVanbasically a requirement for the report generation13:28
cedkLordVan: I think you are mixing timesheet and attendance13:28
LordVanwell it is what people get paid by13:28
LordVanbasically the monthly hour lists that we are required to have by law,..13:29
LordVanthat doesn't need more details than how many hours per day afaik (but so far we always had start and end times for morning and afternoon13:30
LordVanbut yeah i guess attendance would describe it better i suppose13:30
LordVancedk, would it be "wrong" (as in intended purpose) to use the timesheet module for attendance/monthly hours sheets?13:32
cedkLordVan: I think so13:35
cedkat least it will be great to have attendance in standard but decoupled from timesheet13:35
LordVanhmm i wonder how hard it would be to duplicate timesheet code to make an attendance module .. i think there are enough similarities there to do it that way instead of starting from scratch13:36
cedkbut of course there should be some check like timesheet duration can not be greater than attendance13:36
LordVani am not sure i understand "timesheet duration" usefulness13:36
cedkLordVan: I have seen it in Odoo and that become a real mess because the needs are different13:37
LordVanyeahi mean though it should be possible to use just attendance and no timesheet at all13:37
cedkLordVan: I can book for today a sum of 7h on timesheet and put an attendance of 8h13:37
cedkbut the inverse shows there is something wrong13:37
LordVanyes since you have various other tasks that might not be put on any specific timesheet13:38
LordVanbut in that case .. wouldn't you want a start time for the timesheet too to make sure it is within attendance?13:38
LordVanhm13:39
cedkLordVan: what is the purpose to know more precisly than the day when a tasks have been done?13:39
LordVancedk, probalby none tbh13:39
LordVanthis would just be an artifact of the old spreadsheets13:39
cedkalso attendance does not have to say what the employee did, it just record when he came and when he left13:40
LordVanyes of course13:40
LordVanthat is why timesheet is in some way overkill for attendance13:40
LordVanbtw can timesheet be attached to an order and/or project?13:41
LordVani did not see anything like that but only started looking into it yesterdqy13:41
LordVanah i see there is production_work_timesheet13:42
cedkLordVan: timesheet is designed to be attached to anything13:42
LordVannice13:43
cedkonly project for now allow it13:43
LordVanyes i just fond that13:43
LordVani'd really want to be able to attach it to maybe an order direclty13:43
LordVanbut anyway13:43
LordVanthat is not needed right now ..13:43
LordVando you think it is easier to start from scratch to write an attendance module, or use timesheet as base?13:44
cedkLordVan: for what purpose?13:45
LordVani meant if i wanted to make an attendance module13:45
LordVanor is there one and i missed it?13:45
cedkLordVan: there is no attendance module for now13:46
LordVanok13:47
cedkthe best starting point is to write a blueprint: https://discuss.tryton.org/c/feature13:47
LordVanhm probably would be  - at least if it was something that might be included in standard tryton13:53
csoteloHi all, I have a warning on a module install """WARNING trytond.convert Could not delete id 319 of model country.district because model no longer exists""" is on a local module ( party_pe ) is by a change done on subdivisions, any suggest?13:59
cedkcsotelo: well if you have removed the Model, Tryton can not delete records that was loaded by XML.14:07
csotelocedk, right! thanks!14:11
jcmhi cedk! I get this error in migrating 4.8->5.0: 87601 140735812551552 [2018-12-27 18:10:27,420] ERROR trytond.convert Could not delete id: 10 of model res.user14:18
nicoejcm: this is https://bugs.tryton.org/issue777114:18
jcmnicoe: thks. Should I correct the db by hand? the user is "Cron Process Purchase"14:21
nicoejcm: The user has been inactivated (you can check it with a SQL query)14:22
jcmnicoe: yes, saw it. So it's ok? strange to have errors in migration to be ignored...14:23
nicoejcm: yes it's OK14:23
jcmshouldn't we mention this on https://discuss.tryton.org/t/migration-from-4-8-to-5-0/596 ?14:24
nicoeGiven that we already had two or three times the remark, yes I think it is worth it14:25
jcmas recommanded on the discuss migration page, I tried to "synchronize records from Administration > Models > Models > Data" but most Synchronize buttons lead to a "no right to do this" though I'm admin14:25
LordVancedk, i am having a strange refresh-bug: when i'm at article -> category .. I created a new category and then started creating sub-categories .. but until i save the "parent" category the subcategory list shows empty lines14:25
LordVanbut if i click on them it shows the subcategories i made14:25
LordVan- and if i edit one it won'T update the subcategory list utnil the parent is saved again14:26
nicoejcm: Do you have something else that might not give the rights to the admin (record rules or whatever) ?14:40
jcmnicoe: I don't think so14:44
jcmI mean, none that I deliberately set on14:45
LordVanhmm http://docs.tryton.org/projects/modules-product/en/latest/ says product extends product template with "Code and Description" I assume it means that a variant has code+description .. but a product has description already too?14:50
jcmLordVan: to create a single product you create a single variant with code and descr14:52
LordVanyes14:52
LordVanjcm, but there is already a description field in the product too?14:52
LordVanwhich is what i find confusing now in the docs14:53
LordVanthe Code field is only in the variant but description is already on the product anyway14:53
jcmclass Product has Variant as UI name, class Template has Product ui name, only the Variant has a description imho14:55
LordVanwell i have a product open in the client right now and it does have a description ..14:56
LordVantalking about 5.0 btw14:56
LordVanso it seems like the docs are not up2date for the 5.0 product module14:57
LordVanalso14:57
LordVanproduct.py:207:    description = fields.Text("Description", translate=True, states=STATES,14:57
LordVanah wait nm14:57
LordVanbut still in the UI it shows description on the product not just on variatn .. hm14:57
jcmLordVan: 5.0 here too, description is in a ManyTo One widget; product.py:207 is the Variant in the ui...14:58
LordVanjcm,  yes i noticed my mistake about that14:58
LordVanah so it shows the description of all the variants there14:58
LordVanok that explains why i was confused14:58
LordVanthanks14:58
LordVanthough really it would be easier to understand (especially for end-users) to rename product -> product template and variatn -> product in the UI ..14:59
LordVanbut I think i can do that with translation somehow can't I?14:59
jcmLordVan: yes, custom module, locale > override > en.po15:00
LordVanwasn't there something in the UI too?15:00
LordVan*goes and looks*15:00
LordVanbtw considering going to FOSDEM in February .. anyone going? cedk?15:01
cedkLordVan: yes probably as usual15:01
LordVani hope to be able to manage it this year15:02
LordVancedk, still owe you a coffee or beer(s)  for your help ^^15:11
LordVangotta see if there are any cheap rooms still available..15:12
cedkI will probably do some little volunteer work for the Python dev room15:12
LordVan:)15:14
-!- csotelo(~csotelo@190.235.115.160) has joined #tryton16:30
csoteloHi all, I have found a wird error on my update custom module update does not appear on before    "assert cls not in mpool, cls"16:36
jcmhow can I debug sale_shipment_cost + carrier_weight which finds no fitting carrier after migrating to 5.0?16:56
jcmI checked that carrier products have an accounting category16:56
LordVanis there a way to create a BOM for a production without adding a product for each part? (meaning i have small parts, that cannot get ordered seperately easily cuz they aresoldered together so it would make the list huge to add them all as product)16:58
-!- robertohueso(~robertohu@185.67.107.94) has joined #tryton17:02
robertohuesoHi :) I'd like to ask a question17:02
robertohuesoIs there any way that I can generate price tags with barcodes in Tryton?17:03
LordVanrobertohueso, no clue if it exists already somewhre but it should be easy with https://pypi.org/project/python-barcode/17:06
-!- lucascastro(~lucascast@177-185-139-231.isotelco.net.br) has joined #tryton17:12
LordVanhmm is there a way to duplicate a product & product template so i can then only change the name? (i need 74002-A01-0[1-9] for example)17:14
-!- reipes(~reipes@host182-105-dynamic.50-79-r.retail.telecomitalia.it) has joined #tryton17:43
robertohuesoLordVan: Thanks! :D17:55
-!- thaneor1(~lenovo3@179.26.228.98) has joined #tryton19:23
-!- reipes(~reipes@146-241-2-234.dyn.eolo.it) has joined #tryton20:20
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton21:01

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