IRC logs of #tryton for Monday, 2022-05-09

irc.libera.chat #tryton log beginning Mon May 9 12:00:01 AM CEST 2022
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton05:14
-!- springwurm(~springwur@5.104.149.54) has joined #tryton05:26
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:46
-!- ChanServ changed mode/#tryton -> +o cedk 06:46
-!- rpit(~rpit@p4ffb7313.dip0.t-ipconnect.de) has joined #tryton06:54
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:22
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton07:35
mrichezhi, xml and xpath question: i want to add a notebook with pages on existing view. I thought i could add my notebook and pages with different xpath to preserve fields but it raises a closing tag error. 11:35
mrichezIs the best solution to create my notebook with all the pages in a xpath and then moving all the existing fields in the correct page with an xpath expr... position="move" ?11:36
cedkmrichez: there is no position move11:39
cedkmrichez: you must define the full notebook and if needed remove duplicated fields11:40
cedkmrichez: but this is a fragile design as it can break at the activation of new module or upgrade11:40
cedkit may be better to define a new view11:40
mrichezcek: that's what i thought :)à11:41
mrichezcedk: thanks for explanations11:41
mrichezcedk: indeed 'move' expression is in odoo.. i thougt it was a standard11:42
-!- springwurm(~springwur@5.104.149.54) has joined #tryton12:06
mrichezcedk: to replace actual view with my own view without breaking module, i just have to redefine ir.action.act_window.view id= module_name.view_name with ref of my new view for field name="view" ?13:15
cedkmrichez: you deactivate old views and add new one13:16
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton13:16
mrichezcedk: and giving the same id on the new form will keep the link on ir.action_act_window.view or i need to redefine again ?13:18
cedkmrichez: I do not understand13:23
mrichezcedk: i did this way: https://pastebin.com/tUtqMLMQ to redefine view on ir.action.act_windows.view with my new view13:26
mrichezcedk: maybe i could ask a feature about landed costs, there are too much fields on the form, and then product field is too small when applying landed costs on shipments with a lot of products13:28
mrichezcedk: so i create a notebook to display products and categories in another tab13:29
cedkmrichez: for me it is always source of issues when changing the value of an existing record13:30
cedkmrichez: I do not think it is a good design to not display all these fields together because they are important information that work together13:31
mrichezcedk: probably but it's unusable when having shipments with a lot of products... (then it'll be a custo for us)13:33
mrichezcedk: so it's ir.action.act_windows.view of the original module that should have <field name="active" eval="False"/> and then redefine a new ir.action.act_windows.view with the new form13:36
mrichezcedk: it's working this way :-)13:44
-!- rpit(~rpit@p200300c88f183200a440417108b5152a.dip0.t-ipconnect.de) has joined #tryton19:09

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!