chat.freenode.net #tryton log beginning Thu Feb 21 00:00:02 CET 2013 | ||
2013-02-21 00:07 <plantian> If I want to close a fiscal year but there are open moves, does that mean there is an outstanding sale? | ||
2013-02-21 00:14 <plantian> Okay maybe a more specific question, if I have a canceled sale with an open invoice, what should I do with the invoice? | ||
2013-02-21 05:43 <iamnoob> hi, what exactly do i need to put in the 2nd parameter of field.one2many? im getting a keyerror | ||
2013-02-21 05:52 <plantian> hello | ||
2013-02-21 05:54 <plantian> iamnoob: The name of the field on the other model, ie. the name of the "parent" field on the child model. | ||
2013-02-21 05:57 <plantian> iamnoob: http://hg.tryton.org/modules/stock/file/406e2c3a95da/inventory.py#l35 -- the param here is "inventory" because the field on the InventoryLine model is "inventory": http://hg.tryton.org/modules/stock/file/406e2c3a95da/inventory.py#l235 | ||
2013-02-21 05:59 <plantian> iamnoob: I'm not sure how that would produce a keyerror though. | ||
2013-02-21 06:25 <iamnoob> plantian: sorry for the late reply, just took my lunch while thinking of it.. thanks.. give you a feedback again | ||
2013-02-21 06:54 <plantian> iamnoob: np | ||
2013-02-21 07:09 <iamnoob> plantian: its working now.. although its not what im hoping for... | ||
2013-02-21 07:10 <iamnoob> plantian: when i 'create a new record' on that one2many field. it wants me to enter values to the fields... what im hoping for is ,, that i would be able to select records that i previously saved on that model.. | ||
2013-02-21 07:11 <iamnoob> plantian: is there any alternative way to do this? | ||
2013-02-21 07:15 <plantian> iamnoob: that sounds like a many 2 one or many 2 many | ||
2013-02-21 07:17 <iamnoob> plantian: the problem i had with many2many is i can selected records.. but i cant input a Quantity value to it.. | ||
2013-02-21 07:19 <iamnoob> plantian: ie.. i would select a 'soda drink' then i need to put how much quantity of 'soda drink' i would like. | ||
2013-02-21 07:19 <iamnoob> plantian: i mean how many of 'soda drink' | ||
2013-02-21 07:21 <plantian> iamnoob: what if you added a quantity to the model that connects the many 2 many models? | ||
2013-02-21 07:24 <iamnoob> plantian: hmm do you mean the model at the middle of the two model being connected? trying to understand what you mean here... | ||
2013-02-21 07:31 <plantian> iamnoob: sorry maybe you are right, it might not be possible with many 2 many | ||
2013-02-21 07:34 <iamnoob> plantian: the closest i could think of is one2many.. since it allows me to enter a value on the 'quantity' field, but it wants me to enter value's on all of the fields.. | ||
2013-02-21 07:39 <plantian> iamnoob: right, i think one2many makes sense but if you don't want a pre-created drink you have to create another drink to select | ||
2013-02-21 07:41 <plantian> so if you have models: drink.order, drink.order.line and drink.drink then drink.order.line is a model with fields: quantity, order and drink | ||
2013-02-21 07:42 <iamnoob> plantian: hmmm, i wanted to select the 'pre-created drink value' since it already have the value for the 'price of the drink' and i only wanted to enter how many of it.. | ||
2013-02-21 07:43 <iamnoob> plantian: hmmm make's sense to me.. i may need to revised my model design for it.. | ||
2013-02-21 09:35 <Gice> hi all | ||
2013-02-21 09:37 <Gice> I've got a question about tryton/gnuhealth, and I'm hoping anyone can help me with it. I'm doing my master thesis on Data Leakage/Data misuse and we want to use GNUhealth (which is uses tryton) to test our system. To do this we need to log activity (so basically all actions users perform). | ||
2013-02-21 09:37 <Gice> Is there some functionality built in tryton or do we have to add these ourselves? If there is no such functionality, does anyone have suggestions on how to approach this? | ||
2013-02-21 09:38 <Gice> And also, would this be done inside tryton (configuring/adding a module) or inside the end-application (GNUhealth in this case) | ||
2013-02-21 09:40 <cedk> Gice: there is not, but I think you can just log request in trytond/protocol/dispatcher.py | ||
2013-02-21 09:41 <Gice> thanks cedk, I'll look into it :) | ||
2013-02-21 09:44 <iamnoob> hi, is there a way to set the change the value of the same field in an on_change? keep having and error 'literal for int() with base 10: ' | ||
2013-02-21 09:44 <iamnoob> hi, is there a way to change the value of the same field in an on_change? keep having and error 'literal for int() with base 10: ' | ||
2013-02-21 09:45 <iamnoob> since im doing a Many2One connected to another Many2One | ||
2013-02-21 09:46 <cedk> iamnoob: there is but for many2one you must return a int | ||
2013-02-21 09:48 <iamnoob> cedk: is this the record index? | ||
2013-02-21 09:49 <cedk> iamnoob: yes the record id | ||
2013-02-21 09:53 <iamnoob> cedk: ummm can you please tell me how to get the record id? i got this on an on change event 'res['NSN'] = self.StockNumber.StockNumber.StockNumber' and its giving me the literal for int() since its not the record id. | ||
2013-02-21 09:54 <cedk> iamnoob: what is StockNumber ? | ||
2013-02-21 09:54 <cedk> iamnoob: but I guess you must use: self.StockNumber.StockNumber.StockNumber.id | ||
2013-02-21 09:55 <iamnoob> cedk: umm its a field.many2one and another field.many2one then the last one is a char | ||
2013-02-21 10:05 <cedk> iamnoob: so you can not put a char for a many2one | ||
2013-02-21 10:06 <cedk> iamnoob: so I guess it must be: self.StockNumber.StockNumber.id | ||
2013-02-21 10:11 <iamnoob> cedk: ok thanks cedk | ||
2013-02-21 10:49 <iamnoob> hi.. can anyone please help with with this traceback error.. im not on the level to understand this :( http://pastebin.com/Qt7pRcry | ||
2013-02-21 10:52 <iamnoob> this is my .py file http://pastebin.com/2grGY2Mf i know there's something wrong with my many2many field.. but i dont know what is it | ||
2013-02-21 10:52 <iamnoob> the error happens when im trying to save the data. | ||
2013-02-21 16:48 -!- elbenfreund(~elbenfreu@p54B93551.dip.t-dialin.net) has left #tryton | ||
2013-02-21 17:39 -!- elbenfreund(~elbenfreu@p54B93551.dip.t-dialin.net) has left #tryton | ||
2013-02-21 19:53 <plantian> I tried to update my sub actions, ir.action.*, so that their ids match the ir.action ids but I think they are linked in other tables without fks. What is the ir_model_data table for? For example it has rows with a values like this: {u'act_window': 347, u'view': 255, u'sequence': 10} Is act_window the database id in ir_action_act_window ? | ||
2013-02-21 20:06 <cedk> plantian: it track records created by XML | ||
2013-02-21 20:08 <plantian> cedk: So if I rewrite the ir_action_act_window ids, so that ir_action.id = ir_action-act_window.id then I have to rewrite these values too right? | ||
2013-02-21 20:10 <cedk> plantian: yes it is better | ||
2013-02-21 20:29 <cedk> plantian: or if you have only XML actions, you can delete all of them, they should be re-created on database update | ||
2013-02-21 20:32 <plantian> cedk: How can I delete them? | ||
2013-02-21 20:35 <plantian> Or rather what is them? the entries in ir_model_data or the entries in ir_action_* ? | ||
2013-02-21 21:34 <egiraldo> good aftenoon | ||
2013-02-21 21:34 <egiraldo> excuse me | ||
2013-02-21 21:34 <egiraldo> one question | ||
2013-02-21 21:35 <egiraldo> where can i download the comobian account module? | ||
2013-02-21 21:35 <egiraldo> somebody knows? | ||
2013-02-21 22:00 <plantian> egiraldo: Colombian? Can you just use account_es, the spanish account module? https://pypi.python.org/pypi/trytond_account_es/2.6.0 | ||
2013-02-21 22:01 <plantian> egiraldo: I don't know much about it, if that is no help then ask on tryton-es mailing list: https://groups.google.com/forum/?fromgroups=#!forum/tryton-es | ||
2013-02-21 22:05 <plantian> cedk: Do you know if it is possible to circumvent convert skipping over ir_action_act_window_view rows that I updated?: ie. "Field act_window of 11@ir.action.act_window.view not updated (id: act_action_form_view2), because it has changed since the last update" | ||
2013-02-21 22:05 <plantian> I am getting this error https://gist.github.com/ianjosephwilson/5008242 | ||
2013-02-21 22:17 <egiraldo> thanks plantian | ||
2013-02-21 22:47 <cedk> plantian: I think if we clean values field of the corresponding record in ir.model.data |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!