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

chat.freenode.net #tryton log beginning Fri Feb 3 00:00:01 CET 2017
2017-02-03 00:04 -!- sebd(~seb@85.31.145.12) has joined #tryton
2017-02-03 00:22 -!- uha4(~uha4@146.0.103.221) has left #tryton
2017-02-03 00:27 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-02-03 00:32 -!- thaneor(~ldlc6@r179-25-102-10.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-02-03 01:09 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-02-03 01:21 -!- kstenger1(~karla@r186-54-22-78.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-02-03 01:33 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-02-03 01:53 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-02-03 04:34 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-02-03 07:28 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-02-03 08:11 -!- rpit(~rpit@aftr-37-24-149-87.unity-media.net) has joined #tryton
2017-02-03 08:21 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-02-03 08:50 -!- JanGB(~jan@193.174.248.1) has joined #tryton
2017-02-03 08:51 -!- JanGB1(~jan@193.174.248.1) has joined #tryton
2017-02-03 09:58 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-02-03 10:08 -!- sisalp(~sisalpuse@ziozio.sisalp.net) has joined #tryton
2017-02-03 10:10 -!- mamcode(~mamcode@201.248.105.11) has joined #tryton
2017-02-03 10:30 -!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2017-02-03 12:05 -!- thaneor(~ldlc6@r179-25-78-115.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-02-03 12:23 -!- mariomop(~quassel@host223.186-124-244.telecom.net.ar) has joined #tryton
2017-02-03 13:31 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2017-02-03 13:35 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-02-03 14:25 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-02-03 14:37 -!- postal_blab(~quassel@2001:41d0:8:baae::bad:deed) has joined #tryton
2017-02-03 15:01 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-02-03 15:12 -!- postal_blab(~quassel@2001:41d0:8:baae::bad:deed) has joined #tryton
2017-02-03 15:13 -!- postal_blab(~quassel@2001:41d0:8:baae::bad:deed) has joined #tryton
2017-02-03 15:19 -!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton
2017-02-03 15:26 -!- JanGB(~jan@p54B9878F.dip0.t-ipconnect.de) has joined #tryton
2017-02-03 15:27 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-02-03 15:27 -!- tr33(~tr33@2a01:198:45e:babe:1922:bb7f:4441:3387) has joined #tryton
2017-02-03 15:27 <tr33> hello agin
2017-02-03 15:45 -!- JanGB(~jan@p54B9878F.dip0.t-ipconnect.de) has joined #tryton
2017-02-03 15:51 <tr33> working with proteus and tryton models seems harder than expected
2017-02-03 15:53 <tr33> I've spent nearly 3 days trying to import standalone invoice-inlines with a minimal set of entries - but proteus behaves different to tryton-client
2017-02-03 15:56 <cedk> tr33: I doubt, usually it is the code written that does not behaves like the client
2017-02-03 16:00 -!- g5pw(~g5pw@mittelab/sudo/g5pw) has left #tryton
2017-02-03 16:06 <tr33> hmm, well. current problem is that proteus doesn't seem to add taxes automatically based on the articles template
2017-02-03 16:07 <tr33> but it can also be an error related to assigning the correct models/attributes
2017-02-03 16:07 <tr33> but my understandig of trytons data-structures is very limited
2017-02-03 16:15 <tr33> is there any way to call the client-import via script ?
2017-02-03 16:23 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-02-03 16:31 <cedk> tr33: I answered you yesterday that the order of the field is important
2017-02-03 16:31 <cedk> tr33: so you have to define the invoice_type before putting the product
2017-02-03 16:43 -!- tr33(~tr33@2a01:198:45e:babe:e55b:d85c:e864:5202) has joined #tryton
2017-02-03 16:43 <tr33> re
2017-02-03 17:08 <cedk> tr33: did you see my message?
2017-02-03 17:15 <tr33> mompl
2017-02-03 17:16 <tr33> oh okay - i wasn't aware that the ordering of fields in cvs-interface matters
2017-02-03 17:21 <tr33> is this by design or a fault in my interface usage ?
2017-02-03 17:22 <cedk> tr33: it is not about cvs
2017-02-03 17:22 <cedk> tr33: it is about how the invoice line behaves
2017-02-03 17:23 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-02-03 17:23 <tr33> 'The field "Invoice" on "Invoice Line" is required.
2017-02-03 17:23 <cedk> tr33: the on_change_product check the type of invoice to know which taxes to apply
2017-02-03 17:23 <tr33> lines are "invoice typeInvoiceaccountcompany.partyCurrencydescriptionnotepartyproduct.codequantityunitunit_price"
2017-02-03 17:23 <cedk> tr33: but as you set it after the product, it uses a default
2017-02-03 17:24 <tr33> no: invoice type,Invoice,account,company.party,Currency,description,note,party,product.code,quantity,unit,unit_price
2017-02-03 17:24 <cedk> tr33: this is your order but with proteus you must enter data in the same order as you do in the UI
2017-02-03 17:24 <tr33> oh okay
2017-02-03 17:25 <tr33> maybe proteus is not the best way to this... ?
2017-02-03 17:28 <cedk> tr33: it depends, what is the purpose?
2017-02-03 17:29 <tr33> i'd like to ..
2017-02-03 17:29 <tr33> 1. generate invoice-lines with an external tool in csv-format (minimal information set)
2017-02-03 17:30 <tr33> 2. import them into tryton as easy as possible
2017-02-03 17:30 <cedk> tr33: how often? by who?
2017-02-03 17:31 <tr33> tryton should only rely on party-id, artikle-id, account, etc. tax information or other account-information should not be part of the interface
2017-02-03 17:31 <tr33> as often I want to, via script call
2017-02-03 17:32 <tr33> my script should obtain a csv-file (+model-information) and import this stuff
2017-02-03 17:35 <cedk> tr33: I see two options:
2017-02-03 17:35 <cedk> - use proteus
2017-02-03 17:35 <cedk> - write a wizard an upload the file to the server
2017-02-03 17:36 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2017-02-03 17:39 <tr33> writing a (gui-) wizard is not realy an option - just want to interface the tryton server
2017-02-03 17:39 <tr33> any other structured format would also be welcome: i.e.json?
2017-02-03 17:41 <cedk> tr33: it is not about the format but just the proteus script which should be written correctly
2017-02-03 17:45 <tr33> hmm - are there any templates i could use ?
2017-02-03 17:59 <tr33> currently, i'd just like to import invoice_lines
2017-02-03 18:01 <cedk> tr33: it is quite custom so I doubt there is any template
2017-02-03 18:01 <cedk> tr33: the script you shown yesterday was no bad, just set the invoice_type before the product
2017-02-03 18:02 <tr33> :-( just importing data for a model seems to be that hard ?
2017-02-03 18:03 <tr33> hm, okay. if the fild ordering matters, how could i find out the correct ordering?
2017-02-03 18:05 <tr33> https://seafile.nexplosion.de/d/53bb871b67/
2017-02-03 18:05 <tr33> is my script - it tries to lookup the models and fields, but the server complains "'The field "Invoice" on "Invoice Line" is required."
2017-02-03 18:06 <tr33> now i've no clue how to help myself anymore
2017-02-03 18:08 <cedk> tr33: to know the order, you have to look at the on_change dependencies of each fields
2017-02-03 18:10 <cedk> tr33: the field invoice is required if one of those fields are missing: invoice_type, party, currency, company
2017-02-03 18:10 <cedk> tr33: you can find such information by looking at the definition of the field
2017-02-03 18:18 <tr33> looking where?
2017-02-03 18:18 <cedk> tr33: in the module code
2017-02-03 18:18 <tr33> oO
2017-02-03 18:19 <tr33> :-/
2017-02-03 18:21 <tr33> i don't see myself in the situation to analyze the source for this kind of depencies
2017-02-03 18:21 <tr33> i'm not a tryton developer and don't want to become one
2017-02-03 18:22 <tr33> I'd just like to import some simple data *crying*
2017-02-03 18:27 <cedk> tr33: reading Model definition does not require special knowledge
2017-02-03 18:29 <tr33> well, in this case, for me, it does
2017-02-03 18:31 <tr33> i.e. modules/account_invoice_line_standalone/invoice.xml doesn't give me any clue
2017-02-03 18:32 <cedk> tr33: it is account_invoice/invoice.py
2017-02-03 18:32 <nicoe> tr33: 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 properly
2017-02-03 18:33 <nicoe> tr33: So you have to get at least a bit used to the datamodel of tryton
2017-02-03 18:42 <tr33> hmm - okay
2017-02-03 18:42 <tr33> i'll try again..
2017-02-03 18:46 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-02-03 18:50 <tr33> isn'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 ?
2017-02-03 18:53 <cedk> tr33: this interface does not trigger any on_change so you will have no taxes prefilled
2017-02-03 18:53 <tr33> but it does!
2017-02-03 18:54 <tr33> using the client-csv works with my file, and it prefills the tax based on the articles data
2017-02-03 18:55 <cedk> tr33: I wrote the import CSV so I know it does not trigger on_change's
2017-02-03 18:56 -!- irclog(~irclog@moretus.b2ck.com) has joined #tryton
2017-02-03 18:58 <cedk> tr33: maybe you have a custom module that trigger them…
2017-02-03 19:05 <tr33> not really: i'm yust using trytons default modules
2017-02-03 19:06 <tr33> account_invoice, account_invoice_line_standalone
2017-02-03 19:07 <tr33> i'd just like to import entities for the last one: account_invoice_line_standalone
2017-02-03 19:28 -!- mamcode(~mamcode@201.209.206.254) has joined #tryton
2017-02-03 19:28 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2017-02-03 19:38 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2017-02-03 20:23 -!- mamcode_(~mamcode@201.209.206.254) has joined #tryton
2017-02-03 20:33 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-02-03 20:38 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton
2017-02-03 21:16 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-02-03 21:20 -!- wagon63(~wagon63@ip24-251-102-210.ph.ph.cox.net) has joined #tryton
2017-02-03 21:22 -!- JanGB(~jan@146.52.56.23) has joined #tryton
2017-02-03 21:22 <wagon63> hi, 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 / extend
2017-02-03 21:49 -!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2017-02-03 23:29 -!- perilla(~perilla@corp-190-57-169-210.cue.puntonet.ec) has left #tryton

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