IRC logs of #tryton for Thursday, 2009-06-04

chat.freenode.net #tryton log beginning Thu Jun 4 00:00:02 CEST 2009
CIA-48eric roundup * #1073/NameError: global name 'logging' is not defined: [new] Salim Afficher le profil Translate to Fran├žais Translated (View Original) Autres options 2 juin, 23:17 De : Salim <openconcept...@g ...00:07
CIA-48http://bugs.tryton.org/roundup/issue107300:07
CIA-48C?dric Krier <ced@b2ck.com> default * 1835:fe4c8866551b trytond/trytond/model/modelstorage.py: Add missing import logging for issue107300:11
CIA-48http://hg.tryton.org/trytond/rev/fe4c8866551b00:11
CIA-48ced roundup * #1073/NameError: global name 'logging' is not defined: [resolved] Fixed with changeset fe4c8866551b00:13
CIA-48http://bugs.tryton.org/roundup/issue107300:13
-!- bechamel(n=user@host-85-201-74-27.brutele.be) has left #tryton00:21
-!- gremly(n=gremly@190.156.164.183) has joined #tryton00:28
-!- vengfulsquirrel(n=ian@c-67-160-236-234.hsd1.ca.comcast.net) has left #tryton00:47
-!- gremly(n=gremly@190.156.164.183) has joined #tryton02:59
-!- yangoon(n=mathiasb@p549F4B05.dip.t-dialin.net) has joined #tryton05:18
-!- gremly1(n=gremly@190.156.158.15) has joined #tryton05:52
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton07:38
-!- racke(n=racke@213.129.226.162) has joined #tryton08:28
-!- paepke(n=paepke@mail.metaldyne-nue.de) has joined #tryton08:43
-!- Timitos(n=kp@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton08:47
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton08:54
-!- enlightx(n=enlightx@host198-42-static.85-94-b.business.telecomitalia.it) has joined #tryton09:07
-!- bechamel(n=user@85.201.74.27) has joined #tryton09:22
CIA-48C?dric Krier <ced@b2ck.com> default * 1836:c0772944858b trytond/trytond/model/modelsql.py: Backed out changeset 669b79e387c309:23
CIA-48http://hg.tryton.org/trytond/rev/c0772944858b09:23
CIA-48C?dric Krier <ced@b2ck.com> default * 1837:6ff8a72b6500 trytond/: merge09:23
CIA-48http://hg.tryton.org/trytond/rev/6ff8a72b650009:23
CIA-48C?dric Krier <ced@b2ck.com> default * 1838:daa1a3c68443 trytond/trytond/model/modelsql.py: Read also non active records when creating brother_ids list in _update_tree09:23
CIA-48http://hg.tryton.org/trytond/rev/daa1a3c6844309:23
-!- racke(n=racke@213.129.226.162) has left #tryton09:23
CIA-48Bertrand Chenal <bch@b2ck.com> default * 32:7ee8a8c1c5ba project_revenue/ (9 files):11:19
CIA-48Improved project revenue:11:19
CIA-48- removed product on employee and timesheet line11:19
CIA-48- added cost (and cost history) on employee11:19
CIA-48- added product, list_price, revenue and cost_price on project.work11:19
CIA-48http://hg.tryton.org/modules/project_revenue/rev/7ee8a8c1c5ba11:19
CIA-48Bertrand Chenal <bch@b2ck.com> default * 60:13bc2ea96a5a project/work.py: Fix get_parent has several child may share the same parent11:21
CIA-48http://hg.tryton.org/modules/project/rev/13bc2ea96a5a11:21
CIA-48Bertrand Chenal <bch@b2ck.com> default * 61:3740cbe83671 project/work.py: Don't raise exception when searching with child_of as it is supported11:21
CIA-48http://hg.tryton.org/modules/project/rev/3740cbe8367111:21
CIA-48Bertrand Chenal <bch@b2ck.com> default * 62:ef8773022eb0 project/work.py: Fix for variable instantiation that was made to late11:21
CIA-48http://hg.tryton.org/modules/project/rev/ef8773022eb011:21
CIA-48Bertrand Chenal <bch@b2ck.com> default * 63:612a709c9ca5 project/work.xml: Use the right view for the "relate" action11:21
CIA-48http://hg.tryton.org/modules/project/rev/612a709c9ca511:22
CIA-48Bertrand Chenal <bch@b2ck.com> default * 64:36ff933c5748 project/work.xml: Provide a work type in the context when opening tasks via the relate button on project11:22
CIA-48http://hg.tryton.org/modules/project/rev/36ff933c574811:22
CIA-48Bertrand Chenal <bch@b2ck.com> default * 65:0454270cc8e6 project/ (work.py work.xml): Show company field on the generic view of project.work11:22
CIA-48http://hg.tryton.org/modules/project/rev/0454270cc8e611:22
CIA-48Bertrand Chenal <bch@b2ck.com> default * 33:525615180db5 project_revenue/service.py: Removed useless method11:26
CIA-48http://hg.tryton.org/modules/project_revenue/rev/525615180db511:26
CIA-48Bertrand Chenal <bch@b2ck.com> default * 34:ca6c86cdd470 project_revenue/service.py: Fix get_cost_price when there is nothing in cost_prices13:29
CIA-48http://hg.tryton.org/modules/project_revenue/rev/ca6c86cdd47013:29
CIA-48Bertrand Chenal <bch@b2ck.com> default * 35:0a00bddb22c1 project_revenue/ (service.py work.py): Handle currency digits on employee and work13:29
CIA-48http://hg.tryton.org/modules/project_revenue/rev/0a00bddb22c113:29
-!- woakas(n=woakas@190.144.69.234) has joined #tryton14:56
-!- _TiN_(n=TiN@190.189.9.80) has joined #tryton15:52
-!- woakas(n=woakas@190.144.69.234) has joined #tryton16:01
CIA-48dbrenck roundup * #1074/context handling is ambiguous: [new] class Test ... dummy = fields.Function("get_dummies", type="one2many", relation="dummy.dummy", string="Dummies", ...16:12
CIA-48http://bugs.tryton.org/roundup/issue107416:12
CIA-48ced roundup * #1074/context handling is ambiguous: [resolved] context on fields are used as the context of action when editing/creating relations. So it is useful only on field with relation. The c ...16:36
CIA-48http://bugs.tryton.org/roundup/issue107416:36
-!- tekknokrat(n=gthieleb@dslb-088-074-165-163.pools.arcor-ip.net) has joined #tryton16:50
CIA-48dbrenck roundup * #1074/context handling is ambiguous: [chatting] Your summary does not make it less ambiguous. The fields parameter is called "context" and not "context_under_certain_circumstances". ...17:02
CIA-48http://bugs.tryton.org/roundup/issue107417:02
-!- woakas(n=woakas@190.144.69.234) has joined #tryton17:31
CIA-48ced roundup * #1074/context handling is ambiguous: On 04/06/09 17:02 +0200, Brenckmann, Dirk wrote: > > Brenckmann, Dirk <db.developer@gmx.de> added the comment: > > Your summary does not make it ...17:36
CIA-48http://bugs.tryton.org/roundup/issue107417:36
CIA-48dbrenck roundup * #1074/context handling is ambiguous: > > - How can the context for get_ and set_ be modified? > It is the global context only. W00t - in other words: Explicit setting a context to so ...18:26
CIA-48http://bugs.tryton.org/roundup/issue107418:26
-!- gremly(n=gremly@190.156.158.15) has joined #tryton18:33
CIA-48ced roundup * #1074/context handling is ambiguous: On 04/06/09 18:26 +0200, Brenckmann, Dirk wrote: > > Brenckmann, Dirk <db.developer@gmx.de> added the comment: > > > > - How can the context for ...18:47
CIA-48http://bugs.tryton.org/roundup/issue107418:47
-!- vengfulsquirrel(n=ian@c-67-160-236-234.hsd1.ca.comcast.net) has joined #tryton19:01
-!- enlightx(n=enlightx@host-78-13-123-84.cust-adsl.tiscali.it) has joined #tryton19:11
-!- cedk_(n=ced@213.49.144.172) has joined #tryton19:19
-!- Timitos(n=kp@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton19:26
-!- gremly(n=gremly@190.156.158.15) has joined #tryton19:34
CIA-48Bertrand Chenal <bch@b2ck.com> default * 36:ed3a3cea6dfd project_revenue/ (service.py work.py work.xml):19:52
CIA-48Slight refactoring:19:52
CIA-48- rename cost_price to cost on work19:52
CIA-48- Use numeric type for function fields (cost_price on employee, cost and revenue on work)19:52
CIA-48- Isolate cost_price computation on employee and timesheet19:52
CIA-48http://hg.tryton.org/modules/project_revenue/rev/ed3a3cea6dfd19:52
-!- enlightx(n=enlightx@host-78-13-123-84.cust-adsl.tiscali.it) has joined #tryton21:03
CIA-48dbrenck roundup * #1074/context handling is ambiguous: > > > > - How can the context for get_ and set_ be modified? > > > It is the global context only. > > Explicit setting a context to some field res ...21:48
CIA-48http://bugs.tryton.org/roundup/issue107421:48
-!- carlos(n=carlos@77.224.191.31) has joined #tryton23:04
carloscedk_: hi, If you are around, could you take a look to http://paste.ubuntu.com/188573/ and tell me whether that's what you suggested to me so we add a way to handle taxes substitution in a generic way for the company-group special case we discussed a couple of weeks ago?23:09
carlosdon't pay attention to the tax.xml changes23:10
vengfulsquirrelcarlos: What is origin tax ?  Like sales tax at the point of sale?  Or like the customer's origin ?23:33
carlosvengfulsquirrel: that's for tax substitution23:33
carlosit's the tax assigned to a product23:34
carlosin the tax definition, you use it to define this tax B is only useful to substitute this origin_tax A23:34
carlosso it's complementary to tax group23:35
carlosto solve a corner case we have in Spain (and I guess in some other countries too, but seems like Germany and Belgium don't have it)23:35
vengfulsquirrelWhy would you substitute one tax for another ?23:35
carlosdo you know how the tax substitution code works in Tryton?23:36
vengfulsquirrelHa no I have no idea I've been reading the code for 3 days on and off23:37
vengfulsquirrelI don't think it solves my cases23:37
carlosfor instance, if you have a product with 16% of VAT, and you sell it to a party outside your country but in the EU, you don't charge such VAT (if they are registered in the VIES  system23:37
carlosso the tax changes depending on the party23:37
vengfulsquirrelDo you charge their country's VAT?23:38
carlosno, usually you don't charge VAT23:38
carlosbut you need to register it as 0% of VAT23:38
carloswell, that last part is not always true23:38
vengfulsquirrelOh so no taxes and then they are responsible for paying it on their end?23:38
carlosyes23:38
vengfulsquirrelThis is similar actually to one of my problems23:38
carloswhat's your problem?23:39
vengfulsquirrelFor sales tax, if I sell within my state there is a tax based on my region's sales tax if I sell out of state there is no sales tax or at least that's what I'm trying to do23:41
vengfulsquirrelThere is no VAT at all23:41
vengfulsquirrelSo actually besides VAT being involved that identical to your problem.23:42
vengfulsquirrel*is23:42
vengfulsquirrelAdditionally depending on where the sale is made I need a different tax as well, but that is more of a point of sale thing.23:42
vengfulsquirrelSo 2 locations have a different tax.23:42
vengfulsquirrelAnd I guess the third thing is that some parties do not pay taxes, such as resellers and the government.23:43
vengfulsquirrelI don't understand the notion of patterns in the tax system or how tax groups are used.23:43
carlosfor the location problem, there is nothing yet done23:44
carlosbut it's already a known problem23:44
vengfulsquirrelYeah I was going to try and setup sub companies for each location and then expliclity set a sales tax when creating a sale that is pulled from a default sales tax set on the sub companies.23:45
carlospeople from virtual things were already doing some prototypes to handle that case, but I'm not sure what's the status of it23:45
carlosfor the other, current system is enough for you23:46
carlosvengfulsquirrel: did you take a look to the german or belgium chart of accounts?23:46
carlosvengfulsquirrel: there you have some examples of groups usage23:46
vengfulsquirrelNo I have not, where do I obtain those?23:46
vengfulsquirrelAre they in the source?23:46
vengfulsquirrelxml files?23:47
carloshttp://hg.tryton.org/hgwebdir.cgi/1.2/modules/account_de_skr03/23:47
carloshttp://hg.tryton.org/hgwebdir.cgi/modules/account_be/23:47
carlosvengfulsquirrel: basically, you create a group for taxes attached  to services and another for the ones attached to goods23:48
carlosand then, you create  a tax rule for out of your state sells23:48
carlosand another tax rule for resellers and government23:49
carlosand by default, you use for all your products the taxes for your state23:49
carlosthen, a party from your state will not have a tax rule assigned23:50
carlosa party from outside your state will have the tax rule for out state sells23:50
carlosand a reseller or government will use the tax rule for tax free rules23:50
carlosthat's a really basic explanation, but I hope it's enough to get the idea23:51
vengfulsquirrelYeah no that sounds right, I thought there was another level with the patterns, a party can only have one rule at any given time though right?  I guess the location problem directly conflicts with that which is why I settled on this explicit sales tax solution.23:54
carlosa party could have only a tax rule at any given time, however one when it sells and another one when it buys23:55
carlosalso, a tax rule has a set of tax rule lines23:55
carlosso you could substitute more than one tax, if that's your question, they only need to be in a different group23:56
carlosalso, just take care that if you add more than one tax rule line with the same group, only the first one is evaluated, the others are ignored (this is for future expansion of the tax system)23:57
vengfulsquirrelinteresting, but besides that all the substitutions are applied if the rule is used.23:58
carlosright, if there is no tax rule assigned, there is no substitution applied23:59

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!