IRC logs of #tryton for Tuesday, 2018-12-04 #tryton log beginning Tue Dec 4 00:00:01 CET 2018
csotelodear 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:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:12
csotelodear 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?02:12
csotelosorry por duplicate my question02:12
csoteloa keypress mistake02:12
csoteloany suggest please02:12
-!- k_valdivia(~k_valdivi@2800:200:f400:1d68:386f:b80d:3e07:c19f) has joined #tryton03:12
-!- csotelo(~csotelo@2001:1388:604:8f5e:f4b9:1409:257b:1b46) has joined #tryton03:12
-!- yangoon1( has joined #tryton04:12
-!- thaneor( has joined #tryton04:12
-!- mniip(mniip@freenode/staff/mniip) has joined #tryton04:12
-!- kenny_(~kenny@2800:200:f400:1d68:386f:b80d:3e07:c19f) has joined #tryton06:12
-!- kenny_(~kenny@2800:200:f400:1d68:386f:b80d:3e07:c19f) has left #tryton06:12
-!- kenny_(~kenny@2800:200:f400:1d68:386f:b80d:3e07:c19f) has joined #tryton06:12
-!- lucascastro( has joined #tryton06:12
-!- tafelgeschirr(~tafelgesc@ has joined #tryton07:12
-!- Timitos( has joined #tryton08:12
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton08:12
-!- udono1( has joined #tryton08:12
-!- csotelo_(~csotelo@2001:1388:604:8f5e:f4b9:1409:257b:1b46) has joined #tryton08:12
-!- mrichez( has joined #tryton09:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:12
-!- JanGB(~jan@2a02:810a:8c0:898c:575a:fd3e:c4e8:31d8) has joined #tryton10:12
-!- csotelo(~csotelo@2001:1388:604:8f5e:f4b9:1409:257b:1b46) has joined #tryton10:12
csoteloHello 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 lot10:12
-!- smorillo(9f9305ee@gateway/web/cgi-irc/ has joined #tryton10:12
pokolicsotelo: see
csotelopokoli thanks for that.. but, no answer to my question on the log :(10:12
-!- nicoe( has joined #tryton10:12
pokolicsotelo: you should set a default value for the lang property10:12
csotelopokoli, I was looking the way on do that10:12
csoteloare you talking about a configuration value or some development to do?10:12
pokolicsotelo: as any property field you should define a value not linked to any record and it will be used as default10:12
csotelopokoli, any url as sample, please10:12
pokolicsotelo: any module that defines a sequence (stock, sale, purchase) has default value for the property defined on the xml10:12
pokolicsotelo: I remember having the same exact conversation some days ago, wasn't with you?10:12
csotelopokoli, you are right, I remember, I guess I get lost on that, I am sorry10:12
-!- rpit( has joined #tryton11:12
pokolicsotelo: on which version are you working on?11:12
-!- thaneor( has joined #tryton11:12
csotelopokoli, I am working yet on 4.2 since it is also for gnu_health12:12
csotelopokoli, by the way I have found that you wrote me about default on properties, thanks a lot12:12
-!- mariomop( has joined #tryton12:12
-!- jcm_(~jcm@ has joined #tryton12:12
-!- tafelgeschirr(~tafelgesc@ has joined #tryton14:12
-!- lucascastro( has joined #tryton14:12
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton14:12
-!- k_valdivia(~k_valdivi@2800:200:f400:1d68:386f:b80d:3e07:c19f) has joined #tryton14:12
-!- csotelo(~csotelo@ has joined #tryton14:12
-!- smorillo(9f9305ee@gateway/web/cgi-irc/ has joined #tryton15:12
csoteloDear 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 purchase15:12
csoteloor, yes, is it possible to update cost price on any purchase on an automatic way?15:12
pokolicsotelo: product cost price is updated when a stock move of the product is done16:12
csotelopokoli, We do a purchase and receive the stocks, but cost prices were not updated, we need to run the action "update cost price"16:12
cedkI think we must rename the "Update cost price" in "Modify cost price"16:12
pokolicsotelo: which cost_price_method are you using?16:12
csotelopokoli, I am using average16:12
-!- thaneor1( has joined #tryton16:12
pokolicsotelo: strange, as the behaviour is enforced on scenario. See
-!- lucascastro(~lucascast@ has joined #tryton16:12
-!- udono(~udono@2a00:6020:15fa:1e00:76e5:bff:fe6e:a706) has joined #tryton16:12
pokolicsotelo: did you have some simple scenario to reproduce?16:12
csotelopokoli, I ma trying again, but I am doing that on a windows desktop computer, let me prepare something like16:12
-!- smorillo(258799fc@gateway/web/cgi-irc/ has joined #tryton17:12
-!- lucascastro(~lucascast@ has joined #tryton17:12
vmoraIs there a way to "attach" files to a model without using the GUI ?17:12
pokolivmora: yes, you have to create an ir.attacment record related to the model17:12
pokolivmora: you can do it by using some python script or with a JSON-RPC request17:12
vmorapokoli thanks, but you can only do that on server side, isn't it ?17:12
pokolivmora: 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 password17:12
vmorapokoli I've access to the database, I'm going to look into the way ir.attachement is doing things17:12
-!- JanGB( has joined #tryton18:12
-!- JanGB( has joined #tryton18:12
k_valdiviaHello 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>18:12
cedkk_valdivia: in ir.model.data18:12
k_valdiviacedk: thanks18:12
k_valdiviacedk: So, would it be safe to delete those records poiting to a particular module's records id's?18:12
-!- JanGB( has joined #tryton18:12
cedkk_valdivia: not it is not safe18:12
cedkk_valdivia: trytond will recreate them18:12
k_valdiviacedk: how could I update those records?18:12
k_valdiviacedk: just so they point to the right model18:12
cedkk_valdivia: you must change the xml id if you change the model of a record18:12
k_valdiviacedk: I see, thank you18:12
csoteloHello, I have a question about to import process, how could I update insted of insert on import? bests19:12
-!- JanGB( has joined #tryton19:12
vmorapokoli 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_attachement19:12
-!- rpit( has joined #tryton19:12
-!- JanGB( has joined #tryton20:12
-!- JanGB1(~jan@ has joined #tryton20:12
csoteloHello, I have a question about to import process, how could I update instead of insert on import? thanks21:12
cedkcsotelo: it is not supported21:12
csoteloI see21:12
cedkcsotelo: the import is pretty simple, we prefer to use proteus script21:12
csoteloI see, I just looking for a fast way to do that21:12
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:12
cedksemarie: I saw that you published OpenBSD packages, if you want we can publish it on
csotelohi 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? please23:12

Generated by 2.16.0 by Marius Gedminas - find it at!