Skip to content

Commit

Permalink
[MIG] fs_base_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 d4a74b7 commit 94415c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion fs_base_multi_media/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Fs Base Multi Media",
"summary": """
Give the possibility to store media data in external filesystem from odoo""",
"version": "16.0.1.0.1",
"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
1 change: 0 additions & 1 deletion fs_base_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
22 changes: 5 additions & 17 deletions fs_base_multi_media/views/fs_media_relation_mixin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,15 @@
<sheet>
<group>
<field name="link_existing" />
<field
name="file"
attrs="{'invisible': [('link_existing', '=', False)]}"
/>
<field
name="media_type_id"
attrs="{'invisible': [('link_existing', '=', False)]}"
/>
<field
name="specific_file"
attrs="{'invisible': [('link_existing', '=', True)]}"
/>
<field name="file" invisible="not link_existing" />
<field name="media_type_id" invisible="not link_existing" />
<field name="specific_file" invisible="link_existing" />
<field
name="specific_media_type_id"
attrs="{'invisible': [('link_existing', '=', True)]}"
invisible="link_existing"
/>
<field name="sequence" />
<field
name="media_id"
attrs="{'invisible': [('link_existing', '=', False)]}"
/>
<field name="media_id" invisible="not link_existing" />
</group>
<group name="extra">
<!-- Add here custom relation fields -->
Expand Down

0 comments on commit 94415c5

Please sign in to comment.