IRC logs of #tryton for Tuesday, 2012-08-28

chat.freenode.net #tryton log beginning Tue Aug 28 00:00:01 CEST 2012
2012-08-28 09:28 <scrapper> hello folks, so there is no way to apply automatic "Tax Lines" via "Open Journal" - always we have to apply them manually? Is this a design issue? https://bugs.tryton.org/issue2071?@ok_message=issue%202071%20nosy%20edited%20ok&@template=item
2012-08-28 10:25 <cedk> scrapper: you can by adding taxes on the account
2012-08-28 10:26 <scrapper> cedk: does not work for me... already tried. have to add them manually.
2012-08-28 10:27 <scrapper> cedk: this must have to do something with my account (SKR07) and codes.
2012-08-28 10:27 <scrapper> cedk: good to know it works for you... so i have to adjust/fix this one day for SKR07 (austrian account chart.)
2012-08-28 10:39 <cedk> scrapper: I made one move like this on the demo server on expense journal
2012-08-28 10:44 <scrapper> great... so my account SKR07 seems to be broken similar as the german SKR03 account.
2012-08-28 10:45 <scrapper> cedk: great... so my account SKR07 seems to be broken similar as the german SKR03 account for taxes when trying to add them automatically via "Open Journal".
2012-08-28 10:45 <scrapper> right now i will do the taxes manually ... and fix this in the future.
2012-08-28 10:58 <cedk> scrapper: I don't think it is linked to the account chart module
2012-08-28 10:58 <cedk> scrapper: taxes applied by default on an account depends of the company
2012-08-28 10:58 <cedk> scrapper: you must add it yourself
2012-08-28 11:00 <scrapper> cedk: as soon as i know what is the reason for that issue i will post it to the group.
2012-08-28 11:03 <cedk> scrapper: I don't understand
2012-08-28 11:03 <scrapper> cedk: right now, i have taxes. they work fine. The problem in my understanding is that... there is not Tax code on taxes itself... so the System does not know how to handle them via "Open Journal". When applying taxes via "Invoice" module by example ... i will tell the system the tax code... so it knows what to do. But adding "Tax Code" is not possible via "Open Journal".
2012-08-28 11:03 <cedk> scrapper: It is possible
2012-08-28 11:12 <scrapper> cedk: yes in "Tax Codes" the Taxes point to Codes.
2012-08-28 11:13 <scrapper> cedk: But if i tell my system a specific "Tax"-Name (this is possible on moves by example...) i have to fill in the proper "Tax Code" manually. it does not know about the relationship between them.
2012-08-28 11:14 <scrapper> cedk: I am running Version 2.2.0
2012-08-28 11:14 <cedk> scrapper: I don't understand
2012-08-28 11:14 <scrapper> cedk: don't worry. I will inform you as soon as I know how all goes together. Right now.. thanks for your help!
2012-08-28 11:15 <scrapper> cedk: good it works manually!
2012-08-28 17:40 -!- cristatus(~amit@1.22.99.142) has left #tryton
2012-08-28 19:02 <juanfe> Hello, all. How can I activate the filter in a tree in such a way when I fill the text it look for any of the fields? like in Currencies, I'm trying to make a module for 2.4!
2012-08-28 19:03 <cedk> juanfe: override the search_rec_mane method
2012-08-28 19:14 <juanfe> thx cedk
2012-08-28 22:53 <cjbarnes18> cedk: ping
2012-08-28 22:56 <cedk> cjbarnes18: pong
2012-08-28 22:57 <cjbarnes18> hi cedk, how best to fix my patch files? is it safe to change the .pach file text directly?
2012-08-28 22:57 <cjbarnes18> .patch **
2012-08-28 22:58 <cedk> cjbarnes18: make a hg rollback and redo it
2012-08-28 22:58 <cjbarnes18> ok, thanks
2012-08-28 23:26 <albertca> cedk: is there a way to copy an object with the new ActiveRecord?
2012-08-28 23:27 <cedk> albertca: there is still the copy method
2012-08-28 23:28 <albertca> cedk: I mean an instance (not in the database)
2012-08-28 23:28 <albertca> cedk: I'm trying to replace explode_bom() and on_change_product() in production module
2012-08-28 23:29 <albertca> cedk: I think I'll have to pass bom and uom as parameters to explode_bom() unless I can copy an object and execute explode_bom() in it
2012-08-28 23:32 <cedk> albertca: don't understand
2012-08-28 23:32 <albertca> explode_bom() currently receives a values dict
2012-08-28 23:32 <cedk> albertca: it must become an instance method
2012-08-28 23:32 <albertca> cedk: but on_change() no longer has a dict to pass
2012-08-28 23:32 <albertca> alright
2012-08-28 23:33 <albertca> cedk: but on_change() currently changes the "values" to pass to explode_bom()
2012-08-28 23:33 <cedk> albertca: on_change are also instance method
2012-08-28 23:33 <albertca> cedk: so I have to change "self"
2012-08-28 23:33 <cedk> albertca: yes
2012-08-28 23:34 <albertca> cedk: but I don't think it's ok to change self in cas of inheritance of another module...
2012-08-28 23:34 <albertca> cedk: I think I should newobj=copy(self) and then newobj.explode_bom()
2012-08-28 23:34 <cedk> albertca: it is fine to change
2012-08-28 23:34 <albertca> cedk: why?
2012-08-28 23:35 <albertca> cedk: what if another module overrides on_change_product() and calls super()?
2012-08-28 23:35 <albertca> cedk: it will get the incorrect object, won't it?
2012-08-28 23:35 <albertca> cedk: object => parameters received from the client
2012-08-28 23:36 <albertca> cedk: the same way current code does values = values.copy()
2012-08-28 23:36 <cedk> albertca: don't care because it will be the value the record will have
2012-08-28 23:38 <albertca> cedk: ok, will do that, then
2012-08-28 23:38 <albertca> cedk: thanks

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