Skip to content

Commit

Permalink
[MIG] dms_storage: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BernatObrador committed Aug 27, 2024
1 parent 5bdc98c commit 54e5971
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions dms_storage/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ Contributors
------------

- Enric Tobella
- `APSL-Nagarro <https://apsl.tech>`__:

- Bernat Obrador <[email protected]>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion dms_storage/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Dms Storage",
"summary": """
Integrate DMS with external Storages""",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "CreuBlanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/dms",
Expand Down
2 changes: 1 addition & 1 deletion dms_storage/models/dms_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class DmsFile(models.Model):
_inherit = "dms.file"

storage_path = fields.Char(invisible=True, readonly=True)
storage_path = fields.Char()
storage_backend_id = fields.Many2one("fs.storage")

def _update_content_vals(self, vals, binary):
Expand Down
2 changes: 2 additions & 0 deletions dms_storage/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
- Enric Tobella
- [APSL-Nagarro](<https://apsl.tech>):
- Bernat Obrador \<<[email protected]>\>
4 changes: 4 additions & 0 deletions dms_storage/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@ <h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<ul class="simple">
<li>Enric Tobella</li>
<li><a class="reference external" href="https://apsl.tech">APSL-Nagarro</a>:<ul>
<li>Bernat Obrador &lt;<a class="reference external" href="mailto:bobrador&#64;apsl.net">bobrador&#64;apsl.net</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
3 changes: 2 additions & 1 deletion dms_storage/views/dms_storage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<group name="save_storage_right" position="inside">
<field
name="storage_backend_id"
attrs="{'required': [('save_type', '=', 'storage')], 'invisible': [('save_type', '!=', 'storage')]}"
required="save_type == 'storage'"
invisible="save_type != 'storage'"
/>
</group>
</field>
Expand Down

0 comments on commit 54e5971

Please sign in to comment.