Skip to content

Commit

Permalink
[18.0][MIG] base_multi_image: adapt
Browse files Browse the repository at this point in the history
Adapt tree to list view.
  • Loading branch information
oerp-odoo committed Feb 14, 2025
1 parent f283a77 commit f6069df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion base_multi_image/models/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def _compute_owner_ref_id(self):
def _compute_show_technical(self):
"""Know if you need to show the technical fields."""
self.show_technical = all(
"default_owner_%s" % f not in self.env.context for f in ("id", "model")
"default_owner_{}s".format(f) not in self.env.context for f in (
"id", "model"
)
)

@api.onchange("load_from")
Expand Down
1 change: 1 addition & 0 deletions base_multi_image/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
- [Greenice](https://www.greenice.com):
- Fernando La Chica \<<[email protected]>\>
- Ugnė Sinkevičienė \<<[email protected]>\>
- Andrius Laukavičius \<<[email protected]>\>
6 changes: 3 additions & 3 deletions base_multi_image/views/image_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
</field>
</record>

<record id="image_tree_view" model="ir.ui.view">
<field name="name">Multi image tree</field>
<record id="image_list_view" model="ir.ui.view">
<field name="name">Multi image list</field>
<field name="model">base_multi_image.image</field>
<field name="arch" type="xml">
<list>
Expand All @@ -60,7 +60,7 @@
<field name="name" />
<field name="sequence" />
<templates>
<t t-name="kanban-box">
<t t-name="card">
<div style="position: relative">
<a
t-if="! read_only_mode"
Expand Down

0 comments on commit f6069df

Please sign in to comment.