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 #tryton | 23:05 | |
-!- lukio(~lukio@190.177.145.86) has joined #tryton | 23:18 | |
-!- lukio(~lukio@186.143.135.251) has joined #tryton | 23:48 | |
-!- lukio(~lukio@190.48.100.222) has joined #tryton | 01:03 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 01:06 | |
-!- udono(~udono@107-141-067-156.ip-addr.inexio.net) has joined #tryton | 01:09 | |
-!- lukio(~lukio@190.48.100.222) has joined #tryton | 03:02 | |
-!- yangoon1(~mathiasb@i59F5256D.versanet.de) has joined #tryton | 03:22 | |
-!- lukio(~lukio@186.141.200.204) has joined #tryton | 04:31 | |
-!- lukio(~lukio@186.143.202.132) has joined #tryton | 05:52 | |
-!- thaneor1(~lenovo3@r167-56-170-166.dialup.adsl.anteldata.net.uy) has joined #tryton | 08:06 | |
-!- JanGB(~jan@2a02:810a:143f:f822:63af:b5ef:1410:6c4c) has joined #tryton | 08:11 | |
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | 09:08 | |
LordVan | hi | 09:09 |
---|---|---|
LordVan | Can 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 |
semarie | LordVan: Party = Model.get('party.party') ; p = Party(1) ; p.myfield | 09:12 |
-!- rpit(~rpit@p200300C88F2690008C8AACE31040D28F.dip0.t-ipconnect.de) has joined #tryton | 09:12 | |
semarie | there is really nothing particular in accessing extra field or "standard" one | 09:13 |
LordVan | hm | 09:13 |
LordVan | but it does not show my added fields using dir(p) | 09:13 |
LordVan | i had added "pn_name = fields.Char('PN name', size=50)" to Party | 09:15 |
LordVan | but if i then do p.pn_name I get an AttributeError | 09:15 |
LordVan | hmm | 09:15 |
LordVan | werid | 09:15 |
LordVan | semarie, https://github.com/LordVan/tryton-modules/tree/master/party_extra <- the module .. super simple for now and i do see the data int he UI | 09:19 |
LordVan | so i am confused | 09:19 |
udono | LordVan: Hi, Your module is missing a tryton.cfg file | 09:20 |
LordVan | udono, ah nope just my commit XD | 09:20 |
semarie | LordVan: is the module activated in the database ? | 09:21 |
LordVan | semarie, yes | 09:21 |
LordVan | as I said i can see the notepad and fields in the UI | 09:21 |
LordVan | and i added stuff and it saved it , .. | 09:21 |
udono | LordVan: does it help to add <field name="customer_no" tree_invisible="1"/> in the tree view? | 09:22 |
LordVan | udono, does the view have anythign to do with accessign data using proteus? | 09:22 |
udono | LordVan: hmm, no | 09:22 |
udono | :-) | 09:22 |
LordVan | let me just try reconnecting my proteous session | 09:23 |
LordVan | maybe itS' that | 09:23 |
udono | yes | 09:23 |
-!- rpit(~rpit@p200300C88F2690008C8AACE31040D28F.dip0.t-ipconnect.de) has joined #tryton | 09:24 | |
LordVan | duno if it caches anything | 09:25 |
LordVan | *smacks self* | 09:26 |
LordVan | that ws it .. | 09:26 |
LordVan | even if i did a Party.find() it did not refresh the new fields | 09:26 |
LordVan | guess i added the module after connecting | 09:26 |
udono | how you connect with proteus? | 09:26 |
udono | directly or with an url | 09:26 |
LordVan | https://blog.lordvan.com/blog/using-proteus-to-browse-edit-trytons-data/ <- i am documenting what I do in my blog | 09:27 |
LordVan | btw | 09:32 |
LordVan | I 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 |
LordVan | know 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 |
LordVan | basically similar to the product_attribute "tab" but easier maybe | 09:35 |
LordVan | nm i know how i will do it .. | 09:52 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 09:57 | |
LordVan | anyone can help me with this error?: | 10:54 |
LordVan | https://dpaste.de/DS5h | 10:54 |
LordVan | probably something simple i missed or a stupid mistake | 10:54 |
LordVan | (first time i make my own model) | 10:54 |
LordVan | ah | 10:55 |
LordVan | never mind | 10:55 |
LordVan | ignore this | 10:55 |
LordVan | i am an idiot .. i just need a one2many field | 10:55 |
LordVan | err many2one | 10:58 |
-!- lukio(~lukio@186.143.138.129) has joined #tryton | 11:13 | |
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton | 11:25 | |
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton | 12:01 | |
-!- lukio(~lukio@190.48.100.222) has joined #tryton | 12:07 | |
-!- rpit(~rpit@p200300C88F269000897BC0D739F15B62.dip0.t-ipconnect.de) has joined #tryton | 12:24 | |
LordVan | .. forgetting to add new classes (ModelSQL, ModelView) in __init__.py is a pain lol | 12:49 |
LordVan | hmm seems like sometimes (during development) a trytond restart helps -- something was not reloaded/cached tespite running trytond-admin | 12:56 |
LordVan | oh 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 #tryton | 13:16 | |
LordVan | can 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 |
g5pw | Hey 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 #tryton | 14:03 | |
LordVan | makign an import from dolibarr is a pain when one doesn't speak french .. | 14:17 |
LordVan | ah nice | 14:59 |
LordVan | postgresql can export json .. might be better to do that than work with csv from dolibarr | 14:59 |
-!- lukio(~lukio@186.143.133.218) has joined #tryton | 15:00 | |
cedk | LordVan: Text are multiline so they expand to take all available space | 15:17 |
LordVan | yes but folder is char not text | 15:18 |
cedk | g5pw: do you mean to order? | 15:18 |
cedk | LordVan: not in the link you gave | 15:18 |
LordVan | argh | 15:19 |
LordVan | ah | 15:19 |
LordVan | so stupid .. i had tried somethign and thought i changed it back (adn with all the other Char under it i misread) | 15:19 |
LordVan | thanks for pointing that out to me .. | 15:19 |
-!- thaneor(~lenovo3@r167-56-170-166.dialup.adsl.anteldata.net.uy) has joined #tryton | 15:21 | |
LordVan | ah btw | 15:24 |
LordVan | cedk, 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 |
g5pw | cedk: I mean an auto-incrementing ID with a pattern (like patr | 15:42 |
g5pw | *party.code | 15:42 |
cedk | g5pw: you can do like for Party | 15:44 |
cedk | g5pw: use a sequence to fill a code field | 15:44 |
cedk | g5pw: and define an code_order method if you do not use padding | 15:45 |
g5pw | cedk: 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 |
cedk | g5pw: there is no magic, you have to set the value at create | 16:20 |
-!- lukio(~lukio@190.48.100.222) has joined #tryton | 16:52 | |
-!- lukio(~lukio@186.141.138.96) has joined #tryton | 18:41 | |
-!- thaneor1(~lenovo3@r179-24-157-255.dialup.adsl.anteldata.net.uy) has joined #tryton | 20:09 | |
-!- lukio(~lukio@186.141.134.12) has joined #tryton | 20:17 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 21:00 | |
-!- lukio(~lukio@190.48.100.222) has joined #tryton | 21:04 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21:23 | |
-!- lukio(~lukio@190.48.100.222) has joined #tryton | 21:30 | |
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton | 21:39 | |
-!- lukio(~lukio@186.141.136.178) has joined #tryton | 22:13 | |
-!- lukio(~lukio@186.141.202.111) has joined #tryton | 22:48 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:56 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!