chat.freenode.net #tryton log beginning Mon Oct 5 00:00:01 CEST 2015 | ||
2015-10-05 00:24 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2015-10-05 01:23 -!- smarro(~sebastian@181.16.4.44) has joined #tryton | ||
2015-10-05 07:01 -!- yangoon1(~mathiasb@p549F1345.dip0.t-ipconnect.de) has joined #tryton | ||
2015-10-05 07:31 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2015-10-05 07:40 -!- frispete(~frispete@p54A91FE2.dip0.t-ipconnect.de) has joined #tryton | ||
2015-10-05 08:02 -!- rpit(~rpit@2a02:908:e670:3a80:b54d:391c:e614:8bad) has joined #tryton | ||
2015-10-05 08:17 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2015-10-05 08:17 -!- udono(~udono@ip-178-202-238-79.hsi09.unitymediagroup.de) has joined #tryton | ||
2015-10-05 08:57 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | ||
2015-10-05 09:00 -!- aroncero__(~aroncero@86.63.19.153) has joined #tryton | ||
2015-10-05 09:15 -!- albertca(~albert@142.Red-2-139-177.staticIP.rima-tde.net) has joined #tryton | ||
2015-10-05 09:16 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2015-10-05 09:21 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton | ||
2015-10-05 09:30 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton | ||
2015-10-05 09:32 -!- jvblasco(~seba@62.43.196.37) has joined #tryton | ||
2015-10-05 09:47 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton | ||
2015-10-05 09:51 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton | ||
2015-10-05 09:54 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton | ||
2015-10-05 10:00 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton | ||
2015-10-05 11:00 <aroncero> Hi, I want to open a form from a button in a tree view | ||
2015-10-05 11:00 <aroncero> If the action is from the same model, i use | ||
2015-10-05 11:00 <aroncero> @ModelView.button_action('model.action_id') in the function | ||
2015-10-05 11:00 <aroncero> And it works fine | ||
2015-10-05 11:00 <aroncero> But How can I use a function with @ModelView.button to return a other model action id? | ||
2015-10-05 11:01 <aroncero> According to documentation: | ||
2015-10-05 11:01 <aroncero> button(cls, records) | ||
2015-10-05 11:01 <aroncero> The function may return an ir.action id ... | ||
2015-10-05 11:01 <aroncero> but if i return 'other_model.action_id' nothing happens | ||
2015-10-05 11:01 <aroncero> what am I doing wrong? | ||
2015-10-05 11:03 <pokoli> aroncero: AFAIU you should return the action id as integer, not the ModelData representation of it | ||
2015-10-05 11:03 <aroncero> pokoli: ahhh | ||
2015-10-05 11:04 <aroncero> pokoli: So i must use the pool to search it, no? | ||
2015-10-05 11:04 <pokoli> So Pool().get('ir.model.data').get_id('module', 'xml_id') should work :) | ||
2015-10-05 11:04 <pokoli> aroncero: yes, there is the get_id function on ir.model.data in order to convert xml_id to database_id | ||
2015-10-05 11:05 <pokoli> aroncero: and you should use the function as there is a cache for it ;) | ||
2015-10-05 11:09 <aroncero> pokoli: do you know any module that use it? to use an example | ||
2015-10-05 11:11 <pokoli> aroncero: I don't remeber it, but a simple grep should point you to the example ;) | ||
2015-10-05 11:12 <aroncero> Thanks | ||
2015-10-05 11:18 <cedk> aroncero: but the button_action does it because it is syntax is '<module>.<xml id>' just like ModelData.get_id | ||
2015-10-05 11:21 <aroncero> cedk: ok, I think I undertand it | ||
2015-10-05 11:26 <aroncero> pokoli, cedk: Thanks, it works perfect :D | ||
2015-10-05 12:21 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2015-10-05 12:45 -!- mariomop(~quassel@181.90.76.68) has joined #tryton | ||
2015-10-05 13:18 -!- aroncero(~aroncero@86.63.19.153) has joined #tryton | ||
2015-10-05 13:26 -!- aroncero_(~aroncero@86.63.19.153) has joined #tryton | ||
2015-10-05 15:11 -!- kstenger(~karla@r167-59-46-17.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2015-10-05 15:13 -!- den2204(~mahon@178.141.255.129) has joined #tryton | ||
2015-10-05 15:31 -!- bvillasanti(~bvillasan@190.105.65.239) has joined #tryton | ||
2015-10-05 15:35 -!- kstenger(~karla@r167-59-13-61.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2015-10-05 16:00 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton | ||
2015-10-05 16:07 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2015-10-05 16:52 -!- aroncero(~cristina@86.63.19.153) has joined #tryton | ||
2015-10-05 17:01 <aroncero> Hi | ||
2015-10-05 17:01 <aroncero> I am looking for documentation about actions and keywords. | ||
2015-10-05 17:02 <aroncero> I saw that there are ir.action.act_window ir.action.act_window.view ir.action.act_window.domain, | ||
2015-10-05 17:02 <aroncero> ... | ||
2015-10-05 17:02 <aroncero> where can i read about that? | ||
2015-10-05 17:04 <cedk> pokoli: will you commit account patch? | ||
2015-10-05 17:04 <pokoli> cedk: yes, in 10 or 20 minutes moreless | ||
2015-10-05 17:05 <cedk> aroncero: I think we don't have | ||
2015-10-05 17:09 <cedk> aroncero: looking at the Models should help to understand | ||
2015-10-05 17:10 <cedk> aroncero: otherwise ask here any questions | ||
2015-10-05 17:12 <pokoli> cedk: commited patches | ||
2015-10-05 17:21 <pokoli> aroncero: a patch improving the docs will be very welcomed :) | ||
2015-10-05 17:27 <aroncero> pokoli: I agree, I will try to understand it and make some documentation with examples | ||
2015-10-05 17:30 <pokoli> aroncero: feel free to ask whatever you don't understand here | ||
2015-10-05 17:47 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton | ||
2015-10-05 18:11 -!- smarro(~sebastian@114-115-235-201.fibertel.com.ar) has joined #tryton | ||
2015-10-05 18:22 -!- bvillasanti(~bvillasan@190.105.65.239) has joined #tryton | ||
2015-10-05 18:29 -!- bvillasanti(~bvillasan@190.105.65.239) has joined #tryton | ||
2015-10-05 18:32 <aroncero> A ir.action.act_window.view is related with a view and an action.act_window | ||
2015-10-05 18:32 <aroncero> Is that a method to say to the action which specific view (form o tree) use? | ||
2015-10-05 18:34 <cedk> aroncero: yes | ||
2015-10-05 18:34 <cedk> aroncero: and the sequence define the order | ||
2015-10-05 18:36 <aroncero> but I tried using that action in a button function but i received an error | ||
2015-10-05 18:36 <aroncero> You try to read records that don't exist anymore. | ||
2015-10-05 18:36 <aroncero> (Document type: ir.action) | ||
2015-10-05 18:37 <cedk> aroncero: you must give the id of the ir.action not the ir.action.act_window | ||
2015-10-05 18:39 <aroncero> cedk: return Pool().get('ir.model.data').get_id('service_email', 'act_service_email_form_view1') | ||
2015-10-05 18:41 <aroncero> cedk: http://pastebin.com/HfY9pypd | ||
2015-10-05 18:43 <cedk> aroncero: that's a view not an ir.action.act_window | ||
2015-10-05 18:45 <aroncero> cedk: it is a ir.action.act_window.view | ||
2015-10-05 18:45 <aroncero> cedk: <record model="ir.action.act_window.view" id="act_service_email_form_view1"> | ||
2015-10-05 18:45 <cedk> aroncero: yes it is what I said | ||
2015-10-05 18:46 <cedk> aroncero: it is a view not an act_window | ||
2015-10-05 18:47 <aroncero> cedk: ok, i think that a ir.action.act_window.view is a ir.action.act_window that open a specific view | ||
2015-10-05 18:49 <cedk> aroncero: not it is a view | ||
2015-10-05 18:54 <aroncero> cedk: ok... So an ir.action.act_window.view is the view that the action must open | ||
2015-10-05 18:55 <cedk> aroncero: yes | ||
2015-10-05 18:56 -!- mariomop(~quassel@200.117.223.192) has joined #tryton | ||
2015-10-05 18:57 <aroncero> cedk: Thanks | ||
2015-10-05 19:07 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton | ||
2015-10-05 19:50 -!- pablovannini(~pablo@181.47.148.245) has joined #tryton | ||
2015-10-05 20:07 -!- rpit(~rpit@2a02:908:e670:3a80:6e:7b6a:3e1d:61ff) has joined #tryton | ||
2015-10-05 20:14 -!- bvillasanti(~bvillasan@190.105.65.239) has joined #tryton | ||
2015-10-05 20:16 -!- bvillasanti(~bvillasan@190.105.65.239) has joined #tryton | ||
2015-10-05 20:46 -!- bvillasanti(~bvillasan@190.105.65.239) has joined #tryton | ||
2015-10-05 21:23 -!- bvillasanti(~bvillasan@190.105.65.239) has joined #tryton | ||
2015-10-05 22:32 -!- bvillasanti(~bvillasan@190.105.65.239) has joined #tryton | ||
2015-10-05 22:38 -!- bechamel(~Adium@host-85-201-150-194.dynamic.voo.be) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!