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 #tryton | 05:14 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 05:26 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:46 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 06:46 | |
-!- rpit(~rpit@p4ffb7313.dip0.t-ipconnect.de) has joined #tryton | 06:54 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:22 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 07:35 | |
mrichez | hi, 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 |
---|---|---|
mrichez | Is 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 |
cedk | mrichez: there is no position move | 11:39 |
cedk | mrichez: you must define the full notebook and if needed remove duplicated fields | 11:40 |
cedk | mrichez: but this is a fragile design as it can break at the activation of new module or upgrade | 11:40 |
cedk | it may be better to define a new view | 11:40 |
mrichez | cek: that's what i thought :)à | 11:41 |
mrichez | cedk: thanks for explanations | 11:41 |
mrichez | cedk: indeed 'move' expression is in odoo.. i thougt it was a standard | 11:42 |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 12:06 | |
mrichez | cedk: 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 |
cedk | mrichez: you deactivate old views and add new one | 13:16 |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 13:16 | |
mrichez | cedk: 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 |
cedk | mrichez: I do not understand | 13:23 |
mrichez | cedk: i did this way: https://pastebin.com/tUtqMLMQ to redefine view on ir.action.act_windows.view with my new view | 13:26 |
mrichez | cedk: 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 products | 13:28 |
mrichez | cedk: so i create a notebook to display products and categories in another tab | 13:29 |
cedk | mrichez: for me it is always source of issues when changing the value of an existing record | 13:30 |
cedk | mrichez: I do not think it is a good design to not display all these fields together because they are important information that work together | 13:31 |
mrichez | cedk: probably but it's unusable when having shipments with a lot of products... (then it'll be a custo for us) | 13:33 |
mrichez | cedk: 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 form | 13:36 |
mrichez | cedk: it's working this way :-) | 13:44 |
-!- rpit(~rpit@p200300c88f183200a440417108b5152a.dip0.t-ipconnect.de) has joined #tryton | 19:09 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!