Skip to content

Commit

Permalink
[MIG] fs_product_multi_media: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenminhchien committed May 6, 2024
1 parent 94415c5 commit b1dca35
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fs_product_multi_media/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Fs Product Multi Media",
"summary": """
Link media to products and categories""",
"version": "16.0.1.0.2",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV,Akretion,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/storage",
Expand Down
2 changes: 1 addition & 1 deletion fs_product_multi_media/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ProductProduct(models.Model):
def _compute_variant_media_ids(self):
for variant in self:
variant_media_ids = variant.media_ids.filtered(
lambda i: i._match_variant(variant)
lambda i, v=variant: i._match_variant(v)
)
variant_media_ids = variant_media_ids.sorted(
key=lambda i: (i.sequence, i.name)
Expand Down
1 change: 0 additions & 1 deletion fs_product_multi_media/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down
2 changes: 1 addition & 1 deletion fs_product_multi_media/views/fs_product_media.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
name="attribute_value_ids"
widget="many2many_tags"
domain="[('id', 'in', available_attribute_value_ids)]"
attrs="{'invisible': [('available_attribute_value_ids', '=', [])]}"
invisible="not available_attribute_value_ids"
/>
</group>
</field>
Expand Down

0 comments on commit b1dca35

Please sign in to comment.