chat.freenode.net #tryton log beginning Tue Dec 4 00:00:01 CET 2018 | ||
csotelo | dear community, about language on third, I am looking a way to set it as a default, I was trying to use def default_lang(), however as a property, is no working, I ma looking a way to set it as default, any suggest on some code lines? | 00:39 |
---|---|---|
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:59 | |
csotelo | dear community, about language on third, I am looking a way to set it as a default, I was trying to use def default_lang(), however as a property, is no working, I ma looking a way to set it as default, any suggest on some code lines? | 01:00 |
csotelo | sorry por duplicate my question | 01:00 |
csotelo | a keypress mistake | 01:02 |
csotelo | any suggest please | 01:02 |
-!- k_valdivia(~k_valdivi@2800:200:f400:1d68:386f:b80d:3e07:c19f) has joined #tryton | 02:08 | |
-!- csotelo(~csotelo@2001:1388:604:8f5e:f4b9:1409:257b:1b46) has joined #tryton | 02:09 | |
-!- yangoon1(~mathiasb@i59F729F2.versanet.de) has joined #tryton | 03:07 | |
-!- thaneor(~lenovo3@r179-25-177-15.dialup.adsl.anteldata.net.uy) has joined #tryton | 03:23 | |
-!- mniip(mniip@freenode/staff/mniip) has joined #tryton | 03:30 | |
-!- kenny_(~kenny@2800:200:f400:1d68:386f:b80d:3e07:c19f) has joined #tryton | 05:12 | |
-!- kenny_(~kenny@2800:200:f400:1d68:386f:b80d:3e07:c19f) has left #tryton | 05:12 | |
-!- kenny_(~kenny@2800:200:f400:1d68:386f:b80d:3e07:c19f) has joined #tryton | 05:15 | |
-!- lucascastro(~lucascast@177-185-139-213.isotelco.net.br) has joined #tryton | 05:26 | |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 06:06 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 07:10 | |
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | 07:20 | |
-!- udono1(~udono@229-056-210-188.ip-addr.inexio.net) has joined #tryton | 07:39 | |
-!- csotelo_(~csotelo@2001:1388:604:8f5e:f4b9:1409:257b:1b46) has joined #tryton | 07:46 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 08:00 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:32 | |
-!- JanGB(~jan@2a02:810a:8c0:898c:575a:fd3e:c4e8:31d8) has joined #tryton | 09:15 | |
-!- csotelo(~csotelo@2001:1388:604:8f5e:f4b9:1409:257b:1b46) has joined #tryton | 09:17 | |
csotelo | Hello comunity, I last night I was looking for information about setting default values on Property fields, unfortunately I get disconnected from internet, Pleasy if you have any sample or suggest about thta, will be great! thaks a lot | 09:19 |
-!- smorillo(9f9305ee@gateway/web/cgi-irc/kiwiirc.com/ip.159.147.5.238) has joined #tryton | 09:24 | |
pokoli | csotelo: see http://www.tryton.org/~irclog/2018-12-04.log.html | 09:28 |
csotelo | pokoli thanks for that.. but, no answer to my question on the log :( | 09:31 |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 09:34 | |
pokoli | csotelo: you should set a default value for the lang property | 09:39 |
csotelo | pokoli, I was looking the way on do that | 09:43 |
csotelo | are you talking about a configuration value or some development to do? | 09:44 |
pokoli | csotelo: as any property field you should define a value not linked to any record and it will be used as default | 09:50 |
csotelo | pokoli, any url as sample, please | 09:51 |
pokoli | csotelo: any module that defines a sequence (stock, sale, purchase) has default value for the property defined on the xml | 09:55 |
pokoli | csotelo: I remember having the same exact conversation some days ago, wasn't with you? | 09:56 |
csotelo | pokoli, you are right, I remember, I guess I get lost on that, I am sorry | 09:57 |
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton | 10:13 | |
pokoli | csotelo: on which version are you working on? | 10:28 |
-!- thaneor(~lenovo3@r179-25-177-15.dialup.adsl.anteldata.net.uy) has joined #tryton | 10:48 | |
csotelo | pokoli, I am working yet on 4.2 since it is also for gnu_health | 11:09 |
csotelo | pokoli, by the way I have found that you wrote me about default on properties, thanks a lot | 11:09 |
-!- mariomop(~quassel@host220.201-253-196.telecom.net.ar) has joined #tryton | 11:11 | |
-!- jcm_(~jcm@78.194.214.115) has joined #tryton | 11:28 | |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 13:08 | |
-!- lucascastro(~lucascast@189.90.38.210.jupiter.com.br) has joined #tryton | 13:14 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 13:29 | |
-!- k_valdivia(~k_valdivi@2800:200:f400:1d68:386f:b80d:3e07:c19f) has joined #tryton | 13:35 | |
-!- csotelo(~csotelo@201.240.235.1) has joined #tryton | 13:57 | |
-!- smorillo(9f9305ee@gateway/web/cgi-irc/kiwiirc.com/ip.159.147.5.238) has joined #tryton | 14:04 | |
csotelo | Dear comunity, I have a question related to cost_price_method, each time when I do a purchase, I must run the action "Update cost price", my question is, is no possible to do this action as default on any purchase | 14:53 |
csotelo | or, yes, is it possible to update cost price on any purchase on an automatic way? | 14:54 |
pokoli | csotelo: product cost price is updated when a stock move of the product is done | 15:14 |
csotelo | pokoli, We do a purchase and receive the stocks, but cost prices were not updated, we need to run the action "update cost price" | 15:19 |
cedk | I think we must rename the "Update cost price" in "Modify cost price" | 15:20 |
pokoli | csotelo: which cost_price_method are you using? | 15:22 |
csotelo | pokoli, I am using average | 15:23 |
-!- thaneor1(~lenovo3@r179-25-80-38.dialup.adsl.anteldata.net.uy) has joined #tryton | 15:23 | |
pokoli | csotelo: strange, as the behaviour is enforced on scenario. See http://hg.tryton.org/modules/stock/file/4.2/tests/scenario_stock_average_cost_price.rst#l83 | 15:24 |
-!- lucascastro(~lucascast@201.182.221.154) has joined #tryton | 15:32 | |
-!- udono(~udono@2a00:6020:15fa:1e00:76e5:bff:fe6e:a706) has joined #tryton | 15:39 | |
pokoli | csotelo: did you have some simple scenario to reproduce? | 15:41 |
csotelo | pokoli, I ma trying again, but I am doing that on a windows desktop computer, let me prepare something like | 15:42 |
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton | 16:13 | |
-!- lucascastro(~lucascast@201.182.221.154) has joined #tryton | 16:18 | |
vmora | Is there a way to "attach" files to a model without using the GUI ? | 16:48 |
pokoli | vmora: yes, you have to create an ir.attacment record related to the model | 16:51 |
pokoli | vmora: you can do it by using some python script or with a JSON-RPC request | 16:51 |
vmora | pokoli thanks, but you can only do that on server side, isn't it ? | 16:52 |
pokoli | vmora: python script will require access to the database, and the JSON-RPC request will required a connection to the server and a valid username and password | 16:53 |
vmora | pokoli I've access to the database, I'm going to look into the way ir.attachement is doing things | 16:56 |
-!- JanGB(~jan@x2f7f80d.dyn.telefonica.de) has joined #tryton | 17:10 | |
-!- JanGB(~jan@x2f7f80d.dyn.telefonica.de) has joined #tryton | 17:17 | |
k_valdivia | Hello everybody, where are the ids for the records in a module stored? I changed a records model in the xml file, and when I try to update I get the following error -> Exception: This record try to overwrite data with the wrong model: <record id> | 17:48 |
cedk | k_valdivia: in ir.model.data | 17:50 |
k_valdivia | cedk: thanks | 17:50 |
k_valdivia | cedk: So, would it be safe to delete those records poiting to a particular module's records id's? | 17:51 |
-!- JanGB(~jan@x2f7f80d.dyn.telefonica.de) has joined #tryton | 17:51 | |
cedk | k_valdivia: not it is not safe | 17:53 |
cedk | k_valdivia: trytond will recreate them | 17:53 |
k_valdivia | cedk: how could I update those records? | 17:53 |
k_valdivia | cedk: just so they point to the right model | 17:54 |
cedk | k_valdivia: you must change the xml id if you change the model of a record | 17:56 |
k_valdivia | cedk: I see, thank you | 17:58 |
csotelo | Hello, I have a question about to import process, how could I update insted of insert on import? bests | 18:10 |
-!- JanGB(~jan@x2f7f80d.dyn.telefonica.de) has joined #tryton | 18:17 | |
vmora | pokoli thanks a lot for the leads, I took the second option you suggested: create the file_id the same way it's done in tryton, save the file in the right place with the right name and insert into ir_attachement | 18:33 |
-!- rpit(~rpit@p3E9C0DEF.dip0.t-ipconnect.de) has joined #tryton | 18:54 | |
-!- JanGB(~jan@x2f7f80d.dyn.telefonica.de) has joined #tryton | 19:13 | |
-!- JanGB1(~jan@95.90.209.93) has joined #tryton | 19:13 | |
csotelo | Hello, I have a question about to import process, how could I update instead of insert on import? thanks | 20:24 |
cedk | csotelo: it is not supported | 20:31 |
csotelo | I see | 20:31 |
csotelo | thanks | 20:31 |
cedk | csotelo: the import is pretty simple, we prefer to use proteus script | 20:31 |
csotelo | I see, I just looking for a fast way to do that | 20:32 |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 21:00 | |
cedk | semarie: I saw that you published OpenBSD packages, if you want we can publish it on http://www.tryton.org/download#distributions | 21:01 |
csotelo | hi comunity, again with questions. I need a way to update list_price on update_cost_price action, the reason, I need to manage profit margin for each product based on cost price, then if the cost_price is recalculated, then list private must do the same. I was looking for the way on do that on update_cost_price without success, any suggest? please | 22:42 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!