IRC logs of #tryton for Monday, 2020-09-21

chat.freenode.net #tryton log beginning Mon Sep 21 12:00:01 AM CEST 2020
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:49
-!- srgdts_(~srgdts@55d40286.access.ecotel.net) has joined #tryton01:37
-!- lucas_(~lucascast@177-185-139-15.dynamic.isotelco.net.br) has joined #tryton01:46
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton05:07
-!- Timitos(~kpreisler@2001:a61:465:1901:762b:62ff:fe84:ed7e) has joined #tryton05:09
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:22
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:04
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton07:59
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton08:03
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton08:23
mrichezhi, on the gtk client, in the filter field, i can only use 'OR' 'AND' in lower case... using them in uppercase return nothing... bug ?08:45
cedkmrichez: the syntax is defined as lower case09:08
mrichezcedk: ok09:09
cedkso typing OR should be considered as a record name search on the string "OR"09:10
mrichezcedk: ok :-)09:14
-!- rpit(~rpit@p200300c88f309100748b1eff5bf2d1d7.dip0.t-ipconnect.de) has joined #tryton10:10
-!- mariomop(~quassel@190.191.64.120) has joined #tryton10:34
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton12:03
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:07
-!- wifasoi(9733fe4f@mittelab/sudo/wifasoi) has joined #tryton15:48
wifasoiHi, I'm using the statement module.. and tryton is throwing me the "A value is required for field "party" in "Account Move Line""15:50
wifasoinow, yes.. some account of my statement need a party, but still, any sugegstion on how troubleshoot this error?15:50
wifasoiI digged quickly in the code and fourd this: https://github.com/tryton/account_statement/blob/422faf51d3d1260cd222303e5c29bc0905275dab/statement.py#L604-L61015:51
wifasoiThere is a Line statement that dosn't specify the party when creating the line15:52
wifasoiI want ask if is correct.15:52
pokoliwifasoi: did you set up an account with party required for the account of the Journal?15:53
wifasoiOhh, I'll check (maybe is that)15:53
pokoliwifasoi: This may cause  the error, as the other lines use the party set on the line which is required when the account requires a party15:54
wifasoiYep, i have party required for the journal15:55
wifasoiRight now i have thje "main cash" account with party required. I'll try to change the flag.15:58
wifasoiYep it was that. Thanks pokoli16:02
wifasoiNow, is this a bug? or just a state I'm in becouse of upgrading from 5.4 to 5.6? (maybe because I was able to select a "party required" account before and now I cannot)16:03
wifasoiOr the module should be able to have a journal with an account with "party required" flag?16:04
pokoliwifasoi: As the code does not work without a party required I think it makes sense to prevent such kind of accounts16:05
pokolis/without/with/16:05
pokoliwifasoi: development version also accepts a party with party_required: https://hg.tryton.org/modules/account_statement/file/26fa3b0a0196/journal.py#l3616:06
wifasoiOk, time to file a bug report then :)16:08
srgdtsHi, it seems the DeactivableMixinTestCase don't runs, because it's not added to suite: https://hg.tryton.org/trytond/file/default/trytond/tests/test_mixins.py#l15416:10
srgdts Another topic. I'm working on a module that extends the taxation. It implements a differentiation tax, is a margin tax scheme used in Germany for second hand goods and arts.17:14
srgdtsFor example: selling one product, the selling price is 219 and the cost price is 100. The invoice total is than 219. The tax base is selling price - cost price - VAT, i.e. tax base is 219 - 100 - 19 = 100, where 19 is 19% VAT.17:14
srgdtsMy solution is to add a new 'differential' tax type. Compared to the present tax types the differential tax type requires knowledge of cost price to be processed/computed.17:15
srgdtsThe real challenge is the TaxableMixin. The taxable_lines are consists of touples with four elements: tax, unit price, quantity, unit cost price and date. The TaxableMixin methods _compute_tax_line and _get_taxes are extended. I didn't found a way to apply changes to TaxableMixin within a module, so I have to fork tryton or monkey patch it.17:15
srgdtsIs there any elegant solution possible?17:15
Timitossrgdts: i think it would be better to ask something like that on discuss.tryton.org as it would be good to write a blueprint about this topic17:34
srgdtsok, thanks17:34
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton19:03

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