IRC logs of #tryton for Friday, 2017-02-03

chat.freenode.net #tryton log beginning Fri Feb 3 00:00:01 CET 2017
-!- sebd(~seb@85.31.145.12) has joined #tryton00:04
-!- uha4(~uha4@146.0.103.221) has left #tryton00:22
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:27
-!- thaneor(~ldlc6@r179-25-102-10.dialup.adsl.anteldata.net.uy) has joined #tryton00:32
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton01:09
-!- kstenger1(~karla@r186-54-22-78.dialup.adsl.anteldata.net.uy) has joined #tryton01:21
-!- smarro(~sebastian@181.16.7.104) has joined #tryton01:33
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:53
-!- smarro(~sebastian@181.16.7.104) has joined #tryton04:34
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton07:28
-!- rpit(~rpit@aftr-37-24-149-87.unity-media.net) has joined #tryton08:11
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:21
-!- JanGB(~jan@193.174.248.1) has joined #tryton08:50
-!- JanGB1(~jan@193.174.248.1) has joined #tryton08:51
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:58
-!- sisalp(~sisalpuse@ziozio.sisalp.net) has joined #tryton10:08
-!- mamcode(~mamcode@201.248.105.11) has joined #tryton10:10
-!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton10:30
-!- thaneor(~ldlc6@r179-25-78-115.dialup.adsl.anteldata.net.uy) has joined #tryton12:05
-!- mariomop(~quassel@host223.186-124-244.telecom.net.ar) has joined #tryton12:23
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton13:31
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton13:35
-!- smarro(~sebastian@181.16.7.104) has joined #tryton14:25
-!- postal_blab(~quassel@2001:41d0:8:baae::bad:deed) has joined #tryton14:37
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton15:01
-!- postal_blab(~quassel@2001:41d0:8:baae::bad:deed) has joined #tryton15:12
-!- postal_blab(~quassel@2001:41d0:8:baae::bad:deed) has joined #tryton15:13
-!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton15:19
-!- JanGB(~jan@p54B9878F.dip0.t-ipconnect.de) has joined #tryton15:26
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton15:27
-!- tr33(~tr33@2a01:198:45e:babe:1922:bb7f:4441:3387) has joined #tryton15:27
tr33hello agin15:27
-!- JanGB(~jan@p54B9878F.dip0.t-ipconnect.de) has joined #tryton15:45
tr33working with proteus and tryton models seems harder than expected15:51
tr33I've spent nearly 3 days trying to import standalone invoice-inlines with a minimal set of entries - but proteus behaves different to tryton-client15:53
cedktr33: I doubt, usually it is the code written that does not behaves like the client15:56
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has left #tryton16:00
tr33hmm, well. current problem is that proteus doesn't seem to add taxes automatically based on the articles template16:06
tr33but it can also be an error related to assigning the correct models/attributes16:07
tr33but my understandig of trytons data-structures is very limited16:07
tr33is there any way to call the client-import via script ?16:15
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton16:23
cedktr33: I answered you yesterday that the order of the field is important16:31
cedktr33: so you have to define the invoice_type before putting the product16:31
-!- tr33(~tr33@2a01:198:45e:babe:e55b:d85c:e864:5202) has joined #tryton16:43
tr33re16:43
cedktr33: did you see my message?17:08
tr33mompl17:15
tr33oh okay - i wasn't aware that the ordering of fields in cvs-interface matters17:16
tr33is this by design or a fault in my interface usage ?17:21
cedktr33: it is not about cvs17:22
cedktr33: it is about how the invoice line behaves17:22
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton17:23
tr33'The field "Invoice" on "Invoice Line" is required.17:23
cedktr33: the on_change_product check the type of invoice to know which taxes to apply17:23
tr33lines are "invoice typeInvoiceaccountcompany.partyCurrencydescriptionnotepartyproduct.codequantityunitunit_price"17:23
cedktr33: but as you set it after the product, it uses a default17:23
tr33no: invoice type,Invoice,account,company.party,Currency,description,note,party,product.code,quantity,unit,unit_price17:24
cedktr33: this is your order but with proteus you must enter data in the same order as you do in the UI17:24
tr33oh okay17:24
tr33maybe proteus is not the best way to this... ?17:25
cedktr33: it depends, what is the purpose?17:28
tr33i'd like to ..17:29
tr331. generate invoice-lines with an external tool in csv-format (minimal information set)17:29
tr332. import them into tryton as easy as possible17:30
cedktr33: how often? by who?17:30
tr33tryton should only rely on party-id, artikle-id, account, etc. tax information or other account-information should not be part of the interface17:31
tr33as often I want to, via script call17:31
tr33my script should obtain a csv-file (+model-information) and import this stuff17:32
cedktr33: I see two options:17:35
cedk- use proteus17:35
cedk- write a wizard an upload the file to the server17:35
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton17:36
tr33writing a (gui-) wizard is not realy an option - just want to interface the tryton server17:39
tr33any other structured format would also be welcome: i.e.json?17:39
cedktr33: it is not about the format but just the proteus script which should be written correctly17:41
tr33hmm - are there any templates i could use ?17:45
tr33currently, i'd just like to import invoice_lines17:59
cedktr33: it is quite custom so I doubt there is any template18:01
cedktr33: the script you shown yesterday was no bad, just set the invoice_type before the product18:01
tr33:-( just importing data for a model seems to be that hard ?18:02
tr33hm, okay. if the fild ordering matters, how could i find out the correct ordering?18:03
tr33    https://seafile.nexplosion.de/d/53bb871b67/18:05
tr33is my script - it tries to lookup the models and fields, but the server complains "'The field "Invoice" on "Invoice Line" is required."18:05
tr33now i've no clue how to help myself anymore18:06
cedktr33: to know the order, you have to look at the on_change dependencies of each fields18:08
cedktr33: the field invoice is required if one of those fields are missing: invoice_type, party, currency, company18:10
cedktr33: you can find such information by looking at the definition of the field18:10
tr33looking where?18:18
cedktr33: in the module code18:18
tr33oO18:18
tr33:-/18:19
tr33i don't see myself in the situation to analyze the source for this kind of depencies18:21
tr33i'm not a tryton developer and don't want to become one18:21
tr33I'd just like to import some simple data *crying*18:22
cedktr33: reading Model definition does not require special knowledge18:27
tr33well, in this case, for me, it does18:29
tr33i.e. modules/account_invoice_line_standalone/invoice.xml doesn't give me any clue18:31
cedktr33: it is account_invoice/invoice.py18:32
nicoetr33: Maybe you don't want to import data into tryton but you have to get some knowledge about the model in order to do your job properly18:32
nicoetr33: So you have to get at least a bit used to the datamodel of tryton18:33
tr33hmm - okay18:42
tr33i'll try again..18:42
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton18:46
tr33isn't it just possible to call trytons import-interface (the one i use in the client), hand over the field definitions and let it do the task ?18:50
cedktr33: this interface does not trigger any on_change so you will have no taxes prefilled18:53
tr33but it does!18:53
tr33using the client-csv works with my file, and it prefills the tax based on the articles data18:54
cedktr33: I wrote the import CSV so I know it does not trigger on_change's18:55
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton18:56
cedktr33: maybe you have a custom module that trigger them…18:58
tr33not really: i'm yust using trytons default modules19:05
tr33account_invoice, account_invoice_line_standalone19:06
tr33i'd just like to import entities for the last one: account_invoice_line_standalone19:07
-!- mamcode(~mamcode@201.209.206.254) has joined #tryton19:28
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton19:28
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton19:38
-!- mamcode_(~mamcode@201.209.206.254) has joined #tryton20:23
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton20:33
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton20:38
-!- smarro(~sebastian@181.16.7.104) has joined #tryton21:16
-!- wagon63(~wagon63@ip24-251-102-210.ph.ph.cox.net) has joined #tryton21:20
-!- JanGB(~jan@146.52.56.23) has joined #tryton21:22
wagon63hi, have tried a couple odoo implementations and am needing a platform for a new customer here in the usa, wondering if there is much going on here stateside for chart of accounts, cc integration and how much different, hopefully easier tryton is to enhance / extend21:22
-!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton21:49
-!- perilla(~perilla@corp-190-57-169-210.cue.puntonet.ec) has left #tryton23:29

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!