IRC logs of #tryton for Sunday, 2019-01-06

chat.freenode.net #tryton log beginning Sun Jan 6 00:00:02 CET 2019
-!- udono1(~udono@098-143-067-156.ip-addr.inexio.net) has joined #tryton23:05
-!- lukio(~lukio@190.177.145.86) has joined #tryton23:18
-!- lukio(~lukio@186.143.135.251) has joined #tryton23:48
-!- lukio(~lukio@190.48.100.222) has joined #tryton01:03
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:06
-!- udono(~udono@107-141-067-156.ip-addr.inexio.net) has joined #tryton01:09
-!- lukio(~lukio@190.48.100.222) has joined #tryton03:02
-!- yangoon1(~mathiasb@i59F5256D.versanet.de) has joined #tryton03:22
-!- lukio(~lukio@186.141.200.204) has joined #tryton04:31
-!- lukio(~lukio@186.143.202.132) has joined #tryton05:52
-!- thaneor1(~lenovo3@r167-56-170-166.dialup.adsl.anteldata.net.uy) has joined #tryton08:06
-!- JanGB(~jan@2a02:810a:143f:f822:63af:b5ef:1410:6c4c) has joined #tryton08:11
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton09:08
LordVanhi09:09
LordVanCan someone give me a pointer as to how i can access extra fields I added to "party" with a custom module using proteus?09:09
semarieLordVan: Party = Model.get('party.party') ; p = Party(1) ; p.myfield09:12
-!- rpit(~rpit@p200300C88F2690008C8AACE31040D28F.dip0.t-ipconnect.de) has joined #tryton09:12
semariethere is really nothing particular in accessing extra field or "standard" one09:13
LordVanhm09:13
LordVanbut it does not show my added fields using dir(p)09:13
LordVani had added "pn_name = fields.Char('PN name', size=50)" to Party09:15
LordVanbut if i then do p.pn_name I get an AttributeError09:15
LordVanhmm09:15
LordVanwerid09:15
LordVansemarie, https://github.com/LordVan/tryton-modules/tree/master/party_extra <- the module .. super simple for now and i do see the data int he UI09:19
LordVanso i am confused09:19
udonoLordVan: Hi, Your module is missing a tryton.cfg file09:20
LordVanudono, ah nope just my commit XD09:20
semarieLordVan: is the module activated in the database ?09:21
LordVansemarie, yes09:21
LordVanas I said i can see the notepad and fields in the UI09:21
LordVanand i added stuff and it saved it , ..09:21
udonoLordVan: does it help to add <field name="customer_no" tree_invisible="1"/> in the tree view?09:22
LordVanudono, does the view have anythign to do with accessign data using proteus?09:22
udonoLordVan: hmm, no09:22
udono:-)09:22
LordVanlet me just try reconnecting my proteous session09:23
LordVanmaybe itS' that09:23
udonoyes09:23
-!- rpit(~rpit@p200300C88F2690008C8AACE31040D28F.dip0.t-ipconnect.de) has joined #tryton09:24
LordVanduno if it caches anything09:25
LordVan*smacks self*09:26
LordVanthat ws it ..09:26
LordVaneven if i did a Party.find() it did not refresh the new fields09:26
LordVanguess i added the module after connecting09:26
udonohow you connect with proteus?09:26
udonodirectly or with an url09:26
LordVanhttps://blog.lordvan.com/blog/using-proteus-to-browse-edit-trytons-data/ <- i am documenting what I do in my blog09:27
LordVanbtw09:32
LordVanI was going to use attributes to add a dropdown for different Material types (of sheet metal) to my products .. but since they cannot be searched (being Dict,..) I was thinking of just adding a field for it, which would be similar to a dict ..09:34
LordVanknow any modules that do somethign like this where the end-user can edit the options with a nice gui i could maybe just copy instead of making it from scratch?09:34
LordVanbasically similar to the product_attribute "tab" but easier maybe09:35
LordVannm i know how i will do it ..09:52
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:57
LordVananyone can help me with this error?:10:54
LordVanhttps://dpaste.de/DS5h10:54
LordVanprobably something simple i missed or a stupid mistake10:54
LordVan(first time i make my own model)10:54
LordVanah10:55
LordVannever mind10:55
LordVanignore this10:55
LordVani am an idiot .. i just need a one2many field10:55
LordVanerr many2one10:58
-!- lukio(~lukio@186.143.138.129) has joined #tryton11:13
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton11:25
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton12:01
-!- lukio(~lukio@190.48.100.222) has joined #tryton12:07
-!- rpit(~rpit@p200300C88F269000897BC0D739F15B62.dip0.t-ipconnect.de) has joined #tryton12:24
LordVan.. forgetting to add new classes (ModelSQL, ModelView) in __init__.py is a pain lol12:49
LordVanhmm seems like sometimes (during development) a trytond restart helps -- something was not reloaded/cached tespite running trytond-admin12:56
LordVanoh nice .. I don't need to make an UI to add data to new models? neat .. how do i add edit/delete to it though?13:04
-!- csotelo(~csotelo@179.7.225.95) has joined #tryton13:16
LordVancan someone have a look at https://github.com/LordVan/tryton-modules/tree/master/product_metal and help me figure out why the "Folder" input box is multiline in my form? (the production notes are text and are fine that way)13:19
g5pwHey all! I'm trying to set up a model to handle members of an organizations (structured somewhat similar to company.employee, but without access). I'm having some difficulties with implementing a Sequence to index all members numerically regardless of the Party code. Are there any good examples around? I've looked at the sequence for Party, but it looks a bit complex..13:40
-!- lukio(~lukio@190.48.100.222) has joined #tryton14:03
LordVanmakign an import from dolibarr is a pain when one doesn't speak french ..14:17
LordVanah nice14:59
LordVanpostgresql can export json .. might be better to do that than work with csv from dolibarr14:59
-!- lukio(~lukio@186.143.133.218) has joined #tryton15:00
cedkLordVan: Text are multiline so they expand to take all available space15:17
LordVanyes but folder is char not text15:18
cedkg5pw: do you mean to order?15:18
cedkLordVan: not in the link you gave15:18
LordVanargh15:19
LordVanah15:19
LordVanso stupid .. i had tried somethign and thought i changed it back (adn with all the other Char under it i misread)15:19
LordVanthanks for pointing that out to me ..15:19
-!- thaneor(~lenovo3@r167-56-170-166.dialup.adsl.anteldata.net.uy) has joined #tryton15:21
LordVanah btw15:24
LordVancedk, one quick question: the code you looked at .. it gives me a nice way to add new material / material surface by just using the product form .. but it seems i cannot edit or delete there? can that be enabled somehow or do i need to make an UI for that myself?15:25
g5pwcedk: I mean an auto-incrementing ID with a pattern (like patr15:42
g5pw*party.code15:42
cedkg5pw: you can do like for Party15:44
cedkg5pw: use a sequence to fill a code field15:44
cedkg5pw: and define an code_order method if you do not use padding15:45
g5pwcedk: I'm just not sure exactly on how does the code in Party work, there's a configuration model that references a ConfigurationSequence model that references the same field(?)15:46
cedkg5pw: there is no magic, you have to set the value at create16:20
-!- lukio(~lukio@190.48.100.222) has joined #tryton16:52
-!- lukio(~lukio@186.141.138.96) has joined #tryton18:41
-!- thaneor1(~lenovo3@r179-24-157-255.dialup.adsl.anteldata.net.uy) has joined #tryton20:09
-!- lukio(~lukio@186.141.134.12) has joined #tryton20:17
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton21:00
-!- lukio(~lukio@190.48.100.222) has joined #tryton21:04
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:23
-!- lukio(~lukio@190.48.100.222) has joined #tryton21:30
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton21:39
-!- lukio(~lukio@186.141.136.178) has joined #tryton22:13
-!- lukio(~lukio@186.141.202.111) has joined #tryton22:48
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:56

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