chat.freenode.net #tryton log beginning Mon Sep 21 12:00:01 AM CEST 2020 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:49 | |
-!- srgdts_(~srgdts@55d40286.access.ecotel.net) has joined #tryton | 01:37 | |
-!- lucas_(~lucascast@177-185-139-15.dynamic.isotelco.net.br) has joined #tryton | 01:46 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 05:07 | |
-!- Timitos(~kpreisler@2001:a61:465:1901:762b:62ff:fe84:ed7e) has joined #tryton | 05:09 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:22 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:04 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 07:59 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 08:03 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 08:23 | |
mrichez | hi, 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 |
---|---|---|
cedk | mrichez: the syntax is defined as lower case | 09:08 |
mrichez | cedk: ok | 09:09 |
cedk | so typing OR should be considered as a record name search on the string "OR" | 09:10 |
mrichez | cedk: ok :-) | 09:14 |
-!- rpit(~rpit@p200300c88f309100748b1eff5bf2d1d7.dip0.t-ipconnect.de) has joined #tryton | 10:10 | |
-!- mariomop(~quassel@190.191.64.120) has joined #tryton | 10:34 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 12:03 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 14:07 | |
-!- wifasoi(9733fe4f@mittelab/sudo/wifasoi) has joined #tryton | 15:48 | |
wifasoi | Hi, 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 |
wifasoi | now, yes.. some account of my statement need a party, but still, any sugegstion on how troubleshoot this error? | 15:50 |
wifasoi | I digged quickly in the code and fourd this: https://github.com/tryton/account_statement/blob/422faf51d3d1260cd222303e5c29bc0905275dab/statement.py#L604-L610 | 15:51 |
wifasoi | There is a Line statement that dosn't specify the party when creating the line | 15:52 |
wifasoi | I want ask if is correct. | 15:52 |
pokoli | wifasoi: did you set up an account with party required for the account of the Journal? | 15:53 |
wifasoi | Ohh, I'll check (maybe is that) | 15:53 |
pokoli | wifasoi: This may cause the error, as the other lines use the party set on the line which is required when the account requires a party | 15:54 |
wifasoi | Yep, i have party required for the journal | 15:55 |
wifasoi | Right now i have thje "main cash" account with party required. I'll try to change the flag. | 15:58 |
wifasoi | Yep it was that. Thanks pokoli | 16:02 |
wifasoi | Now, 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 |
wifasoi | Or the module should be able to have a journal with an account with "party required" flag? | 16:04 |
pokoli | wifasoi: As the code does not work without a party required I think it makes sense to prevent such kind of accounts | 16:05 |
pokoli | s/without/with/ | 16:05 |
pokoli | wifasoi: development version also accepts a party with party_required: https://hg.tryton.org/modules/account_statement/file/26fa3b0a0196/journal.py#l36 | 16:06 |
wifasoi | Ok, time to file a bug report then :) | 16:08 |
srgdts | Hi, 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#l154 | 16: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 |
srgdts | For 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 |
srgdts | My 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 |
srgdts | The 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 |
srgdts | Is there any elegant solution possible? | 17:15 |
Timitos | srgdts: 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 topic | 17:34 |
srgdts | ok, thanks | 17:34 |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 19:03 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!