IRC logs of #tryton for Tuesday, 2013-02-26

chat.freenode.net #tryton log beginning Tue Feb 26 00:00:01 CET 2013
2013-02-26 12:27 <shalabhaggarwal_> cedk: Hi, I dint get why this is done - http://hg.tryton.org/2.6/modules/currency/file/cc70fd4f7edd/currency.py#l211
2013-02-26 12:29 <cedk> shalabhaggarwal_: to be sure to have the right context
2013-02-26 12:32 <shalabhaggarwal_> cedk: ok
2013-02-26 12:38 <sharoonthomas> cedk: looks like the active records generated by the trigger_action is wrong
2013-02-26 12:38 <sharoonthomas> cedk: http://hg.tryton.org/2.6/trytond/file/271dd306761f/trytond/ir/trigger.py#l158
2013-02-26 12:39 <sharoonthomas> cedk: line 164 - Model = Class of action_model, line 222 - records = Model.browse(ids)
2013-02-26 12:40 <sharoonthomas> cedk: so the active record instances sent are all of the action_model with ids of the model which caused the trigger
2013-02-26 12:42 <cedk> sharoonthomas: don't understand
2013-02-26 12:43 <sharoonthomas> cedk: the first argument passed to the trigger action function is records
2013-02-26 12:43 <sharoonthomas> cedk: http://hg.tryton.org/2.6/trytond/file/271dd306761f/trytond/ir/trigger.py#l224
2013-02-26 12:43 <cedk> sharoonthomas: what is the problem
2013-02-26 12:43 <sharoonthomas> cedk: the construction of these records seem wrong, since the class used to create these records are trigger action model and the ids are the source model
2013-02-26 12:44 <sharoonthomas> cedk: for example, if i was to build a trigger on product, then the ids would be the ids of products, but the class used to build the active record would be the trigger target
2013-02-26 12:45 <cedk> sharoonthomas: what is the trigger target ?
2013-02-26 12:45 <sharoonthomas> cedk: action model (http://hg.tryton.org/2.6/trytond/file/271dd306761f/trytond/ir/trigger.py#l52)
2013-02-26 12:48 <cedk> sharoonthomas: ok yes
2013-02-26 12:49 <sharoonthomas> cedk: its a bug right ?
2013-02-26 12:50 <cedk> sharoonthomas: yes
2013-02-26 12:51 <sharoonthomas> cedk: will send a patch
2013-02-26 12:53 <cedk> sharoonthomas: with a test case will be good
2013-02-26 12:53 <sharoonthomas> cedk: ok
2013-02-26 13:43 <cedk> sharoonthomas: the test fails without the patch?
2013-02-26 13:43 <sharoonthomas> cedk: yes
2013-02-26 13:44 <sharoonthomas> cedk: wrote the test, before the patch
2013-02-26 13:47 <sharoonthomas> cedk: i have updated the message on http://codereview.tryton.org/690002/ can you confirm if it is ok ?
2013-02-26 13:48 <cedk> sharoonthomas: ok
2013-02-26 13:48 <sharoonthomas> cedk: thanks, will upload a patch
2013-02-26 13:50 <sharoonthomas> cedk: can i update the copyright on COPYRIGHT in the same patch ?
2013-02-26 13:51 <cedk> sharoonthomas: don't think this change deserve it
2013-02-26 13:51 <sharoonthomas> cedk: fine
2013-02-26 13:51 <cedk> sharoonthomas: it is too trivial
2013-02-26 14:08 <sharoonthomas> cedk: sending patches to tryton is really too old fashioned and painful
2013-02-26 14:08 <sharoonthomas> cedk: and mercurial seems to be a terrible choice of a version control system for maintaining multiple series
2013-02-26 14:13 <cedk> sharoonthomas: learn your tools
2013-02-26 14:14 <cedk> sharoonthomas: you just have submit a patch base on an unpublished changeset
2013-02-26 14:15 <sharoonthomas> cedk: having to clone different repositories to have different versions of the same software really sucks
2013-02-26 14:16 <cedk> sharoonthomas: no it doesn't
2013-02-26 14:17 <cedk> sharoonthomas: the branch concept of git sucks
2013-02-26 14:21 <sharoonthomas> cedk: looks like a lot of people don't think so. Even bitbucket rolled out git support.
2013-02-26 14:21 <sharoonthomas> cedk: what is the major advantage of using hg over svn when it comes to the way tryton repositories are maintained ?
2013-02-26 14:22 <cedk> sharoonthomas: DVCS
2013-02-26 14:23 <cedk> sharoonthomas: but I must admit I don't like the path mercurial is going by copying git crappy stuffs
2013-02-26 14:24 <cedk> sharoonthomas: and bitbucket is not really a good platform
2013-02-26 14:24 <sharoonthomas> cedk: git + github makes contributing to open source software so much easier
2013-02-26 14:25 <cedk> sharoonthomas: it is a real mess
2013-02-26 14:25 <sharoonthomas> cedk: now that you say even mercurial is copying git features, you might as well think of going git
2013-02-26 14:25 <cedk> sharoonthomas: byt the way, I don't care about having a lot of contribution, it is the quality of contribution that's important
2013-02-26 14:25 <cedk> sharoonthomas: no, I just not use the new feature
2013-02-26 14:25 <cedk> sharoonthomas: like branch
2013-02-26 14:26 <sharoonthomas> cedk: why would contributions on something like github be worse ?
2013-02-26 14:26 <sharoonthomas> cedk: afaik, hg branches suck
2013-02-26 14:26 <cedk> sharoonthomas: I'm not saying that
2013-02-26 14:27 <cedk> sharoonthomas: you just say: github == more contributors, I just say I don't care about more contributors
2013-02-26 14:28 <sharoonthomas> cedk: openerp says the same thing in a different way. I don't think any open source project should make contributing difficult
2013-02-26 14:29 <cedk> sharoonthomas: it is not difficult
2013-02-26 14:29 <cedk> sharoonthomas: people has to learn the tools
2013-02-26 15:19 <jonan> Hi there. Trying to implement perpetual COGS using account_stock_anglo-saxon. Not clear on the required accounts in product/categories. I have created an asset account: Inventory and an expense account: COGS. What type of accounts are "Stock Customer" and "Stock Supplier" ?
2013-02-26 15:40 <basman> I deployed Tryton in a company that already has products in stock, I have entered all products types, costs and prices of the company in Product module. Also, I have set up a company and minimal chart of accounts.Now I'm ready to enter the quantities of products I have, How should I do that ?
2013-02-26 15:45 <corro> basman: create an inventory under "Inventory & Stock/Inventories" (not sure what it's called in your language).
2013-02-26 15:50 <basman> corro: now suppose that I have a products that I may buy to use in making my salable and purchasable products, for example Oil or Salt. Those products, some time I just purchase them, use them in production "consume them", so, how shall I store such products?, are they salable and purchasable, I ,mean how shall I deal with them?
2013-02-26 15:54 <corro> basman: I'm no expert in stock management, but this sounds like a job for the 'production' module. Never used it personally though.
2013-02-26 15:58 <basman> corro: Okay, I have another question, I hope you know the answer. Suppose I started to sell a new product that never sold before by my company , after I list the product in products module, then, I got a 900 KG of that product, then shall I create new inventory or enter them via purchase operation or what I have to do?. Thx whether u know the answer or not :)
2013-02-26 16:06 <corro> basman: I'd say it depends on whether you bought these 900kg recently or just had it 'laying around'. A purchase influences your income statement, an inventory does not.
2013-02-26 16:09 <basman> corro: Okay, what's the difference between Fixed Cost ans Average Cost of the product that are determined when we define product type in products module?
2013-02-26 16:10 <corro> basman: Not sure. Haven't used this feature yet.
2013-02-26 16:12 <basman> corro: Do you have knowledge in Financial Module ?
2013-02-26 16:12 <corro> basman: A bit, yes
2013-02-26 16:13 <basman> corro: in my case, the company is small, as I told you, so, can I use the minimal chart of accounts that comes by default with Tryton?
2013-02-26 16:15 <corro> basman: it's a very generic chart of accounts that comes with the account module. You probably want to at least tweak it to your needs.
2013-02-26 16:19 <basman> corro: I'm not expert in accounting and I don't have an accountant, so, do you think that chart is enough ?. what is your advice ?
2013-02-26 16:40 <corro> basman: you may work with it, the basic accounts are all there, it's just not very detailed. For example there is just one revenue and one expense account. Also the accounting preferences tend to be heavily dependant on your country.
2013-02-26 16:43 <basman> This is the thing that I'm not able to understand it, I found that there are charts of accounts specific for each country, so, what is the purpose of that, what is the difference here?
2013-02-26 16:44 <basman> In Tryton, there is not chart of account specific to my country
2013-02-26 16:52 <corro> basman: there are countries with a default chart of accounts provided by the government. This allows easier comparability of companies. You should learn about the legal guidlines in your country before you start doing accounting.
2013-02-26 20:20 <basman> I found that there are charts of accounts specific for each country, so, what is the purpose of that, what is the difference here?
2013-02-26 22:50 <basman> How I should enter transactions that are not a part of sale or purchase operation, such as, Salaries, payments for some fixations or maintenance ...etc. how could I enter them in the system?
2013-02-26 23:10 <basman> mmmm

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